Luiz Ferraz
fd17f4a40b
Implement priority overrides for injected routes and redirects ( #9439 )
...
* Implement priority overrides for injected routes and redirects
* Fix ordering for route specificity
* Don't mix rules on tests
* Detailed collision detection
* Add changeset
* Remove TODO
* Add comments to clarify default values
* Update terminology
* Revert unrelated changes
* WIP
* Refactor
* Fix typo and typing
* chore: default to legacy
* chore: use experimental flag instead of option
* fix: do not throw an error on collisions
* chore: fix regression
* chore: use `continue` instead of `return`
* chore: fix tests but one
* chore: Update test
* chore: Change remaining new error to warning
* chore: Test collision warnings
* docs: Update docs of new config
* docs: Improve changesets
* chore: rename experimental flag
* chore: update changeset and docs
* Sarah editing pass
* nit: Align Markdown table
* defined definitions!
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
* added logging info to docs for experimental flag
* Yan final boss review
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* chore: Update flag name in tests
* chore: Update flag name in tests
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2024-01-17 13:28:18 +00:00
Emanuele Stoppa
f1a6126806
feat(i18n): disable redirect to default language ( #9638 )
...
* feat(i18n): disable redirect
* feat(i18n): add option to disable redirect to default language
* chore: add schema validation
* docs
* changeset
* Update packages/astro/src/core/config/schema.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: address feedback
* fix test
* Update .changeset/cyan-grapes-suffer.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Fix discord fetch code (#9663 )
* Force re-execution of Partytown's head snippet on view transitions (#9666 )
* Remove the header script before a view transition takes place to force a reload on the next page
* Add changeset
* Save another char
* [ci] format
* fix(assets): Implement all hooks in the passthrough image service (#9668 )
* fix(assets): Implement all hooks in the passthrough image service
* chore: changeset
* refactor(toolbar): Rename every internal reference of overlay/plugins to toolbar/apps (#9647 )
* refactor(toolbar): Rename every internal reference of overlay/plugins to toolbar/apps
* refactor: rename vite plugin
* fix: update import
* nit: add setting fallback
* Disable file watcher for internal one-off vite servers (#9665 )
* Use node:test and node:assert/strict (#9649 )
* [ci] format
* fix(i18n): emit an error when the index isn't found (#9678 )
* fix(i18n): emit an error when the index isn't found
* changeset
* Update .changeset/proud-guests-bake.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* rename
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* feat(i18n): add option to disable redirect to default language
* chore: rebase
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* lock file update
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Martin Trapp <94928215+martrapp@users.noreply.github.com>
Co-authored-by: Martin Trapp <martrapp@users.noreply.github.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bluwy@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-17 13:25:44 +00:00
Oliver Speir
165cfc154b
Allow remark plugins to affect getImage call for .md files ( #9566 )
...
* pass hProperties to getImage for optimized imgs
* fix to allow multiple images to have hProps added
* update test to reflect new expected result
* add comment back in
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* add srcset
* works on multiple images
* fix tests, fix images.ts type and remove console logs
* add warning back to images.ts again lol
* update changeset to be user oriented
* Update calm-socks-shake.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* pass alt through getImage
* added fixture and test
* update lockfile
* fix lockfile again (had installed an extra package during testing and had sharp33 installed)
* update test to reflect passing alt through getImage
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:13:31 +00:00
Degreat
e9a72d9a91
Bump shikiji, use transformers API, expose transformers API ( #9643 )
...
* Bump shikiji, use transformers API, expose transformers API
* update astro config schema
* include shikiji-core
* Use default import
* address css-variables theme
* Remove shikiji markdoc
* Improve schema transformers handling
* Fix tests
* Update changeset
* bump shikiji version
* Update .changeset/six-scissors-worry.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update wording
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:13:05 +00:00
Ben Holmes
8521ff77fb
[Content collections] Remove "unsupported file type" warning ( #9671 )
...
* feat: remove "unsupported file type" warning for CC
* chore(test): remove unsupported file type unit
* chore: remove unused imports
* chore: changeset
* chore: changeset edits
* edit: add note on underscores to exclude content
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: front-load "removes the requirement"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:12:37 +00:00
Ross Robino
a5f1682347
feat: add experimental client prerender ( #9644 )
...
* feat: add experimental client prerender
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: add more details about effects of the feature
* add changeset
* add tests
* edit jsdoc and changeset with suggestions
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update packages/astro/src/prefetch/index.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Update .changeset/sixty-dogs-sneeze.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/sixty-dogs-sneeze.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/sixty-dogs-sneeze.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-17 13:11:58 +00:00
Emanuele Stoppa
d6edc75408
Adapter enhancements ( #9661 )
...
* quality of life updates for `App` (#9579 )
* feat(app): writeResponse for node-based adapters
* add changeset
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* add examples for NodeApp static methods
* unexpose createOutgoingHttpHeaders from public api
* move headers test to core
* clientAddress test
* cookies test
* destructure renderOptions right at the start
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Fallback node standalone to localhost (#9545 )
* Fallback node standalone to localhost
* Update .changeset/tame-squids-film.md
* quality of life updates for the node adapter (#9582 )
* descriptive names for files and functions
* update tests
* add changeset
* appease linter
* Apply suggestions from code review
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* `server-entrypoint.js` -> `server.js`
* prevent crash on stream error (from PR 9533)
* Apply suggestions from code review
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
* `127.0.0.1` -> `localhost`
* add changeset for fryuni's fix
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* chore(vercel): delete request response conversion logic (#9583 )
* refactor
* add changeset
* bump peer dependencies
* unexpose symbols (#9683 )
* Update .changeset/tame-squids-film.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Luiz Ferraz <luiz@lferraz.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:10:43 +00:00
Oliver Speir
3a4d5ec800
Update a11y.ts ( #9567 )
...
* improve error message and allow for aria-label, aria-labelledby, img alt and svg title
* add checks for input
* Update packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update .changeset/orange-trainers-learn.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-17 13:10:08 +00:00
Bjorn Lu
1539e04a8e
Simplify HMR for circular imports and CSS ( #9706 )
2024-01-17 11:27:21 +08:00
Houston (Bot)
6c64b149f8
[ci] release ( #9669 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-16 11:45:09 +00:00
Erika
39050c6e1f
fix: image proxy not working correctly ( #9659 )
...
* fix: image proxy not working correctly
* fix: only take in valid images
* test: add tests
* Create slimy-mayflies-vanish.md
* nit: remove erika-ism
2024-01-15 12:17:41 -05:00
Bjorn Lu
1bf0ddd277
Add fallback compile for astro script and style load ( #9664 )
2024-01-15 23:26:42 +08:00
An Li
d38b2a4fe8
fix(ViewTransition): Disables View Transition form handling when the action
property points to an external URL.( #9674 ) ( #9693 )
2024-01-15 08:28:40 +01:00
Arsh
35d54b3ddb
fix(transitions router): attempt to find the clicked element within an open shadow root ( #9685 )
...
* implementation
* add test
* add changeset
2024-01-13 02:04:25 +05:30
Emanuele Stoppa
091097e60e
fix(i18n): emit an error when the index isn't found ( #9678 )
...
* fix(i18n): emit an error when the index isn't found
* changeset
* Update .changeset/proud-guests-bake.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* rename
* Update packages/astro/src/core/errors/errors-data.ts
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-12 14:14:26 +00:00
Bjorn Lu
d02a3c48a3
Disable file watcher for internal one-off vite servers ( #9665 )
2024-01-12 11:19:08 +08:00
Erika
74008cc238
fix(assets): Implement all hooks in the passthrough image service ( #9668 )
...
* fix(assets): Implement all hooks in the passthrough image service
* chore: changeset
2024-01-11 13:29:59 -05:00
Martin Trapp
cdf8ce0627
Force re-execution of Partytown's head snippet on view transitions ( #9666 )
...
* Remove the header script before a view transition takes place to force a reload on the next page
* Add changeset
* Save another char
2024-01-11 19:26:49 +01:00
Houston (Bot)
7a275c1648
[ci] release ( #9625 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 16:32:08 +08:00
Martin Trapp
a3b5695176
Don't try to load partytown scripts in the main thread during view transitions ( #9658 )
2024-01-11 13:12:45 +08:00
Bjorn Lu
e72efd6a9a
Use esbuild for env replacement ( #9652 )
2024-01-11 12:06:14 +08:00
Erika
50f39183cf
fix: pin Sharp at old version ( #9653 )
...
* fix: pin Sharp at old version
* chore: changeset
* fix: try out a bigger range
* chore: lockfile
* fix: try again with just one version...
* fix: lockfile
* chore: use caret versions
* chore: changeset
2024-01-10 10:46:36 -05:00
Arsh
d7f1903cde
fix(vercel): fallback to static 404.html ( #9648 )
2024-01-10 14:52:29 +00:00
Arsh
a700a20291
qol(cookies): warn when cookies are set after the headers have been sent ( #9627 )
2024-01-10 14:51:50 +00:00
Emanuele Stoppa
a4f90d95ff
fix(redirects): correctly compute the status code in redirects ( #9657 )
2024-01-10 13:47:07 +00:00
Bjorn Lu
5cba637c4e
Improve env var handling in SSR ( #9637 )
2024-01-09 16:29:43 +08:00
Martin Trapp
cdb7bfa662
Fixes an issue where view transitions to the 404-page did not work ( #9642 )
...
* Add new e2e test
* Ensure cloned Response keeps its headers
* Add change set
* Update changeset
* Update .changeset/big-knives-own.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* Update packages/astro/src/vite-plugin-astro-server/route.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2024-01-08 16:23:17 +01:00
Bjorn Lu
8b9c4844f7
Fix tsconfig alias with import.meta.glob ( #9560 )
...
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-08 11:06:41 +08:00
Florian Lefebvre
24663c9695
fix(rss): make title optional if description is provided ( #9610 )
...
* fix(rss): make title optional if description is provided
* feat(rss): simplify schema
* fix(rss): update tests to match new behavior
* Update packages/astro-rss/test/pagesGlobToRssItems.test.js
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* Update packages/astro-rss/test/pagesGlobToRssItems.test.js
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* feat: make link and pubDate optional
* feat: improve item normalization
* Update shy-spoons-sort.md
* Fix test fail
* Update .changeset/shy-spoons-sort.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-06 07:47:29 +00:00
Elian
651f45b401
Adds automatic, seasonally appropriate messages from Houston ( #9476 )
...
* feat: allow Houston to wear Scarfs
* refactor: allow 1 object to be passed instead of separate
* set messages back to original state / add ties
* refactor to getClothes method
* refactor: add clothes per season
* refactor: add messages with timing too
* refactor to new file
* refactor: use `hat` & `tie` instead of `clothes`
* refactor: use `getSeasonalHouston` only once
* chore: upgrade dependencies
* fix mistake in date
* feat(create-astro): refactor seasonal logic
* chore: remove unused entrypoint
* refactor: simplify seasonal data
* chore: add changeset
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-05 15:00:47 -06:00
Houston (Bot)
75084b49d0
[ci] release ( #9609 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-06 02:15:45 +05:30
Bjorn Lu
a1bb5fea55
Fix class property Vue hydration error ( #9620 )
2024-01-05 15:03:47 -05:00
Nate Moore
a1c31665cb
Ensure appEntrypoint
is referenced in Vue components ( #9490 )
...
* fix(#6827 ): ensure `appEntrypoint` is referenced in Vue components
* chore: add test
* chore: add changeset
* fix: windows handling
* Update packages/integrations/vue/src/index.ts
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: address review feedback
* chore: update lockfile
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-05 13:30:53 -06:00
Arsh
22a5405b4a
fix(vercel): include 404.html as fallback in the static adapter ( #9591 )
...
* include 404.html as fallback
* add changeset
* include only when 404.astro exists
* add test
* route.component -> route.pathname
2024-01-05 23:57:48 +05:30
Bjorn Lu
5156c74050
Fix limitInputPixels type ( #9622 )
...
* Fix limitInputPixels type
* Use sharp options
2024-01-05 14:47:00 +00:00
임동현(Ivan)
401fd3e8c8
feat: Add APIRoute second generic ( #9618 )
2024-01-05 21:58:49 +08:00
Jacob Lamb
47b951b388
chore: UpdatepossibleConfigFiles
( #9600 )
...
* Add `.ts` to list of `possibleConfigFiles`
* Add more options
* Create many-rules-kick.md
* Update .changeset/many-rules-kick.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-05 10:17:20 +00:00
Arsh
bd8fa7acd2
chore(vercel): deprecate speedInsights
( #9598 )
...
* deprecate speedInsights config
* add changeset
2024-01-04 16:37:13 +00:00
Marvin
2e4d110a87
[solidjs integration] Update solidjs dependency ( #9355 )
...
* update solidjs dependency
* update lockfile
* solidjs integration: update vite-plugin-solid
* update lockfile
* solidjs integration: decrease required version to match vite plugin
* Update moody-years-worry.md
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 16:25:53 +00:00
Houston (Bot)
e862d070b4
[ci] release ( #9580 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 15:16:31 +00:00
Patrick Miller
37021044dd
Render async SolidJS components ( #6791 )
...
* Render async SolidJS components
* Add renderer-specific hydration script to allow for proper SolidJS hydration
* Add support for Solid.js 1.8.x
* Address documentation feedback
* Rebuild pnpm lock file based on main branch
* Address PR feedback from ematipico
---------
Co-authored-by: Johannes Spohr <johannes.spohr@futurice.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 11:37:08 +00:00
Bjorn Lu
3b4e629ac8
Improve astro add deps error reporting ( #9593 )
2024-01-04 11:16:53 +00:00
Martin Trapp
82bad5d620
Fixes page titles in the browser's drop-down for back / forward navigation when using view transitions ( #9586 )
...
* Fixes titles in the browser's dropdown for back / forwards traversals through the browser history
* Improve names of constants
* Reword the changset description
2024-01-04 11:15:35 +00:00
Alex Jet
0903ef9049
feat: add preact-ssr-prepass ( #9524 )
...
* feat: add preact-ssr-prepass
* added more info to changelog
* fix example in changelog
* fix changelog description
* fix tab in code of changelog
* Update .changeset/blue-bobcats-remain.md
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-04 11:01:08 +00:00
Arsh
9fd24a546c
fix(routing): trailingSlash on endpoints ( #9597 )
...
* fix(routing): applies trailingSlash on endpoints
* add changeset
* add test
* Update .changeset/funny-lobsters-promise.md
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-04 10:59:48 +00:00
Erika
fbc2697653
feat: update extended client:visible to use an object instead of a string ( #9596 )
...
* Revert "feat: support setting rootMargin for `client:visible` (#9363 )"
This reverts commit 769826edbd
.
* feat: update extended `client:visible` to use an object instead of a string
* Apply suggestions from code review
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* test: add a test
* nit: comment
* test: write the test some other way to try to convince playwright
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2024-01-03 19:44:04 -05:00
Jenna Smith
da307e4a08
feat: add extendable CSSProperties
interface ( #9587 )
...
* feat: add extendable `CSSProperties` interface
* Update .changeset/slow-kiwis-own.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-03 09:39:17 -05:00
Bjorn Lu
fe719e27a8
Add reverted aria audit rules for dev toolbar ( #9377 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-03 13:34:21 +00:00
Mads Erik Forberg
769826edbd
feat: support setting rootMargin for client:visible
( #9363 )
...
* feat: support setting rootMargin for `client:visible`
This support adding optional `rootMargin` to the `IntersectionObserver` options.
This gives the developer the optional choice to hydrate a bit before the astro-island enters the viewport.
* chore: update type for client:visible
* chore: added changeset
* chore: update types
* fix: check if value is string
* Update stupid-peas-juggle.md
* fix: update .changeset/stupid-peas-juggle.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:20:07 +00:00
Alex Sherwin
f33fe3190b
Allow setting all cookie package serialize/parse options ( #9063 )
...
* #9062 : allow setting all cookie package serialize/parse options
* 9062: fix scripts to original arrangement
* feat: only add specific properties
* Update tiny-days-dance.md
* Add examples to the changeset
* Update .changeset/tiny-days-dance.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tiny-days-dance.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/tiny-days-dance.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update .changeset/tiny-days-dance.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-01-03 13:19:41 +00:00
Bjorn Lu
08402ad584
Add limitInputPixels option for sharp image service ( #9546 )
...
* Add limitInputPixels option for sharp image service
* Fix types
* Update docs
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2024-01-03 13:19:04 +00:00
简静凡
e44f6acf99
enhance(prefetch): Adds a 'load'
prefetch strategy, and ignores 3g
in slow connection detection ( #9513 )
...
* [enhance:prefetch] add global ignoreSlowConnection and add none to defaultStrategy enum
* changeset
* change defaultStrategy enum 'none' to 'all', and fix e2e test
* test:e2e prefetch
* update changeset
* rename defaultStrategy.all to defaultStrategy.load
* fix: remove global ignoreSlowConnection config and ignore 3g in slow connection detection
* fix: Revert variable name changes
* Split changeset
---------
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:07:58 +00:00
Bjorn Lu
2a8b9c56b9
Support --open with url string ( #9573 )
...
* Support --open with url string
* Update jsdoc
* Fix typo
* Document server.open
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:07:31 +00:00
Austin Merrick
607303be19
Move create-astro async tasks to end ( #9470 )
...
* Upgrade @astrojs/cli-kit
* Add tasks to context
* Change steps to use tasks
* Do tasks at end
* Add changeset
* Make labels more consistent
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
* Update .changeset/chatty-penguins-sin.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:06:57 +00:00
Bjorn Lu
b8a6fa8917
Error on preview if outDir missing ( #9544 )
...
* Error on preview if outDir missing
* Update .changeset/four-moles-burn.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-01-03 13:05:51 +00:00
Bjorn Lu
ab6049bd58
Set default NODE_ENV for JS API ( #9575 )
2024-01-03 15:54:30 +08:00
Martin Trapp
d48ab90fb4
Fix history navigation to hash fragment on Firefox when using view transitions ( #9563 )
...
* Fix history navigation to hash fragment on Firefox when using view transitions
* Edit changeset
* Improve changeset, add co-authors
2024-01-02 22:18:52 +01:00
Houston (Bot)
d854330571
[ci] release ( #9541 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 10:26:33 -05:00
Bjorn Lu
ec71f03cfd
Remove telemetry for unhandled errors ( #9571 )
2024-01-02 23:14:09 +08:00
Canaris
67e06f9db1
yarn add
should be used to install packages instead of yarn install
(#9562 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2024-01-02 22:52:22 +08:00
Syg
8b873bf1f3
Add 'starlight' to displayed options under 'add' option in CLI ( #9559 )
...
* Add 'starlight' to displayed options under 'add' option in CLI
* Create tall-mayflies-deliver.md
* Update tall-mayflies-deliver.md
---------
Co-authored-by: syg <sygint@users.noreply.github.com>
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-01-02 12:12:58 +00:00
Mati
8cc3d6aa46
Implement i18n's getLocaleByPath
function ( #9504 )
...
* Implement getLocaleByPath function
* Fix param naming in getLocaleByPath function for users
* Add changeset
* Change changeset to patch astro
* Add i18n getLocaleByPath e2e test
* Add astro e2e i18n in pnpm-lock.yaml
2024-01-02 12:08:17 +00:00
Bjorn Lu
9f6453cf49
Document --host and --port flag for preview ( #9572 )
2024-01-02 17:45:56 +08:00
Michael Thomas
e496b2e3b8
Fix asynchronous appEntrypoint
support ( #9558 )
2024-01-01 15:44:17 +08:00
Bjorn Lu
22f42d11a4
Prevent render ansi in error overlay ( #9547 )
2023-12-30 18:06:40 +07:00
Bjorn Lu
8049f0cd91
Fix error overlay display on malformed uri ( #9548 )
2023-12-29 23:52:43 +08:00
Arsh
7b586a6e23
fix(vercel): prevent build failure with node 21 ( #9550 )
...
* fix(vercel): prevent build failure with node 21
* add changeset
2023-12-29 21:18:15 +05:30
Arsh
48f47b50a0
fix(node): prevent crash on stream error ( #9533 )
...
* fix(node): prevent crash on stream error
* add changeset
* Apply suggestions from code review
2023-12-29 21:17:52 +05:30
Alex Nguyen
ede3f7fef6
Toggle dev toolbar hitbox height when toolbar is visible ( #9446 )
...
* Toggle dev toolbar hitbox height when toolbar is visible
* Add hitbox above height const
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-29 00:59:01 -05:00
Alex Waldron
16e61fcacb
fix: handle srcset local image paths with spaces ( #9537 )
...
* fix: handle srcset local image paths with spaces
* replaced janky 'replaceAll' with encodeURI
* Update .changeset/weak-oranges-relate.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
* fix: encodeURI the returned filepath directly
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-28 16:23:46 -05:00
Matthew Phillips
7f212f0831
Support remote images with encoded characters ( #9540 )
...
* Support remote images with encoded characters
* Add a changeset
* Update .changeset/small-snakes-build.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-28 15:08:04 -05:00
Houston (Bot)
98fa8f02ab
[ci] release ( #9491 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-27 13:34:07 -05:00
Arsh
89a2a07c2e
fix(content): helpful message for DuplicateContentEntry ( #9492 )
...
* helpful message for DuplicateContentEntry
* add changeset
2023-12-27 12:56:42 -05:00
Arsh
7f7a7f1aea
qol(routing): warn when api route method doesn't match the casing of an export ( #9497 )
...
* fix(routing): improve messaging for getting the case wrong
* add changeset
* lint: no shadowing
* remove old APIRoute signature
* Apply suggestions from code review
Co-authored-by: Voxel <voxelmc@hotmail.com>
---------
Co-authored-by: Voxel <voxelmc@hotmail.com>
2023-12-27 12:56:10 -05:00
Bjorn Lu
337ca508bd
Forward Svelte client error ( #9530 )
2023-12-27 12:35:36 -05:00
Bjorn Lu
662f06fd9f
Fix duplicated CSS modules inlining ( #9531 )
...
* Fix duplicated CSS modules inlining
* Remove unused mode param
2023-12-27 12:34:59 -05:00
Bjorn Lu
7224809b73
Prevent double uri decoding ( #9532 )
2023-12-27 12:34:28 -05:00
Bjorn Lu
d252fc61b0
Add tailwindcss nesting support ( #9529 )
...
* Add tailwindcss nesting support
* Update lockfile
2023-12-27 12:34:01 -05:00
Nikhil Kothari
cf993bc263
Filter out Svelte's unknown data prop warnings ( #9510 )
2023-12-27 18:08:20 +08:00
Ming-jun Lu
1469e0e5a9
Prevent dev toolbar tooltip from overflowing ( #9512 )
...
* fix: prevent dev toolbar toolip from overflowing
* test: add a test case for dev toolbar toolip position
* Create small-emus-deny.md
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-12-26 12:01:04 -05:00
Martijn van der Ven
bb1438d20d
Add autocomplete to button JSX type ( #9522 )
...
* Add autocomplete to button JSX type
This is “nonstandard and Firefox-specific” but often required when working with dynamic disabled state.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#autocomplete
* Run `pnpm exec changeset`
2023-12-25 11:18:42 -05:00
Erika
eb36e95596
feat: export JSX types from jsx-runtime ( #9501 )
...
* feat: export JSX types from jsx-runtime
* fix: i wont make the same mistakes three times
* chore: changeset
2023-12-23 02:52:04 -05:00
Erika
3b0eaed3b5
fix(deps): Update Sharp optionalDep version ( #9463 )
...
* fix(deps): Update Sharp optionalDep version
* chore: changeset
2023-12-22 10:52:01 +00:00
Sarah Rainsberger
1baf0b0d3c
[docs] minimal integration READMEs ( #9479 )
...
Co-authored-by: Emanuele Stoppa <602478+ematipico@users.noreply.github.com>
Co-authored-by: Elian <15145918+ElianCodes@users.noreply.github.com>
Co-authored-by: Alexander Niebuhr <45965090+alexanderniebuhr@users.noreply.github.com>
2023-12-21 16:35:11 -04:00
Arsh
dfef925e1f
chore: improve type fidelity for internal error class ( #9478 )
...
* chore: improve type fidelity for internal error class
* add changeset
* simplify
* fix: adjust for new error
---------
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-21 02:43:50 +05:30
Nate Moore
72b26daf69
Skip check
for known Qwik components ( #9482 )
2023-12-20 12:59:49 -06:00
Houston (Bot)
97342d218e
[ci] release ( #9457 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-20 17:39:13 +00:00
Emanuele Stoppa
19169db1f1
chore: smoother logging when building pages ( #9487 )
...
* chore: smoother logging when building pages
* chore: improve logging during the build
* fix: put `newLine` top `LogMessage`
* Update .changeset/popular-meals-yell.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-20 16:48:06 +00:00
Erika
c384f6924e
fix(a11y): Fix some audit false positives ( #9483 )
...
* fix(a11y): Fix some audit false positives
* chore: changeset
* Update packages/astro/src/runtime/client/dev-overlay/plugins/audit/a11y.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* fix: apply feedback
* nit: add comment
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-12-20 10:25:41 -05:00
Martin Trapp
f6714f677c
view transition's form handling honors default prevention ( #9486 )
...
* add missing check to honor prevented default
* added changeset
* Update .changeset/fresh-games-confess.md
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
---------
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
2023-12-20 14:44:48 +01:00
Ken Powers
5062d27a18
Respect forms with enctype set for view transitions ( #9466 )
...
* Respect forms with enctype set for view transitions
* Add changeset
* Revert "Respect forms with enctype set for view transitions"
This reverts commit 6d3e04a959
.
* Review feedback
* Handle submitter case
* Move comment
* Update .changeset/rude-geckos-rush.md
* Add tests
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-20 13:37:48 +01:00
Florian Lefebvre
e83b5095f1
chore: upgrade vite to latest ( close #9443 ) ( #9452 )
...
* chore: upgrade vite to latest
* chore: add changeset
* fix: enforce type
* fix: postcss
* chore: log messages
* fix: take vite re-optimizing message into account
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-12-20 11:54:25 +00:00
Emanuele Stoppa
7ae4928f30
fix: remove the manifest file from the dist/
folder ( #9475 )
2023-12-19 21:56:46 +00:00
Luiz Ferraz
faf6c7e110
Fix transitions with non-recommended headers ( #9464 )
...
* Reproduce edge case in test
* Fix edge case
* Add changeset
* Update .changeset/khaki-ducks-give.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-12-19 20:59:13 +01:00
Tom MacWright
f515b1421a
Descriptive image error ( #9352 )
...
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2023-12-19 11:14:58 -05:00
Dawid Kobierski
354a62c86e
fix: handle external hoisted scripts correctly ( #9437 )
2023-12-19 14:09:06 +00:00
Arsh
5ae6578822
fix(redirects): handle non-verbatim targets ( #9089 )
...
* add tests
* implement fix
* add changeset
* `for const in` -> `for const of`
* reskip: external redirects are still not ignored
2023-12-19 13:59:00 +00:00
Alex Nguyen
6bf470cfb8
Fix typo in @astrojs/node README ( #9471 )
2023-12-19 08:28:43 +00:00
Emanuele Stoppa
fa3078ce9f
fix: handle middleware loading error ( #9458 )
...
* fix: handle middleware loading error
* remove the try/catch
* rethrow error
* Update packages/astro/src/core/middleware/loadMiddleware.ts
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
---------
Co-authored-by: Arsh <69170106+lilnasy@users.noreply.github.com>
2023-12-19 08:28:04 +00:00
Simon Knott
429be8cc3e
fix: update netlify import ( #9461 )
...
* fix: update netlify import
* fix: update one comment
2023-12-18 21:41:01 +00:00