fix(deps): update dependency astro to v2.6.4#10
Merged
Conversation
b3bbb7f to
81dec30
Compare
81dec30 to
0f184ef
Compare
0f184ef to
1e65c47
Compare
1e65c47 to
cd87d7f
Compare
d0bdbdf to
30a7eb1
Compare
30a7eb1 to
387ec8c
Compare
387ec8c to
cae2a06
Compare
cae2a06 to
ab5f2d5
Compare
ab5f2d5 to
8bf20d6
Compare
8bf20d6 to
1869a77
Compare
12c413b to
39ef145
Compare
39ef145 to
fe86183
Compare
fe86183 to
a4a4718
Compare
a4a4718 to
a48063f
Compare
a48063f to
936d2c2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.8->2.6.4Release Notes
withastro/astro
v2.6.4Compare Source
Patch Changes
#7366
42baf62e7Thanks @aappaapp! - FixedRedirectConfigtype definition#7380
1c7b63595Thanks @bholmesdev! - Fix missing stacktraces for Zod errorsv2.6.3Compare Source
Patch Changes
#7341
491c2db42Thanks @bholmesdev! - Improve error message for unsupported Zod transforms from the content config.#7352
0a8d178c9Thanks @bholmesdev! - Raise error when multiple content collection entries have the same slugv2.6.2Compare Source
Patch Changes
#7310
52f0480d1Thanks @Edo-San! - Fixed a bug that threw an Exception when spreading potentially undefined values as HTML attributes#7339
e3271f8c1Thanks @bholmesdev! - Add readable error message for invalid dynamic routes.#7316
e6bff651fThanks @bholmesdev! - Fix Zod errors getting flagged as configuration errors#7342
bbcf69e7bThanks @matthewp! - Fix for experimental redirects in dev mode#7326
1430ffb47Thanks @calebdwilliams! - Fixes issue where Astro doesn't respect custom npm registry settings during project creationv2.6.1Compare Source
Patch Changes
8034edd9eThanks @bholmesdev! - Fix [Object AsyncGenerator] appearing in markup for Markdoc documentsv2.6.0Compare Source
Minor Changes
#7067
57f8d14c0Thanks @matthewp! - Experimental redirects supportThis change adds support for the redirects RFC, currently in stage 3: https://github.com/withastro/roadmap/pull/587
Now you can specify redirects in your Astro config:
You can also specify spread routes using the same syntax as in file-based routing:
By default Astro will build HTML files that contain the
<meta http-equiv="refresh">tag. Adapters can also support redirect routes and create configuration for real HTTP-level redirects in production.#7237
414eb19d2Thanks @bluwy! - Remove experimental flag for custom client directives#7274
b5213654bThanks @Princesseuh! - Update basetsconfig.jsontemplate withallowJs: trueto provide a better relaxed experience for users unfamilliar with TypeScript.allowJsis still set tofalse(its default value) when using thestrictestpreset.#7180
e3b8c6296Thanks @lilnasy! - The Inline Stylesheets RFC is now stable!You can now control how Astro bundles your css with a configuration change:
The options:
inlineStylesheets: "never": This is the behavior you are familiar with. Every stylesheet is external, and added to the page via a<link>tag. Default.inlineStylesheets: "auto": Small stylesheets are inlined into<style>tags and inserted into<head>, while larger ones remain external.inlineStylesheets: "always": Every style required by the page is inlined.As always, css files in the
publicfolder are not affected.#7260
39403c32fThanks @natemoo-re! - Unflags support foroutput: 'hybrid'mode, which enables pre-rendering by default. The additionalexperimental.hybridOutputflag can be safely removed from your configuration.#7109
101f03209Thanks @ematipico! - Remove experimental flag for the middlewarePatch Changes
#7296
a7e2b37ffThanks @Princesseuh! - Fix HTML component type causing an error when imported in the editor#7294
dd1a6b6c9Thanks @matthewp! - Fix cookies not being set by middleware#7197
d72cfa7caThanks @bluwy! - Fix nested astro-island hydration race condition#7262
144813f73Thanks @andremralves! - Fix injected scripts not injected to injected routes#7242
890a2bc98Thanks @JerryWu1234! - remove the white space after the doctype according to the property compressHTMLv2.5.7Compare Source
Patch Changes
#7215
6e27f2f6dThanks @bmenant! - Node adapter fallbacks to:authorityhttp2 pseudo-header whenhostis nullish.#7233
96ae37eb0Thanks @bluwy! - FixgetViteConfigand Vitest setup with content collections#7136
fea306936Thanks @johannesspohr! - Render arrays of components in parallel#7257
5156c4f90Thanks @thiti-y! - fix: build fail upon have 'process.env' in *.md file.#7268
9e7366567Thanks @bholmesdev! - Fix: ignore.jsonfiles within content collection directories starting with an_underscore.#7185
339529fc8Thanks @bholmesdev! - Bring back improved style and script handling across content collection files. This addresses bugs found in a previous release to@astrojs/markdoc.v2.5.6Compare Source
Patch Changes
#7193
8b041bf57Thanks @ematipico! - Refactor how pages are emitted during the internal bundling. Now eachpage is emitted as a separate entry point.
#7218
6c7df28abThanks @bluwy! - Fix CSS deduping and missing chunks#7235
ee2aca80aThanks @MoustaphaDev! - Prioritize dynamic prerendered routes over dynamic server routes#7192
7851f9258Thanks @ematipico! - Detectmdxfiles using their full extension#7244
bef3a75dbThanks @bholmesdev! - Remove the auto-generated$entryvariable for Markdoc entries. To access frontmatter as a variable, you can passentry.dataas a prop where you render your content:v2.5.5Compare Source
Patch Changes
#6832
904131aecThanks @wulinsheng123! - fix a bug when Fragment is as a slot#7178
57e65d247Thanks @bholmesdev! - Fix: revert Markdoc asset bleed changes. Production build issues were discovered that deserve a different fix.v2.5.4Compare Source
Patch Changes
#7125
4ce8bf7c6Thanks @bluwy! - Make vite-plugin-content-virtual-mod rungetEntrySlug10 at a time to preventEMFILE: too many open fileserror#7166
626dd41d0Thanks @ematipico! - Move generation of renderers code into their own file#7174
92d1f017eThanks @ematipico! - Remove restriction around serialisable data forAstro.locals#7172
2ca94269eThanks @Princesseuh! - Add types forimport.meta.env.ASSETS_PREFIXandimport.meta.env.SITE#7134
5b6a0312aThanks @alexvuka1! - value of var can be undefined when usingdefine:vars#7171
79ba74832Thanks @bluwy! - Prevent Vite watching on Astro config loadv2.5.3Compare Source
Patch Changes
#6758
f558a9e20Thanks @bholmesdev! - Improve style and script handling across content collection files. This addresses style bleed present in@astrojs/markdocv0.1.0#7143
b41963b77Thanks @johannesspohr! - Render 404 page content when aResponsewith status 404 is returned from a pagev2.5.2Compare Source
Patch Changes
#7144
ba0636240Thanks @lilnasy! - Fixed an issue where scripts that weren't safe to inline were inlined.#7150
8f418d13cThanks @MoustaphaDev! - fix no matched path when usinggetStaticPathswithoutprerenderexport.v2.5.1Compare Source
Patch Changes
#7128
72f686a68Thanks @johannesspohr! - Fix routes created byinjectRoutefor SSR#7132
319a0a7a0Thanks @ematipico! - Emit middleware as an entrypoint during build#7036
852d59a8dThanks @ematipico! - Emit pages as dynamic import chunks during the build#7126
530fb9ebeThanks @bluwy! - Add route information when warning ofgetStaticPaths()ignored#7118
3257dd289Thanks @Princesseuh! - Fix unnecessary warning showing on start when a collection folder was empty. The warning was also enhanced to add more information about possible causes.v2.5.0Compare Source
Minor Changes
#7071
e186ecc5eThanks @johannesspohr! - Render sibling components in parallel#6850
c6d7ebefdThanks @bholmesdev! - Content collections now support data formats including JSON and YAML. You can also create relationships, or references, between collections to pull information from one collection entry into another. Learn more on our updated Content Collections docs.#6991
719002ca5Thanks @MoustaphaDev! - Enable experimental support for hybrid SSR with pre-rendering enabled by defaultastro.config.mjs
Then add
export const prerender = falseto any page or endpoint you want to opt-out of pre-rendering.src/pages/contact.astro
v2.4.5Compare Source
Patch Changes
#7000
c87d42e76Thanks @craigjennings11! - Remove 'paths' requirement for tsconfig path aliasing#7055
4f1073a6aThanks @Princesseuh! - Fix astro:assets interfering with SSR query params ending with image extensionsv2.4.4Compare Source
Patch Changes
#7047
48395c815Thanks @Princesseuh! - Fix/_imageendpoint not being prefixed with thebasepath in build SSR#6916
630f8c8efThanks @bholmesdev! - Add fast lookups for content collection entries when usinggetEntryBySlug(). This generates a lookup map to ensure O(1) retrieval.v2.4.3Compare Source
Patch Changes
#7034
c00997033Thanks @bluwy! - Fixastro:assetsSSR error#7032
157357e1fThanks @raulfdm! - fix middleware typing export for "moduleResolution: node"v2.4.2Compare Source
Patch Changes
#7009
1d4db68e6Thanks @Princesseuh! - Fix types fromastro/clientnot working properly due toclient-base.d.tsbeing an non-ambient declaration file#7010
e9f0dd9b4Thanks @ematipico! - Callnext()without return anything should work, with a warningv2.4.1Compare Source
Patch Changes
71332cf96Thanks @Princesseuh! - Move sharpImageService and squooshImageService functions toastro/configso they can be importedv2.4.0Compare Source
Minor Changes
#6990
818252acdThanks @Princesseuh! - Generated optimized images are now cached inside thenode_modules/.astro/assetsfolder. The cached images will be used to avoid doing extra work and speed up subsequent builds.#6659
80e3d4d3dThanks @lilnasy! - Implement Inline Stylesheets RFC as experimental#6771
3326492b9Thanks @matthewp! - Implements a new class-based scoping strategyThis implements the Scoping RFC, providing a way to opt in to increased style specificity for Astro component styles.
This prevents bugs where global styles override Astro component styles due to CSS ordering and the use of element selectors.
To enable class-based scoping, you can set it in your config:
Note that the 0-specificity
:wherepseudo-selector is still the default strategy. The intent is to change'class'to be the default in 3.0.#6959
cac4a321eThanks @bluwy! - Support<Code inline />to output inline code HTML (nopretag)#6721
831b67cdbThanks @ematipico! - Implements a new experimental middleware in Astro.The middleware is available under the following experimental flag:
Or via CLI, using the new argument
--experimental-middleware.Create a file called
middleware.{js,ts}inside thesrcfolder, andexport a
onRequestfunction.From
astro/middleware, use thedefineMiddlewareutility to take advantage of type-safety, and usethe
sequenceutility to chain multiple middleware functions.Example:
#6932
49514e4ceThanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepretag, e.g.<pre class="astro-code github-dark">.Patch Changes
#6973
0883fd487Thanks @matthewp! - Ensure multiple cookies set in dev result in multiple set-cookie headersUpdated dependencies [
49514e4ce]:v2.3.4Compare Source
Patch Changes
#6967
a8a319aefThanks @bluwy! - Fixastro-entryerror on build with multiple JSX frameworks#6961
a695e44aeThanks @Princesseuh! - Fix getImage type#6956
367e61776Thanks @lilnasy! - Changed where various parts of the build pipeline look to decide if a page should be prerendered. They now exclusively consider PageBuildData, allowing integrations to participate in the decision.#6969
77270cc2cThanks @bluwy! - Avoid removing leading slash forbuild.assetsPrefixvalue in the build output#6910
895fa07d8Thanks @natemoo-re! - Inlineprocess.envboolean values (0,1,true,false) during the build. This helps with DCE and allows for betterexport const prerenderdetection.#6958
72c6bf01fThanks @bluwy! - Fix content render imports flow#6952
e5bd084c0Thanks @Princesseuh! - Update allowed Sharp versions to support 0.32.0v2.3.3Patch Changes
#6940
a98df9374Thanks @delucis! - Support custom 404s added viainjectRouteor assrc/pages/404.html#6948
50975f2eaThanks @imchell! - Placeholders for slots are cleaned in HTML String that is rendered#6848
ebae1eaf8Thanks @Princesseuh! - Updateexperimental.assets'simage.serviceconfiguration to allow for a config option in addition to an entrypoint#6953
dc062f669Thanks @Princesseuh! - Updateastro checkto use version 1.0.0 of the Astro language serverUpdated dependencies [
ac57b5549]:v2.3.2Patch Changes
b89042553Thanks @bluwy! - Fix tsconfig alias baseUrl handling for "." and ".." importsv2.3.1Compare Source
Patch Changes
#6859
4c7ba4da0Thanks @andremralves! - Fix Astro.params does not contain path parameter from URL with non-English characters.#6872
b6154d2d5Thanks @bluwy! - Fix hoisted scripts path for linked package Astro components#6862
1f2699461Thanks @jcdogo! - Fixes bug with assetsPrefix not being prepended to component-url and renderer-url in astro islands when using SSR mode.#6877
edabf01b4Thanks @bluwy! - Upgrade to Vite 4.3#6902
0afff3274Thanks @bluwy! - Disable Vite optimizer for sync and config loading. Improve first page load time for warm server startup.v2.3.0Compare Source
Minor Changes
8539eb164Thanks @bluwy! - Support tsconfig aliases in CSS@importPatch Changes
#6544
a9c22994eThanks @wulinsheng123! - Correctly generate directories for assets when users customise the output via rollup options.#6825
948a6d7beThanks @Princesseuh! - Fix unnecessary warning when using images inside thesrc/contentfolder withexperimental.assetsUpdated dependencies [
2511d58d5]:v2.2.3Compare Source
Patch Changes
#6765
6c09ac03bThanks @Princesseuh! - Properly include the needed WASM files for the Squoosh service for Netlify and Vercel in SSR#6817
f882bc163Thanks @bholmesdev! - Fix sourcemap warnings when using Content Collections and MDX with thevite.build.sourcemapoption#6819
76dd53e3fThanks @MoustaphaDev! - Fix fallback content showing unexpectedly in some cases#6582
7653cf9e9Thanks @bluwy! - Fix CSS chunking and deduping between multiple Astro files and framework componentsv2.2.2Compare Source
Patch Changes
#6811
60c16db6fThanks @bluwy! - Fix check CLI fs load fallback behaviour#6782
c12ca5eceThanks @amirhhashemi! - Force error overlay direction to be LTRv2.2.1Compare Source
Patch Changes
#6766
72fed684aThanks @Xetera! - Exporting the ImageFunction in astro:content and grouping it under a SchemaContext#6772
45bff6fccThanks @natemoo-re! - Allowimport.meta.envvalues of0,1,true, andfalseto be used forexport const prerenderstatements#6770
52d7a4a01Thanks @Princesseuh! - Updated types to match newer Vite versions#6774
9e88e0f23Thanks @bholmesdev! - Fix: remove oldslug()type fromdefineCollection()helper#6775
fa84f1a7dThanks @matthewp! - Support streaming inside of slots#6779
a98f6f418Thanks @matthewp! - Prevent body head content injection in MDX when using layout#6781
7f74326b7Thanks @bholmesdev! - Fixastro:server:setupmiddlewares not applying. This resolves an issue with the Partytown integration in dev.v2.2.0Compare Source
Minor Changes
#6703
a1108e037Thanks @Princesseuh! - Moveimage()to come fromschemainstead to fix it not working with refine and inside complex typesMigration:
Remove the
imageimport fromastro:content, and instead use a function to generate your schema, like such:#6714
ff0430786Thanks @bluwy! - Addbuild.assetsPrefixoption for CDN support. If set, all Astro-generated asset links will be prefixed with it. For example, setting it tohttps://cdn.example.comwould generatehttps://cdn.example.com/_astro/penguin.123456.pnglinks.Also adds
import.meta.env.ASSETS_PREFIXenvironment variable that can be used to manually create asset links not handled by Astro.Patch Changes
#6753
489dd8d69Thanks @bluwy! - FixgetViteConfigreturn type#6744
a1a4f45b5Thanks @Princesseuh! - Fix remote images in Markdown throwing errors when usingexperimental.assets#6762
8b88e4cf1Thanks @Princesseuh! - Improved error message when an error was encountered while generating types#6719
d54cbe413Thanks @matthewp! - Better errors for when response is already sentThis adds clearer error messaging when a Response has already been sent to the browser and the developer attempts to use:
#6741
4c347ab51Thanks @Princesseuh! - Fix content-type header being wrong in dev on images fromastro:assets#6739
2f2e572e9Thanks @Princesseuh! - Added more types and utilities exports related toastro:assetsto help building custom image components and image services#6759
7116c021aThanks @bluwy! - Upgrade to Vite 4.2Updated dependencies [
a1a4f45b5]:v2.1.9Compare Source
Patch Changes
#6693
c0b7864a4Thanks @bholmesdev! - Fix: avoid callingastro:server:setupintegration hook in production#6676
5e33c51a9Thanks @bholmesdev! - Fix next and previous links for index routes when using pagination#6717
c2d4ae1cbThanks @Princesseuh! - Dynamically import check command to improve startup speed and prevent Astro from crashing due to language-server stuff#6679
08e92f4f8Thanks @fcFn! - Fix incorrect path to file in error overlay on Win#6649
f0b732d32Thanks @Princesseuh! - Improve error handling when usingastro:assets#6710
a0bdf4ce2Thanks @Princesseuh! - Fix multiple Image / getImage calls with the same image causing multiple duplicate images to be generated#6711
c04ea0d43Thanks @Princesseuh! - Fix InferGetStaticParamsType and InferGetStaticPropsType not working when getStaticPaths wasn't async#6701
46ecf4662Thanks @Princesseuh! - Remove unnecessary.wasmfiles inside build output when possiblev2.1.8Compare Source
Patch Changes
#6675
1f783e320Thanks @matthewp! - Prevent frontmatter errors from crashing the dev server#6688
2e92e9aa9Thanks @JohannesKlauss! - Add a additional check fornullon thereq.bodycheck inNodeApp.render.#6578
adecda7d6Thanks @wulinsheng123! - add new flag with open for dev and preview#6680
386336441Thanks @koriwi! - Invalidates cache when changing serviceEntryPoint#6653
7c439868aThanks @bholmesdev! - Simplify Markdoc configuration with a newmarkdoc.config.mjsfile. This lets you import Astro components directly to render as Markdoc tags and nodes, without the need for the previouscomponentsproperty. This new configuration also unlocks passing variables to your Markdoc from theContentcomponent (see the new docs).v2.1.7Compare Source
Patch Changes
#6192
b7194103eThanks @erg208! - Updated to fix the Node SSR fails on POST with Express JSON middleware#6630
cfcf2e2ffThanks @bholmesdev! - Support automatic image optimization for Markdoc images when usingexperimental.assets. You can follow our Assets guide to enable this feature in your project. Then, start using relative or aliased image sources in your Markdoc files for automatic optimization:#6647
45da39a86Thanks @bluwy! - Fix --mode flag for builds#6638
7daef9a29Thanks @matthewp! - Avoid implicit head injection when a head is in the treev2.1.6Compare Source
Patch Changes
#6633
9caf2a9ccThanks @bholmesdev! - Fix failedastro synccall when runningastro check. This change also reverts alias support in CSS styles.#6627
d338b6f74Thanks @Princesseuh! - Update frontmatter assets to be relative to the current file instead ofsrc/assetsv2.1.5Compare Source
Patch Changes
#6604
7f7a8504bThanks @Princesseuh! - Fix using optimized images in Markdown not working#6617
38e6ec21eThanks @MoustaphaDev! - Fix tsconfig alias regression#6588
f42f47dc6Thanks @bholmesdev! - Allow access to content collection entry information (including parsed frontmatter and the entry slug) from your Markdoc using the$entryvariable:v2.1.4Compare Source
Patch Changes
#6547
04dddd783Thanks @Princesseuh! - Fix images having the wrong width and height when using the new astro:assets features if both dimensions were provided#6566
ea9b3dd72Thanks @bluwy! - Support tsconfig aliases in styles#6472
bf024cb34Thanks @wulinsheng123! - don't finish the action of the copy before removing all files.#6556
22955b895Thanks @Princesseuh! - Fix Invalid Input error when trying to use a custom Image Service#6568
f413446a8Thanks @Princesseuh! - Fix image() type to be compatible with ImageMetadata#6559
90e5f87d0Thanks @Princesseuh! - Vendorimage-sizeto fix CJS-related issues#6576
388190102Thanks @bluwy! - Simplify internal resolver in dev#6536
035c0c4dfThanks @Princesseuh! - Fix Image component andgetImagenot handling images from public correctly#6601
f112c12b1Thanks @bluwy! - Fix plugin apply args when filtering#6586
689884251Thanks @solelychloe! - fix: Add missing --watch flag for astro check when running astro check --help#6572
fa132e35cThanks @MoustaphaDev! - Properly handle empty markdown files in content collections#6555
f5fddafc2Thanks @Princesseuh! - Add avalidateOptionshook to the Image Service API in order to set default options and validate the passed options#6605
283734525ThaConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.