Wooseop Kim
9739adc91f
fix: encode spaces when generating srcset
( #7340 )
2023-06-22 15:56:41 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies ( #7430 )
2023-06-21 21:09:49 +08: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
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
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
556fd694a6
Rename tailwind integration options ( #7391 )
2023-06-15 23:40:42 +08: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
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
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
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
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
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
Sarah Rainsberger
67c8f34a99
fix note syntax in Netlify README ( #7305 )
2023-06-06 09:50:44 -05: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
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
Bjorn Lu
ef410fa30b
Simplify Deno test ( #7276 )
2023-06-05 15:05:16 +08: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
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
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
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
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
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
df1e6f78df
Fix markdoc image tests ( #7231 )
2023-05-29 16:37:40 +08:00
Bjorn Lu
1c77779dd6
Fix astro-static-slot
hydration mismatch error ( #7196 )
2023-05-26 22:37:33 +08:00
bholmesdev
594a3aaf51
[ci] format
2023-05-25 15:37:55 +00:00
Ben Holmes
16b8364119
Markdoc - improve syntax highlighting support ( #7209 )
...
* feat: prism and shiki support, with better exports!
* chore: update tests
* chore: fix lock
* chore: add prism test
* chore: remove `async` from prism
* docs: update syntax highlight readme
* chore: changeset
* edit: remove `await` from prism docs
* chore: update old changest with new shiki instructions
* fix: add trailing newline on ts-expect-error
* refactor: resolve promises internally
* docs: remove `await` from shiki examples
2023-05-25 11:35:07 -04:00
Erika
f5a8cffac2
fix(vercel): Fix typo in README 🤦♀️ ( #7208 )
2023-05-25 14:59:25 +02:00
Bjorn Lu
ea16570b1e
Add MDX optimize option ( #7151 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-25 19:43:29 +08:00
Bjorn Lu
20a97922aa
Document partytown script block by extensions ( #7205 )
2023-05-25 19:42:57 +08:00
Emanuele Stoppa
8727b5bd85
fix: formatting comment ( #7206 )
2023-05-25 10:29:11 +01:00
Alexander Niebuhr
6ca3b5a9e8
Export ChangeFreqEnum type for sitemap integration ( #7028 )
2023-05-25 17:15:26 +08:00
Akash Rajpurohit
59d8c50b84
fix: 🩹 update partytown options ts type ( #7175 )
2023-05-25 16:24:59 +08:00
bholmesdev
dc31b8a722
[ci] format
2023-05-24 20:54:43 +00:00
Ben Holmes
1efaef6be0
Markdoc - Shiki ( #7187 )
...
* chore: remove unused util
* chore: changeset
* deps: shiki
* wip: first stab at shiki markdoc config
* feat: get shiki working!
* refactor: return HTML string directly from transform
* chore: move shiki to markdoc dev dep
* refactor: use async cache with clear docs on why
* test: transform units with Shiki config options
* refactor: switch to `extends` model
* refactor: nodes/ -> extensions/
* feat: raise friendly error for Promise extensions
* docs: README
* chore: lint
* chore: dead file
* chore: lowercase for fuzzy find please
* fix: bad ctx spread
* chore: clean up cache, add shiki imp error
* chore: add shiki to optional peer deps
* chore: hoist those consts
* docs: more explicit "install shiki now please"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* oops bad find and replace
* chore: update changeset
* nit: period haunts me
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-24 16:52:22 -04:00
Emanuele Stoppa
7851f9258f
fix: detect mdx
files using full extension ( #7192 )
2023-05-24 10:20:06 +01:00
Bjorn Lu
27c6e01826
Remove @mdx-js/rollup
dependency ( #7191 )
2023-05-24 17:02:04 +08:00
Houston (Bot)
55a0439e00
[ci] release ( #7181 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 16:24:16 -04:00
Ben Holmes
57e65d247f
revert: markdoc asset bleed ( #7178 )
...
* revert: markdoc asset bleed
* chore: changeset
2023-05-23 12:16:50 -04:00
Houston (Bot)
cbdb0fdbd6
[ci] release ( #7169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-23 11:06:53 -04:00
Houston (Bot)
64d2aba583
[ci] release ( #7163 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 15:16:13 -04:00
matthewp
6533cbea87
[ci] format
2023-05-22 17:52:03 +00:00
Ben Holmes
f558a9e205
[Markdoc] Fix global asset bleed ( #6758 )
...
* wip: propagatedAssets flag per-component
* Propagate in TreeNode
* fix: remove unused inject comment
* feat: make asset propagation an integration opt-in
* fix: remove crawlGraph stopper
* wip: logs to understand what's happening
* SSR mdoc files in dev
* feat: add astroPropagatedAssets flag with vite
* chore: remove console logs
* chore: cleanup hasContentFlag
* fix: set handlePropagation default for legacy integrations
* chore: changeset
* temp: silence acorn type error
* chore: revert pnpm-lock changes
* fix: check correct flag
* We need to handle propagation on markdown because of layouts
* Remove use of renderStyleElement
* Fix heading tests
* Fix merge conflict
* typeof function
* Switch the check
* Add comment on injection detection regexp
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-22 13:50:01 -04:00
Houston (Bot)
d880293f79
[ci] release ( #7161 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-22 09:48:21 -04:00
Houston (Bot)
0616ef2551
[ci] release ( #7130 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-21 00:00:31 +08:00
bholmesdev
358d1dc92f
[ci] format
2023-05-19 18:14:41 +00:00
Ben Holmes
a9e1cd7e58
Fix: Heading ID CI flakiness ( #7141 )
...
* feat: use `ctx` object instead of leaky global
* test: heading IDs stale caches
* chore: changeset
2023-05-19 14:12:45 -04:00
Connor Bär
147373722b
fix(prefetch): Fix the inclusion of @types/network-information
( #7123 )
2023-05-19 23:34:34 +08:00
Houston (Bot)
31cbf4357e
[ci] release ( #7090 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-18 12:31:59 -04:00
Ben Holmes
6b4fcde376
Fix: add headings
to .mdoc
render type ( #7111 )
...
* fix: add `headings` to `.mdoc` render type
* chore: changeset
2023-05-17 16:35:48 -04:00
Ben Holmes
c6d7ebefdd
Data collections and references ( #6850 )
...
* feat: add generated lookup-map
* feat: wire up fast getEntryBySlug() lookup
* fix: consider frontmatter slugs
* chore: changeset
* chore: lint no-shadow
* fix: revert bad rootRelativePath change
* chore: better var name
* refactor: generated `.json` to in-memory map
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Revert "chore: removed unneeded await"
This reverts commit 1b0a8b00c2
.
* fix: bad `GetEntryImport` type
* chore: remove unused variable
* refactor: for -> Promise.all
* refactor: replace duplicate parseSlug
* refactor: add cache layer
* Revert "refactor: add cache layer"
This reverts commit 1c3bfdc6b3
.
* feat: json collection POC
* wip: add test json file
* wip: playing with api ideas
* refactor: extract getCollectionName
* feat: add defineDataCollection
* refactor: variable destructure
* wip: basic data entry pipeline
* chore: revert fixture playing
* wip: basic entry array parser
* feat: basic data type gen
* chore: add with-data playground
* feat: add error when `defineDataCollection()` isn't used
* fix: missing error message
* feat: data collections are here!
* wip: play with data query APIs
* feat: reference() util!
* fix: Markdoc `$entry` variable
* play: add reference util with markdoc
* chore: delete console logs
* feat: `src/data/`!
* feat: reference() errors
* fix: handle hoisted schema parse errors
* fix: reload config and invalid on collection changes
* feat: separate maps for content and data entries
* feat: new `reference()` API that fixes type inference
* feat: support `defineCollection()` for data config
* fix: defineCollection `type` inferenenceπinference
* chore: lock
* feat: getCollection() for everything!
* feat: get full entry access from reference()
* chore: changeset
* wip: type error on acorn?
* chore: lint
* chore: add slugger to data ID processing
* chore: astro/zod -> zod
* chore: example version
* chore: remove slugifier from data id
* chore: remove dead getDataCollection
* chore: remove dead defineDataCollection
* fix: bad collection import
* chore: lock
* feat: add data collections to lookup map
* refactor: stop resolving data from reference
* feat: introduce getEntry and new reference()
* fix: update config loader
* fix: reference() type
* feat: test self references (they work 🎉 )
* fix: use `slug` for content references
* fix: bad getEntry content type
* chroe: remove console logs
* fix: strict null checks on with-data
* feat: add getEntries for ref arrays
* chore: fix type hints for reference strings
* chore: change to type never for clarity
* play: try getEntries
* Return to "everything goes in `src/content/`
This reverts commit cc637ec6db4fc23afab585df5f240b7f7c0abc8a.
* fix: remove old function
* chore: update to AstroErrors
* chore: remove unused fixture files
* play: names
* deps: js-yaml
* feat: data collection YAML with error handling
* refactor: remove console log
* refactor: code cleanup
* fix: allow mixed content to pass through glob imports
* chore: move lookupMap util to virtual-mod
* refactor: new lookupMap logic, better errors
* chore: change MixedContent title
* refactor: remove unneeded try / catch
* fix: use `ws.send` for type gen errors
* fix: bubble `ws.send` errors from astro sync
* refactor: revert verbose astroContentCollectionEntry
* fix: bad with-data package name
* fix: bad virtual mod flag
* chore: remove with-data playground
* test: data collection authors
* test: translations data collection
* fix: add `.yml` support
* refactor: mix in `.yaml` just for fun
* refactor: i18n -> translations
* chore: content-collection-references fixture
* chore: bad lockfile
* fix: bad ContentLookupMap import
* chore: revert back to astroContentCollectionEntry
* test: collection references
* fix: bad error code override
* chore: remove unused asset
* test: sync errors
* chore: remove stray console log
* chore: lock
* chore: revert with-markdoc changes
* chore: doc error states, remove bad merge code
* chore: remove bad `as any`
* chore: lint
* chore: inline ContentLookupMap comments
* chore: settings -> config
* fix: put back `defineCollection()`
* fix: entry.slug for get content collection
* chore: update get-entry-type tests
* docs: totally shorten "missing a `type`"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: truncate share a `schema`
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: add `test:unit` and `test:unit:match`to base
* chore: update changeset
* refactor: cleanup runtime types and inline comments
* nit: [0] instead of shift()
* refactor: `getRelativeEntryPath()` util
* chore: capitalized Collections for test:match
* nit: ?? viteId on split
* nit: separate Params obj
* chore: add try / catch on readFile
* nit: `const data`
* chore: clean up data collection exceptions
* nit: `?? ''` for search params
* chore: remove TODO on hoisted error
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 11:36:27 -04:00
matthewp
34202616c2
[ci] format
2023-05-17 14:20:24 +00:00
Matthew Phillips
3d525efc95
Prevent removal of nested slots within islands ( #7093 )
...
* Prevent removal of nested slots within islands
* Fix build errors
2023-05-17 10:18:04 -04:00
matthewp
5c3c672d26
[ci] format
2023-05-17 13:26:03 +00:00
Happydev
719002ca5b
feat: hybrid output ( #6991 )
...
* update config schema
* adapt default route `prerender` value
* adapt error message for hybrid output
* core hybrid output support
* add JSDocs for hybrid output
* dev server hybrid output support
* defer hybrid output check
* update endpoint request warning
* support `output=hybrid` in integrations
* put constant variable out of for loop
* revert: reapply back ssr plugin in ssr mode
* change `prerender` option default
* apply `prerender` by default in hybrid mode
* simplfy conditional
* update config schema
* add `isHybridOutput` helper
* more readable prerender condition
* set default prerender value if no export is found
* only add `pagesVirtualModuleId` ro rollup input in `output=static`
* don't export vite plugin
* remove unneeded check
* don't prerender when it shouldn't
* extract fallback `prerender` meta
Extract the fallback `prerender` module meta out of the `scan` function.
It shouldn't be its responsibility to handle that
* pass missing argument to function
* test: update cloudflare integration tests
* test: update tests of vercel integration
* test: update tests of node integration
* test: update tests of netlify func integration
* test: update tests of netlify edge integration
* throw when `hybrid` mode is malconfigured
* update node integraiton `output` warning
* test(WIP): skip node prerendering tests for now
* remove non-existant import
* test: bring back prerendering tests
* remove outdated comments
* test: refactor test to support windows paths
* remove outdated comments
* apply sarah review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: `experiment.hybridOutput` jsodcs
* test: prevent import from being cached
* refactor: extract hybrid output check to function
* add `hybrid` to output warning in adapter hooks
* chore: changeset
* add `.js` extension to import
* chore: use spaces instead of tabs for gh formating
* resolve merge conflict
* chore: move test to another file for consitency
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-17 09:23:20 -04:00
bholmesdev
d4b00b541b
[ci] format
2023-05-17 13:16:36 +00:00
Ben Holmes
fb84622af0
[Markdoc] headings
and heading IDs ( #7095 )
...
* deps: markdown-remark
* wip: heading-ids function
* chore: add `@astrojs/markdoc` to external
* feat: `headings` support
* fix: allow `render` config on headings
* fix: nonexistent `userConfig`
* test: headings, toc, astro component render
* docs: README
* chore: changeset
* refactor: expose Markdoc helpers from runtime
* fix: bad named exports (commonjsssss)
* refactor: defaultNodes -> nodes
* deps: github-slugger
* fix: reset slugger cache on each render
* fix: bad astroNodes import
* docs: explain headingSlugger export
* docs: add back double stringify comment
* chore: bump to minor for internal exports change
2023-05-17 09:13:10 -04:00
Bjorn Lu
c91e837e96
Add edge-light
and worker
to vercel edge bundling ( #7103 )
2023-05-17 09:06:18 -04:00
Bjorn Lu
826e028900
Add files field to packages ( #7104 )
2023-05-17 16:54:00 +08:00
Bjorn Lu
2994bc52d3
Build edge/worker runtime with webworker ssr target ( #7101 )
2023-05-17 15:44:20 +08:00
bluwy
448ec017a2
[ci] format
2023-05-16 12:03:19 +00:00
Johannes Spohr
2a1fa09b31
Add workerd
and worker
to cloudflare adapter bundling ( #7092 )
2023-05-16 20:00:29 +08:00
Happydev
cd410c5eb7
Fix double prepended forward slash in certain cases ( #7091 )
...
* test: add test with no base
* fix: don't always prepend a forward slash
* chore: changeset
* `'/' + base` ------> `prependForwardSlash(base)`
2023-05-15 08:53:34 -04:00
bluwy
c6b0a6982a
[ci] format
2023-05-15 06:16:32 +00:00
Nathaniel Blackburn
06ca3702f8
Inject analytics env ( #6876 )
2023-05-15 14:13:47 +08:00
Houston (Bot)
8d09a14a7b
[ci] release ( #7077 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12 15:00:17 -04:00
matthewp
b064ca6539
[ci] format
2023-05-12 14:03:42 +00:00
Matthew Phillips
781f558c40
Correct handle directory finds when using base in the Node adapter ( #7076 )
2023-05-12 10:01:05 -04:00
Houston (Bot)
0fc026f63c
[ci] release ( #7065 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-11 15:14:17 -04:00
Caleb Jasik
ebb40f5cb0
@astrojs/image
: Add fetchpriority
to Picture
types (#7059 )
...
* Add `fetchpriority` to `Picture` types
* Add changeset
2023-05-11 14:40:53 +02:00
Houston (Bot)
a44e755cc6
[ci] release ( #7043 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 17:37:15 -04:00
Ben Holmes
3a9f72c7f3
[Markdoc] Validation and debugging improvements ( #7045 )
...
* feat: better validation logs
* chore: add warning to restart server on config chnage
* feat: expose Markdoc global from markdoc/config
* docs: update `nodes` reference
* chore: changeset
* docs: simplify headings explainer
* chore: ignore eslint log errors
* fix: make legacyConfig prop optional
2023-05-09 17:20:55 -04:00
Reuben Tier
1b90a7a5d5
Fix generation for routes defined using getStaticPaths ( #7029 )
...
* Fix static site dynamic routes for sitemap integration
* Add changeset
* Update pnpm-lock
* Remove console.log
2023-05-08 16:12:41 -04:00
Houston (Bot)
e54dcd5943
[ci] release ( #7037 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-08 13:17:09 -04:00
Houston (Bot)
50bf66e4df
[ci] release ( #7005 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-05 13:23:18 -04:00
Waxer59
ad5c75447a
Fix partytown
README ( #7001 )
...
* fix README
* add changeset
2023-05-05 09:52:41 +02:00
Houston (Bot)
170140083c
[ci] release ( #6996 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 16:19:01 -04:00
Houston (Bot)
51c8e7fe29
[ci] release ( #6977 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 12:49:17 -04:00
ematipico
14fd198ea5
[ci] format
2023-05-04 14:25:03 +00:00
Robin Neal
ca329bbcae
Generate unique ids within each React island ( #6976 )
2023-05-04 15:23:00 +01:00
Emanuele Stoppa
8d75340b7a
fix: double test names ( #6978 )
2023-05-03 13:41:39 -04:00
Emanuele Stoppa
831b67cdb8
feat(astro): experimental middleware ( #6721 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03 17:40:47 +01:00
Atila Fassina
ad907196cb
Sitemap: support SSR routes ( #6534 )
...
* feat(sitemap): support SSR generated routes
* feat(sitemap): add changeset for SSR support
* refactor: move logic to `astro:build:done`
* generate route to obey `trailingSlash` setting
* add logic to respect "directory" build format
* integration(sitemap): add unit test for ssr support
2023-05-03 12:19:45 -04:00
Bjorn Lu
49514e4ce4
Upgrade shiki to v0.14.1 ( #6932 )
...
* Upgrade shiki
* Update themes
* Update languages
* Simplify
* Fix compat for other remark code
* Update theme again
* Fix language gen
* Add changeset
* Fix code
* Update test theme colors
* Update changeset
* Fix test again
2023-05-03 11:07:57 -04:00
Houston (Bot)
297a1dae51
[ci] release ( #6954 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-02 15:13:10 -04:00
Bjorn Lu
77270cc2cd
Avoid removing leading slash for build.assetsPrefix
( #6969 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-02 14:13:44 -04:00
Matthew Phillips
b6797fc858
Update Solid ecosystem package logic to include packages with peerDep… ( #6934 )
...
* Update Solid ecosystem package logic to include packages with peerDep of Solid
* Remove solid as a noExternal
* Update the changeset
2023-05-02 13:23:28 -04:00
Erika
6063f56573
feat(vercel): Add support for image optimization API ( #6845 )
...
* feat(vercel): Add support for image optimization API
* chore: changeset
* feat: implement image service
* feat: dev service
* feat: full local service
* fix: move assets check to astro:config:done
* feat: update with new settings
* fix: remove unused param
* test: add tsets
* fix: rename to imageService
* docs: add docs
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs(vercel): Add Added In mentions
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-02 09:42:48 +02:00
Erika
e5bd084c01
fix: fix sharp semver range to allow for 0.32.0 ( #6952 )
...
* fix: fix sharp semver range to allow for 0.3é20
* fix: revert back to 0.31.0
2023-05-01 17:32:50 +02:00
Houston (Bot)
d0cf3a2c01
[ci] release ( #6924 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-01 10:58:03 -04:00
André Alves
8ed3270bd0
fix some TS compilation errors ( #6939 )
2023-05-01 10:41:09 -04:00
matthewp
d6b153bcac
[ci] format
2023-05-01 14:11:30 +00:00
Matthew Phillips
c405cef647
Catch errors that occur within the stream in the Node adapter ( #6935 )
...
* Catch errors that occur within the stream in the Node adapter
* Adding a changeset
* Better error message on completely uncaught errors within the stream
* Update test
2023-05-01 10:08:18 -04:00
Matthew Phillips
649d70934e
Configure redoc to be noExternal ( #6933 )
2023-05-01 09:31:44 -04:00
Bjorn Lu
2dca81bf21
Update dependencies to remove peer dep warnings ( #6930 )
2023-04-28 21:21:47 +08:00
Bjorn Lu
ac57b5549f
Upgrade undici to v5.22.0 ( #6929 )
2023-04-28 21:13:49 +08:00
Yan Thomas
d11d185951
Add missing code language in Cloudflare README ( #6925 )
2023-04-28 14:37:26 +08:00
Bjorn Lu
de5a25f4e9
Fix changeset publish ( #6923 )
2023-04-27 22:55:48 +08:00
Houston (Bot)
06c527330a
[ci] release ( #6914 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-27 22:12:14 +08:00
AirBorne04
58f7700e87
[ci] format
2023-04-27 08:13:11 +00:00
Daniel
081b2402cf
esbuild respects vite.build.minify
option ( #6222 )
...
* esbuild respects `vite.build.minify` option
* Docs update
---------
Co-authored-by: AirBorne04 <>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-04-27 10:11:05 +02:00
Bjorn Lu
ec5f6a07ae
Upgrade turbo ( #6911 )
2023-04-27 11:39:15 +08:00
Houston (Bot)
c6f1264586
[ci] release ( #6863 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-25 22:48:36 +08:00
Bjorn Lu
edabf01b44
Upgrade to Vite 4.3 ( #6877 )
2023-04-25 22:04:45 +08:00
Nathaniel Blackburn
43230b2cac
Align adapter setup ( #6874 )
2023-04-19 09:36:46 +02:00
Houston (Bot)
763b7500e5
[ci] release ( #6842 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-14 12:11:17 -04:00
Bjorn Lu
2e3125e180
Fix vercel edge private env vars ( #6841 )
2023-04-14 21:46:24 +08:00
Chris Swithinbank
00a2e1d7c7
Fix warning syntax in Vercel integration README ( #6840 )
2023-04-14 12:08:31 +02:00
Houston (Bot)
b105ccb9ca
[ci] release ( #6835 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-13 14:41:56 -04:00
Houston (Bot)
0f4c005750
[ci] update lockfile ( #6837 )
...
* [ci] update lockfile
* Fix type errors
* Fix zod version
* updated lockfile
* fix tests
---------
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-04-13 14:09:19 -04:00
Bjorn Lu
1fa041695e
Ensure unique workspace name ( #6836 )
2023-04-13 22:19:08 +08:00
Princesseuh
c464bf258f
[ci] format
2023-04-13 09:56:50 +00:00
Erika
2511d58d58
feat(mdx): Add support for turning ![]() into <Image> ( #6824 )
2023-04-13 11:54:40 +02:00
Ivo Ilić
c1e8f42a20
Added a caution about rewrites only working for static files ( #6517 )
...
Currently using rewrite with static files works but server rendered files with either edge or serverless function don't get rewritten.
See: https://github.com/withastro/astro/issues/6446
2023-04-12 14:21:59 -04:00
Emanuele Stoppa
eab397a941
chore: update xml2js
version ( #6822 )
2023-04-12 22:39:26 +08:00
Houston (Bot)
b2254bd786
[ci] release ( #6818 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-12 08:51:55 -04:00
bholmesdev
44bd5da6d0
[ci] format
2023-04-11 17:47:24 +00:00
Ben Holmes
f882bc1636
Refactor content collection transforms ( #6817 )
...
* feat: json collection POC
* wip: add test json file
* refactor: rework content flag transforms
* refactor: simplify propagatedAsset check
* chore: remove JSON playground code
* chore: respect build sourcemap option
* deps: magic-string, source-map
* chore: formatting
* fix: add sourcemaps to MDX plugin
* chore: changeset
* deps: remove magic-string from mdx
* chore: remove unecessary MagicString
2023-04-11 13:44:39 -04:00
Houston (Bot)
b1d07bcf40
[ci] release ( #6809 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-11 13:10:00 -04:00
Alper Doğan
99479e6b95
Optional Sizes
prop on Picture component ( #6773 )
2023-04-10 14:09:02 +02:00