Chris Swithinbank
831dfd1516
Filter out astro from peerDependencies
in astro add
( #7620 )
2023-07-11 12:42:11 +02:00
bluwy
13b36d962a
[ci] format
2023-07-11 09:24:06 +00:00
Bjorn Lu
03c28aa629
Refactor simple CLI commands ( #7619 )
2023-07-11 17:21:57 +08:00
Emanuele Stoppa
3669e2d276
fix: astro info
command fallback for package manager ( #7618 )
2023-07-10 19:08:18 +01:00
Bjorn Lu
255dead86f
Add CLI startup speed benchmark ( #7617 )
2023-07-10 23:43:01 +08:00
bluwy
65ecbcb286
[ci] format
2023-07-10 14:30:38 +00:00
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