Bjorn Lu
1c7fda8169
Document codebase rendering concepts ( #7596 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-10 22:28:29 +08:00
Yan Thomas
131c92279e
Update prefetch README filename styling ( #7613 )
2023-07-10 14:37:09 +01:00
Bjorn Lu
904921cbe4
Ignore content .json files prefixed with underscores ( #7611 )
2023-07-10 20:39:32 +08:00
Ben Holmes
8df6a423c5
Fix: Hyphens breaking Markdoc tags ( #7599 )
...
* fix: handle hyphens in tag names
* test: add hyphen in test suite
* chore: changeset
2023-07-07 16:50:06 -04:00
matthewp
6fd9f4a160
[ci] format
2023-07-07 20:04:18 +00:00
Kory Smith
9807e4dc22
Updates prefetch integration to add "only prefetch link on hover/mouseover/focus" option ( #6585 )
...
* modifies prefetch to add the option to only prefetch certain pages on hover
* adds new pages to the test website to showcase prefetch-intent functionality
* adds tests to verify prefetch-intent behavior
* adds changelog
* waits until networkidle to check if the prefetching worked instead of waiting on a specific url load
* allows intentSelector to be either a string or array of strings
* Revert "allows intentSelector to be either a string or array of strings"
This reverts commit b0268eb0d5
.
* fixes the multiple selector logic and adds tests
* updates docs to include new prefetch-intent integration
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/little-cars-exist.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/integrations/prefetch/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-07-07 16:01:23 -04:00
Ben Holmes
c135633bf6
Fix: Markdoc v0.4.0 docs ( #7593 )
...
* docs: add docs link to markdoc error
* docs: add named exports guide to README
* chore: changeset
* edit: no like so
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* edit: exposed as named exports
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-07-07 09:22:26 -04:00
zyoshoka
6f1c4ea388
Fix code snippet in markdoc README ( #7592 )
2023-07-07 07:22:47 -04:00
Tom Adler
3153d04dad
Runtime environment variables docs for node integration ( #7378 )
...
* Runtime environment variables docs for node integration
* Update packages/integrations/node/README.md
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
* final fixes
---------
Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com>
2023-07-07 09:45:12 +01:00
Yusuf
6bf20b62ce
docs(cloudflare): fix code snippet in enabling preview ( #7591 )
2023-07-07 09:28:30 +01:00
Houston (Bot)
f224078a65
[ci] release ( #7578 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-06 23:16:08 +08:00
Bjorn Lu
a0a1ca3e58
Refactor passing compressHTML ( #7585 )
2023-07-06 20:29:57 +08:00
Bjorn Lu
2d9c621c77
Simpify passing endpoint logging option ( #7584 )
2023-07-06 20:28:18 +08:00
sank.eth
2ca5bdde2b
corrected grammar. minor change ( #7580 )
2023-07-06 16:29:13 +08:00
Bjorn Lu
30d04db981
Refactor SSRResult
and RenderContext
( #7575 )
2023-07-06 00:25:24 +08:00
ematipico
44e56bb3bc
[ci] format
2023-07-05 16:05:32 +00:00
Emanuele Stoppa
6e9c295799
feat: astro info
command ( #7432 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 17:02:51 +01:00
ematipico
c490eb6e52
[ci] format
2023-07-05 15:48:32 +00:00
Emanuele Stoppa
9e5fafa2b2
feat: vercel edge middleware support ( #7532 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-07-05 16:45:58 +01:00
Emanuele Stoppa
cfd5b2b785
refactor: use only manifest to compute information ( #7571 )
...
* refactor: use only manifest to compute information
* use entry modules
* revert entry modules
2023-07-05 12:36:19 +01:00
Houston (Bot)
f820bb3f0b
[ci] release ( #7559 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-05 14:48:04 +08:00
bluwy
6dc251334f
[ci] format
2023-07-05 06:17:56 +00:00
THARAK HEGDE
4aecebae26
Fix MDX README typo ( #7567 )
2023-07-05 14:15:32 +08:00
Bjorn Lu
5ffdec7580
Fix style crawling logic for CSS HMR ( #7565 )
2023-07-05 14:13:45 +08:00
Bjorn Lu
c459b81785
Move createBasicEnvironment as test-util ( #7560 )
2023-07-04 22:56:40 +08:00
Bjorn Lu
917f25cffe
Handle callGetStaticPaths TODO ( #7558 )
2023-07-04 21:58:41 +08:00
Emanuele Stoppa
c412e4a7bb
chore: fix incorrect default type ( #7562 )
2023-07-04 14:04:25 +01:00
Johannes Spohr
47b756e3e1
Batch iterator buffering to reduce number of timeout calls ( #7544 )
2023-07-04 17:32:01 +08:00
Bjorn Lu
e7cea6f755
Fix incorrect format from organize-imports-cli ( #7553 )
2023-07-03 21:11:09 +08:00
Bjorn Lu
6036bdd3ae
Refactor getParamsAndProps code ( #7537 )
2023-07-03 21:05:47 +08:00
bluwy
cf515254a5
[ci] format
2023-07-03 13:02:42 +00:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs ( #7425 )
2023-07-03 20:59:43 +08:00
Houston (Bot)
fc6826ff76
[ci] release ( #7526 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-07-03 20:53:45 +08:00
bluwy
94a1529587
[ci] format
2023-07-03 08:12:47 +00:00
Wooseop Kim
e644b34659
fix: make Picture
generate valid dev URLs ( #7500 )
2023-07-03 16:09:40 +08:00
bluwy
3df71fd34f
[ci] format
2023-07-03 08:01:57 +00:00
Nate Moore
cdc28326cf
Update style attribute behavior for better object support ( #7542 )
2023-07-03 15:59:35 +08:00
Ken Powers
19c2d43ea4
Make APIRoute generic like APIContext ( #7521 )
2023-07-03 15:58:27 +08:00
Hippo
bc9ce779d3
Move code block titles into comments to match docs ( #7543 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-01 16:34:49 +02:00
natemoo-re
0251e4e6cf
[ci] format
2023-06-30 22:27:42 +00:00
金成
1170877b51
Fix multiple create-astro
registry issues ( #7539 )
...
* fix: getVersion Error when registry ends with '/'
* Update .changeset/old-seahorses-fold.md
* Update .changeset/old-seahorses-fold.md
* refactor: cleanup registry logic
* chore: update changeset
* fix(create-astro): update registry logic to rely on `fetch`
* chore: update changeset
* chore: update lockfile
* Update old-seahorses-fold.md
---------
Co-authored-by: jincheng32537 <jincheng32537@hundsun.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-06-30 17:24:36 -05:00
wackbyte
2172dd4f0d
fix: don't serialize undefined
as null
( #7531 )
...
* fix: don't serialize `undefined` as `null`
* test: include more types in the pass-js test
2023-06-30 16:24:29 -05:00
Bjorn Lu
4dd8849be2
Remove unused getParamsAndProps call ( #7535 )
2023-06-30 16:18:29 -05:00
Paweł Mrowiec
4256409a94
Fix image metadata generation ( #7510 )
...
* Fix problem where image metadata generation throwed error when provided url started with /@astroimage
* Remove unnecessary changes
2023-06-30 09:38:23 -05:00
Nate Moore
9e2426f756
fix( #7471 ): fallback to npm registry if config command fails ( #7527 )
2023-06-30 09:25:21 -05:00
Bjorn Lu
fcba0f0199
Refactor telemetry usage flow ( #7522 )
2023-06-30 17:28:17 +08:00
ematipico
5b1745bf31
[ci] format
2023-06-30 09:12:30 +00:00
Alexander Niebuhr
1a59185ddd
feature(astrojs/cloudflare): add support for splitted
SSR bundles ( #7464 )
...
* initial commit
* try to fix windows
* output files directly into the correct folder
* allow for rest parameters
* use fixed hook
* improve tests
* apply doc's team suggestions for README
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* try to fix prerendering
* apply doc's team suggestion for changeset
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* bump to minor
* readme update
* resolve review comments
* optimize memory allocation
* resolve review comments
* add removed link, to make sure old docs keep same
* resolve comment
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-30 10:09:21 +01:00
matthewp
7ae6e89292
[ci] format
2023-06-29 20:21:41 +00:00
Matthew Phillips
154af8f5ea
Split support in the Vercel Serverless adapter ( #7514 )
...
* start of vercel split support
* Split Mode with the Vercel Adapter
* Write routes into the config.json
* Add a changeset
* Add docs
* Better changeset
2023-06-29 16:18:28 -04:00
bluwy
5df4853bd1
[ci] format
2023-06-29 13:22:07 +00:00
Bjorn Lu
baaeab0a67
Refactor component and renderers loading flow ( #7518 )
2023-06-29 21:19:43 +08:00
Houston (Bot)
56f1b1229c
[ci] release ( #7496 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-29 17:14:24 +08:00
natemoo-re
40029e1af4
[ci] format
2023-06-28 19:51:38 +00:00
Nate Moore
d3247851f0
Pass compressHTML
settings to manifest ( #7488 )
...
* fix(#7333 ): pass compressHTML to manifest
* chore: add compressHTML to astro:ssr-manifest test
2023-06-28 14:49:10 -05:00
ematipico
34517ce8c0
[ci] format
2023-06-28 12:08:41 +00:00
Emanuele Stoppa
f4fea3b02b
fix: correctly handle prerender pages in split mode ( #7509 )
2023-06-28 13:06:16 +01:00
Ben Holmes
1a9b644e20
fix: ts-expect-error ( #7505 )
2023-06-27 16:25:27 -05:00
bholmesdev
647079da14
[ci] format
2023-06-27 19:08:29 +00:00
Ben Holmes
fb7af55114
feat: New Markdoc render
API ( #7468 )
...
* feat: URL support for markdoc tags
* refactor: move to separate file
* feat: support URL for markdoc nodes
* feat: support `extends` with URL
* chore: changeset
* fix: bad AstroMarkdocConfig type
* fix: experimentalAssetsConfig missing
* fix: correctly merge runtime config
* chore: formatting
* deps: astro internal helpers
* feat: component() util, new astro bundling
* chore: remove now unused code
* todo: missing hint
* fix: import.meta.url type error
* wip: test nested collection calls
* feat: resolve paths from project root
* refactor: move getHeadings() to runtime module
* fix: broken collectHeadings
* test: update fixture configs
* chore: remove suggestions. Out of scope!
* fix: throw outside esbuild
* refactor: shuffle imports around
* Revert "wip: test nested collection calls"
This reverts commit 9354b3cf9222fd65b974b0cddf4e7a95ab3cd2b2.
* chore: revert back to mjs config
* chore: add jsdocs to stringified helpers
* fix: restore updated changeset
---------
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-06-27 15:05:17 -04:00
delucis
47b47e0e54
[ci] format
2023-06-27 15:17:59 +00:00
r-southworth
b51d515d2d
Update astro.ts to clarify configuration settings for base ( #7392 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-27 17:15:10 +02:00
Ben Holmes
f6feff7a29
feat: restart server on markdoc config change ( #7467 )
...
* deps: vite-plugin-restart
* feat: restart on markdoc config change
* chore: changeset
* chore: roll our own restarter!
* deps: remove vite-plugin-restart
* refactor: use good enough option
2023-06-27 10:46:59 -04:00
Matteo Manfredi
2726098bc8
Update setTimeout()
to queueMicrotask()
( #7494 )
2023-06-27 22:16:41 +08:00
Bjorn Lu
a82c6df25b
Remove unused rendering code ( #7497 )
2023-06-27 22:16:22 +08:00
Bjorn Lu
a3928016cc
Fix CSS error line offset ( #7491 )
2023-06-27 21:16:43 +08:00
Bjorn Lu
6dfd7081b7
Fix error stacktrace from Vite SSR runtime ( #7273 )
2023-06-27 21:16:29 +08:00
Bjorn Lu
83016795e9
Simplify nested hydration flow ( #7370 )
2023-06-27 21:16:10 +08:00
Houston (Bot)
da56a005d9
[ci] release ( #7449 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-27 08:42:46 -04:00
ematipico
275d0d1683
[ci] format
2023-06-27 11:00:40 +00:00
Emanuele Stoppa
6014037441
fix: correct URL for entry points ( #7490 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-27 11:58:23 +01:00
Bjorn Lu
57e603038f
Handle esbuild 0.18 changes ( #7479 )
2023-06-27 11:59:22 +08:00
Chris Swithinbank
2eca765f91
Remove invalid code block language tag in sitemap README ( #7487 )
2023-06-27 00:02:20 +02:00
bluwy
0daaa9efba
[ci] format
2023-06-26 09:30:08 +00:00
Rasso Hilber
478cd9d8fa
fix: Installs underneath a path containing leading underscores ( #7476 )
2023-06-26 17:27:39 +08:00
bluwy
c1564d3c02
[ci] format
2023-06-26 08:53:27 +00:00
Erika
4e02a59e42
fix(errors): Deprecate error codes ( #7347 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-26 16:51:06 +08:00
bluwy
39a24f111d
[ci] format
2023-06-26 03:40:32 +00:00
Reuben Tier
f75b354715
Bump dependency versions ( #7477 )
2023-06-26 11:38:16 +08:00
Waxer59
409734a9af
Typo fixed in node.mdx
( #7465 )
2023-06-26 11:34:56 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Willow (GHOST)
6e7f38dd79
Svelte Four ( #7454 )
2023-06-25 22:33:00 +08:00
Bjorn Lu
869197aafd
Fix markdoc test fail in main ( #7459 )
...
* Early out if `importedModule` has no `id`
We can do this as line 97 also has this guard for each `importedModules`
* Simplify `isPropagationStoppingPoint`
* Fix actual bug
* chore: changeset
---------
Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-06-23 17:00:19 -04:00
Bjorn Lu
2b75399520
Remove slash package ( #7440 )
2023-06-23 16:48:05 +08:00
matthewp
56d04e4100
[ci] format
2023-06-22 18:39:21 +00:00
Matthew Phillips
f359d77b18
Prevent accidental CSS inclusion in dev ( #7381 )
...
* Prevent accidental CSS inclusion in dev
* Use ssrTransformResult.deps instead
* Fix types
* Get dynamic deps too
* Handle virtual module deps
* Fix test on windows
2023-06-22 14:36:35 -04:00
Bjorn Lu
32bde967f4
Fix vercel redirects with trailingSlash always ( #7447 )
2023-06-22 23:40:08 +08:00
Houston (Bot)
38b104049a
[ci] release ( #7434 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-22 10:06:15 -04:00
Chris Swithinbank
03b7d17b99
Fix two errors for use in docs ( #7445 )
2023-06-22 12:10:59 +02:00
Wooseop Kim
9739adc91f
fix: encode spaces when generating srcset
( #7340 )
2023-06-22 15:56:41 +08:00
Benjamin MENANT
33cdc8622a
fix(astro:assets): inject /_image endpoint with prerendered=false on serverLikeOutput ( #7423 )
2023-06-22 15:20:35 +08:00
Ben Holmes
76fcdb84dd
Chore: remove legacy mdx content collections handler ( #7353 )
...
* chore: remove legacy mdx mapping
* chore: changeset
* chore: remove dead mdxEntryType
* nit: comments on mdx pkg name
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* smol smol smol nit: and vs or
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 19:51:15 -04:00
Ben Holmes
3f9f5c117e
fix: pnpm
failure on create-astro
( #7435 )
...
* fix: use which-pm-runs instead of preferred-pm
* deps: remove preferred-pm
* chore: move which-pm-runs to regular deps
* chore: changeset
2023-06-21 16:02:20 -04:00
Bjorn Lu
30bb363713
Fix astro:build:setup
hook updateConfig
utility ( #7438 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-06-21 21:56:25 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies ( #7430 )
2023-06-21 21:09:49 +08:00
ematipico
01b1c21c6b
[ci] format
2023-06-21 12:35:19 +00:00
Emanuele Stoppa
459b5bd05f
feat: SSR split
mode ( #7220 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-21 13:32:20 +01:00
ematipico
c8bccb47d3
[ci] format
2023-06-21 12:10:24 +00:00
Emanuele Stoppa
8e2923cc62
feat: expose locals to render api and from requests in dev mode ( #7385 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: wrapperup <wrapperup4@gmail.com>
2023-06-21 13:07:16 +01:00
Emanuele Stoppa
61d6e45cef
docs: add snippet for base
option ( #7384 )
2023-06-21 13:06:43 +01:00
KDTS
3943fa390a
Fix minior issue in the documentation related to port customization ( #7436 )
2023-06-21 10:40:52 +01:00
Ben Holmes
7877a06d82
Fix up pnpm dev
( #7424 )
...
* feat: use persistent per turbo recs
* feat: preserve types yay
* fix: *actually* solve problem
* fix: type failures from content types template
* fix: bad JS doc comments
* fix: bad src/content/template path
* chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-20 14:06:36 -04:00
ematipico
3fd10f4597
[ci] format
2023-06-20 16:34:32 +00:00
Emanuele Stoppa
e314a04bfb
fix: correctly emit middleware file name ( #7427 )
2023-06-20 17:32:30 +01:00
Houston (Bot)
1589eaabcd
[ci] release ( #7428 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-20 10:32:26 -04:00
Emanuele Stoppa
2b34fc4928
fix: document open
option ( #7418 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-06-20 15:24:29 +01:00
Chris Swithinbank
89a4835202
Fix telemetry reporting for integrations that return an array ( #7429 )
2023-06-20 14:42:49 +02:00
ematipico
82b1964432
[ci] format
2023-06-20 10:26:55 +00:00
Torbjørn Holtmon
94afaa3e50
fix: cloudflare waitUntil not working as inteded with getRuntime ( #7419 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-20 11:24:32 +01:00
Houston (Bot)
f87680f6df
[ci] release ( #7390 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-19 11:36:45 -04:00
Bjorn Lu
bb644834ef
Simplify telemetry Vite version detection ( #7414 )
2023-06-19 17:18:46 +08:00
Nate Moore
d2020c29cf
Fix injected route edge case ( #7399 )
...
* fix(#7397 ): update astro page entryname logic
* chore: add changeset
* fix: update printed log for injected routes
* fix: ensure /index is included
* test: add custom-404-pkg test
* chore: cleanup
2023-06-16 15:58:07 -05:00
Bjorn Lu
556fd694a6
Rename tailwind integration options ( #7391 )
2023-06-15 23:40:42 +08:00
Alvin Bryan
e407073c9e
Update error message for custom slugs in collection ( #7395 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-15 12:40:32 -03:00
Arsh
d67ae84610
Node built-in modules support for Deno adapter ( #7288 )
...
* feature(deno adapter): allow built-in node modules
* Add changeset
* format
2023-06-15 10:20:35 -04:00
Tom
3f1cb6b1a0
@astrojs/tailwind: simplify, upgrade & fix support for ts config file ( #6724 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-06-14 17:55:37 +08:00
Houston (Bot)
06315a1fde
[ci] release ( #7368 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-13 16:55:58 -04:00
matthewp
32b0f84a1c
[ci] format
2023-06-13 20:37:42 +00:00
beynar
6d8aa4b61f
[Cloudflare integration] Expose cf metadata and Cloudflare caches API ( #7386 )
...
* Add cf and cache properties to runtime
* add changeset
* reorder import
* fix types and add tests
* fix package name
* test
2023-06-13 16:34:44 -04:00
Bjorn Lu
3e1fbc2c8f
Use stub image service for tests ( #7376 )
2023-06-13 22:47:24 +08:00
Ben Holmes
1c7b635956
Fix: Zod errors missing stacktrace ( #7380 )
...
* wip: figure out stack issue, weird JSON stringify bug on zod issue
* refactor: return data instead of mutating
* refactor: remove need for reassignment
* fix: e.stack only
* chore: changeset
2023-06-12 17:20:04 -04:00
Matthew Phillips
0986a44ddd
Upgrade lit deps ( #7373 )
...
* Upgrade lit deps
* Add changeset
* Downgrade peer dep
* Upgrade lockfile
* add client dep
2023-06-12 15:52:13 -04:00
Bjorn Lu
807f46791d
Increase parallel test time tolerance ( #7372 )
2023-06-12 21:51:20 +08:00
Chris Swithinbank
0325bf7e0f
Add @message
to DuplicateContentEntrySlugError
( #7369 )
2023-06-12 11:48:53 +02:00
adenpun
42baf62e7c
Fixed AstroUserConfig
's redirect type definition ( #7366 )
2023-06-12 16:34:05 +08:00
Houston (Bot)
4f7091206c
[ci] release ( #7354 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-10 13:54:36 -04:00
Ben Holmes
0a8d178c90
Raise error for duplicate content entry slugs ( #7352 )
...
* chore: throw error on dup slugs
* chore: move to ErrorData
* fix: remove unknownerror
* chore: changeset
2023-06-10 13:49:17 -04:00
bholmesdev
777e5d7587
[ci] format
2023-06-10 17:45:51 +00:00
Ben Holmes
a30f2f3de4
Fix Markdoc cloudflare errors ( #7351 )
...
* fix: move `node:` libs out of utils
* fix: node -> default
* chore: remove kleur from markdoc ex (why was this there??)
* chore: lock
* chore: changeset
2023-06-10 13:43:26 -04:00
Ben Holmes
491c2db424
Fix: better collection entry devalue error ( #7341 )
...
* feat: add clear error for devalue parse
* refactor: create error data entry
* deps: up devalue
* chore: changeset
2023-06-09 18:15:11 -04:00
MoustaphaDev
1ac016225d
[ci] format
2023-06-09 20:23:53 +00:00
Happydev
bc7c164bc3
Do not silence runtime MDX errors ( #7089 )
...
* test: add fixture
* chore: remove unneeded files in fixture
* test: update test mdx filfe
* test: add test case
* mark component as mdx
* add error builder utility
* throw error when it comes from an MDX component
* chore: update lock file
* Add comment to refactor later
* apply review
* add missing comma
2023-06-09 20:21:32 +00:00
Houston (Bot)
e138f66344
[ci] release ( #7318 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-09 08:40:17 +03:00
matthewp
8341c461b5
[ci] format
2023-06-09 04:58:51 +00:00
Caleb Williams
1430ffb473
Fixes an issue where create Astro doesn't respect custom npm registries ( #7326 )
...
* Fixes an issue where create Astro doesn't respect custom npm registries
* chore: fix pnpm-lock
* chore: update lockfile
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-09 07:56:29 +03:00
matthewp
5c20476fd3
[ci] format
2023-06-09 04:56:15 +00:00
Matthew Phillips
bbcf69e7b8
Fix redirects in dev mode ( #7342 )
...
* Fix redirects in dev mode
* Adding a changeset
2023-06-09 07:54:14 +03:00
Matthew Phillips
3d9a392a09
Remove error message for using Markdown component ( #7343 )
2023-06-09 07:41:08 +03:00
Ben Holmes
e3271f8c16
Better dynamic route regex error ( #7339 )
...
* feat: add helpful invalid route seg error
* chore: add errors-data entry
* refactor: add hint for non-spread errors
* chore: add `undefined` to common cases
* nit: if the param contains slashes
* chore: changeset
* chore: it's trivial my dear watson
2023-06-08 18:12:39 -04:00
Edo-San
52f0480d14
Fix/update spread attribute ( #7310 )
...
* fix: add default fallback for spreadAttributes values
* chore: add PR changeset
* chore: fix pnpm lock
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-08 15:58:17 -05:00
Ben Holmes
e6bff651ff
Fix: catch and report config errors from handleConfigError
( #7316 )
...
* fix: catch and report config errors from `handleConfigError`
* chore: changeset
2023-06-07 09:59:20 -04:00
Bjorn Lu
9c525d3f11
Refactor some integration tests ( #7303 )
2023-06-07 18:04:34 +08:00
wackbyte
e47e53dc0c
Update to svelte2tsx 0.6.15 and vite-plugin-svelte 2.4.1 ( #7314 )
2023-06-06 18:07:43 -05:00
Houston (Bot)
8a029d9889
[ci] release ( #7312 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 17:24:57 -04:00
bholmesdev
8b5c311b34
[ci] format
2023-06-06 18:51:14 +00:00
Ben Holmes
a11b62ee1f
Fix: Markdoc type errors ( #7311 )
...
* fix: config, prism, shiki exports
* fix: type error for `render` property
* chore: use `.ts` files in select tests for type checks
* fix: type error on shiki() promise
* chore: changeset
2023-06-06 14:48:54 -04:00
Ben Holmes
8034edd9ec
Fix [Object AsyncGenerator] logging for Markdoc components ( #7307 )
...
* Revert "Bug 6672 (#7062 )"
This reverts commit cf621340b0
.
* chore: remove unused test
* chore: changeset
2023-06-06 13:48:10 -04:00
Ben Holmes
2a4bb23b2f
Fix missing styles and scripts on document: {render:null}
( #7309 )
...
* fix: propagate assets when using document `render: null`
* fix: reverse spread order
* refactor: use README rec in test
* chore: changeset
* chore: revert unneeded changes
2023-06-06 13:40:04 -04:00
Sarah Rainsberger
f63d1d0c4d
[docs-errors] Astro.redirects link changed ( #7308 )
2023-06-06 13:43:57 -03:00
Houston (Bot)
d5a089810f
[ci] release ( #7295 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-06 10:32:10 -05:00
natemoo-re
a1144f7fec
[ci] format
2023-06-06 15:11:47 +00:00
Alex Sherwin
4929332c32
#7226 - fixes NodeJS adapter for multiple set-cookie headers (and other header issues) ( #7227 )
...
* Utilizes the new standard WebAPI Fetch Headers.getSetCookie() function
to safely handle multiple set-cookie headers when converting from a
WebAPI Response to a NodeJS ServerResponse
Modifies the existing nodeMiddleware logic which first set AstroCookies
on ServerResponse.setHeader(...) and then called
ServerResponse.writeHead(status, Response.headers) which means any that
if the WebAPI Response had any set-cookie headers on it, they would
replace anything from AstroCookies.
The new logic delegates appending AstroCookie values onto the WebAPI
Response Headers object, so that a single unified function safely
converts the WebAPI Response Headers into a NodeJS compatible
OutgoingHttpHeaders object utilizing the new standard
Headers.getSetCookie() function provided by the undici WebAPI polyfills.
Plus extensive test coverage.
* #7226 - changeset for NodeJS adapter set-cookie fix
* fixing all double quotes to single quotes
---------
Co-authored-by: Alex Sherwin <alex.sherwin@acadia.inc>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:09:16 -05:00
Riki
409c60028a
fix:query not considered in directory redirection ( #7243 )
...
* fix:query not considered in directory redirection
* feat: req.url may be empty
* test(node): add redirect + query param tests
* refactor(node): cleanup query param logic
* chore: remove log
* chore: add changeset
---------
Co-authored-by: Riki <947968273@qq.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:09:00 -05:00
André Alves
144813f730
Fix injected scripts not injected to injected routes ( #7262 )
...
* Fix injected scripts not injected to injected routes
* chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-06 10:08:38 -05:00
Sarah Rainsberger
67c8f34a99
fix note syntax in Netlify README ( #7305 )
2023-06-06 09:50:44 -05:00
Bjorn Lu
d72cfa7cad
Fix nested astro-island hydration race condition ( #7197 )
2023-06-06 17:39:25 +08:00
natemoo-re
64b2b65410
[ci] format
2023-06-05 18:21:15 +00:00
Nate Moore
39403c32fa
Unflag hybrid output ( #7260 )
...
* feat(hybrid): unflag hybrid output
* chore: cleanup rebase errors
2023-06-05 13:19:15 -05:00
Bjorn Lu
414eb19d2f
Remove experimental flag for custom client directives ( #7237 )
2023-06-06 00:04:35 +08:00
Erika
b5213654b1
feat(tsconfigs): Enable allowJs in base preset ( #7274 )
2023-06-05 17:31:21 +02:00
matthewp
4c33576a6c
[ci] format
2023-06-05 15:27:27 +00:00
Emanuele Stoppa
101f032098
feat: remove experimental flag middleware ( #7109 )
...
* fix: middleware for API endpoints
* feat: remove experimental flag middleware
* chore: rebase and update
* chore: check if physical file exists
* chore: restore change
* merge
* merge
* fix: remove options, not needed
* remove experimental from types
* chore: don't have the middleware inside the manifest
* Update how redirects work, slightly
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-06-05 11:25:18 -04:00
Princesseuh
435a231a26
[ci] format
2023-06-05 14:42:54 +00:00
Erika
a7e2b37ff7
fix(html): Export HTML components as default export so their type is valid JSX ( #7296 )
...
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-06-05 16:40:53 +02:00
matthewp
91b6ac31f3
[ci] format
2023-06-05 14:30:32 +00:00
Arsh
e3b8c62969
Stabilize inline stylesheets ( #7180 )
...
* changeset
* chore(inline stylesheets config): stabilize
* grammar
* not a major change
* Update inlineStylesheets version in the configuration reference
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-06-05 10:28:29 -04:00
matthewp
eb459577f0
[ci] format
2023-06-05 13:05:47 +00:00
Matthew Phillips
57f8d14c02
Redirects ( #7067 )
...
* Redirects spike
* Allow redirects in static mode
* Support in Netlify as well
* Adding a changeset
* Rename file
* Fix build problem
* Refactor to be more modular
* Fix location ref
* Late test should only run in SSR
* Support redirects in Netlify SSR configuration (#7167 )
* Implement support for dynamic routes in redirects (#7173 )
* Implement support for dynamic routes in redirects
* Remove the .only
* No need to special-case redirects in static build
* Implement support for redirects config in the Vercel adapter (#7182 )
* Implement support for redirects config in the Vercel adapter
* Remove unused condition
* Move to a internal helper package
* Add support for the object notation in redirects
* Use status 308 for non-GET redirects (#7186 )
* Implement redirects in Cloudflare (#7198 )
* Implement redirects in Cloudflare
* Fix build
* Update tests b/c of new ordering
* Debug issue
* Use posix.join
* Update packages/underscore-redirects/package.json
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update based on review comments
* Update broken test
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Test that redirects can come from middleware (#7213 )
* Test that redirects can come from middleware
* Allow non-promise returns for middleware
* Implement priority (#7210 )
* Refactor
* Fix netlify test ordering
* Fix ordering again
* Redirects: Allow preventing the output of the static HTML file (#7245 )
* Do a simple push for priority
* Adding changesets
* Put the implementation behind a flag.
* Self review
* Update .changeset/chatty-actors-stare.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update docs on dynamic restrictions.
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Code review changes
* Document netlify static adapter
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Slight reword
* Update .changeset/twenty-suns-vanish.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Add a note about public/_redirects file
* 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: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-05 09:03:20 -04:00
Matthew Phillips
dd1a6b6c94
Fixes cookies being set by middleware ( #7294 )
...
* Fixes cookies being set by middleware
* Adding a changeset
2023-06-05 08:28:29 -04:00
bluwy
af9ac3360b
[ci] format
2023-06-05 08:04:02 +00:00
Jerry_wu
890a2bc989
remove the white space after the doctype according to the property co… ( #7242 )
2023-06-05 16:02:04 +08:00
Bjorn Lu
ef410fa30b
Simplify Deno test ( #7276 )
2023-06-05 15:05:16 +08:00
Houston (Bot)
c895981386
[ci] release ( #7278 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 13:17:55 -05:00
Nate Moore
229affca40
Add 'starlight' as template alias ( #7277 )
...
* feat(create-astro): add starlight as template alias
* chore: lint
2023-06-02 12:56:25 -05:00
Houston (Bot)
c64dfdd3d8
[ci] release ( #7254 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-06-02 10:51:28 -04:00
Bjorn Lu
96ae37eb09
Fix Vitest with content collections ( #7233 )
2023-06-02 21:05:57 +08:00
Ben Holmes
9e7366567e
Content collections: ignored underscore directories in file glob ( #7268 )
...
* fix: ignored underscore dirs in glob
* chore: changeset
2023-06-02 07:54:50 -04:00
bluwy
6533041ce0
[ci] format
2023-06-02 08:53:10 +00:00
Benjamin MENANT
6e27f2f6db
fix(astro/core/app/node): support http2 requests ( #7215 )
2023-06-02 16:51:09 +08:00
Johannes Spohr
fea3069360
Parallel array rendering ( #7136 )
2023-06-02 16:46:12 +08:00
bluwy
6b8d55b096
[ci] format
2023-06-02 08:10:03 +00:00
André Alves
dff0d0dda2
Fix sitemap filter ( #7263 )
2023-06-02 16:07:44 +08:00
Thiti Yamsung
5156c4f90e
fix: build fail upon have 'process.env' in *.md file. ( #7257 )
2023-06-01 10:34:02 -04:00
bholmesdev
c86f0c6e3e
[ci] format
2023-05-31 23:21:07 +00:00
Ben Holmes
339529fc82
Markdoc asset bleed, second try ( #7185 )
...
* Revert "revert: markdoc asset bleed (#7178 )"
This reverts commit 57e65d247f
.
* fix: missing result param on `renderUniqueStylesheet`
* test: bundled styles (fails!)
* fix: use `type: 'external'` for links
* fix: split Astro components from markdoc config
* test: style bleed (it fails...)
* chore: remove unused util
* fix: revert entry change
* Stop traversing the graph when you encounter a propagated asset
* chore: cleanup unused `entry` prop
* refactor: add isPropagatedAssetsMod check
* chore: remove unused import
* chore: changeset
* Normalize path using vite
* Update packages/integrations/markdoc/src/index.ts
Co-authored-by: Ben Holmes <hey@bholmes.dev>
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-05-31 19:18:07 -04:00
Nate Moore
e0ca0d8c8a
Revert "feat(hybrid): unflag hybrid output ( #7255 )" ( #7259 )
...
This reverts commit bc5d6ed39f
.
2023-05-31 12:06:24 -05:00
natemoo-re
4e653a4d29
[ci] format
2023-05-31 16:49:24 +00:00
Nate Moore
bc5d6ed39f
feat(hybrid): unflag hybrid output ( #7255 )
2023-05-31 11:47:25 -05:00
Ben Holmes
563293c5d6
Markdoc: strip HTML comments from output ( #7224 )
...
* feat: strip HTML comments from output
* chore: changeset
2023-05-31 10:09:49 -04:00
Houston (Bot)
ba865f5d64
[ci] release ( #7190 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-30 16:53:55 -04:00
Ben Holmes
f5063d0a01
Content collections - fix .json
collection errors ( #7246 )
...
* fix: avoid error on collectionType === 'unknown'
* fix: ignore underscores in file globs
* chore: clarify [!_]
* fix: mismatch error not throwing
* fix: bad collectionType var
* test: no error for empty collection
* chore: changeset
2023-05-30 16:27:47 -04:00
bholmesdev
8da07ab754
[ci] format
2023-05-30 20:21:13 +00:00
Ben Holmes
bef3a75dbc
Markdoc - remove $entry
variable ( #7244 )
...
* refactor: remove entry prop from `getRenderModule()`
* refactor: remove `$entry` from markdoc
* test: update entry-prop -> variables test
* refactor: unify `getEntryConfigByExt`
* chore: clean up shared content / data get logic
* docs: update `$entry` recommendation
* chore: rename entry-prop -> variables
* chore: changeset
* chore: missed a spot
2023-05-30 16:18:20 -04:00
Ben Holmes
c7897f20a9
Markdoc: new README for Markdoc nodes ( #7225 )
...
* docs: all-new nodes documentation
* edit: `.astro` ONLY
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: `.` outside links, line break
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: such as, not like
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: more Astro less probs
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: reviewers React to
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: tagz
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: add `default: 'article'` for document
* edit: reword client-side instructions
* edit: prism stylesheet got lost
* fix: heading -> blockquote
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 14:51:38 -04:00
MoustaphaDev
4851782197
[ci] format
2023-05-30 14:14:52 +00:00
Happydev
ee2aca80a7
fix: prioritize dynamic prerendered routes over dynamic server routes ( #7235 )
...
* test: add unit tests
* fix: prioritize prerendered routes
* chore: fix test
* add comment
* test: try avoiding race condition
* chore: changeset
* try avoiding race conditions attempt #2
* try avoiding race conditions (attempt 3)
* final fix hopefuly
* tet: add more tests
* sort conflicting dynamic routes aplhabetically
* test: fix test
2023-05-30 14:12:16 +00:00
matthewp
e20a3b20b7
[ci] format
2023-05-30 12:08:08 +00:00
wulinsheng123
cf621340b0
Bug 6672 ( #7062 )
...
* fix miss a head when the templaterender has a promise
* fix
* add some test
* test files move to md directory
* fix add
* delect file
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-05-30 08:05:48 -04:00
Bjorn Lu
29da199e9a
Document MDX optimize static logic ( #7221 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-30 15:46:33 +08:00
Bjorn Lu
af3c5a2e25
Use AstroError for Astro.glob errors ( #7219 )
...
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: sarah11918 <sarah11918@users.noreply.github.com>
2023-05-29 20:42:31 +08:00