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
Houston (Bot)
a5601a3cd3
[ci] release ( #6807 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-10 16:57:31 +08:00
André Alves
1e3873c04a
Fix no edge functions deployed to netlify ( #6793 )
2023-04-10 16:50:54 +08:00
Nathaniel Blackburn
84a4648884
Revert vercel env fix ( #6776 )
2023-04-10 16:40:29 +08:00
Bryce Russell
671a011d4f
Fix Tailwind README code block ( #6783 )
...
Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-04-08 16:57:16 +08:00
Houston (Bot)
d531239201
[ci] release ( #6769 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-07 17:25:00 -04:00
matthewp
f2112452ad
[ci] format
2023-04-06 22:36:23 +00:00
Matthew Phillips
a98f6f418c
Prevent body head content injection in MDX when using layout ( #6779 )
2023-04-06 18:33:47 -04:00
matthewp
e0ee7765d0
[ci] format
2023-04-06 19:43:15 +00:00
Matthew Phillips
416ceb9730
Use Deno API to set Astro.clientAddress ( #6651 )
...
* Use Deno API to set Astro.clientAddress
* Add types
2023-04-06 15:40:50 -04:00
Houston (Bot)
29e7b82b8d
[ci] release ( #6720 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-05 13:38:45 -04:00
Bjorn Lu
7116c021a3
Upgrade to Vite 4.2 ( #6759 )
2023-04-06 00:03:58 +08:00
Bjorn Lu
ff04307863
Add build.assetsPrefix
option for CDN support ( #6714 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-04-05 21:31:17 +08:00
Nathaniel Blackburn
26daba8d9f
@astrojs/vercel: Fix vercel analytics id not being provided ( #6751 )
...
* fix wrong environment variable being used
* added changeset
2023-04-05 09:23:40 -04:00
Augustine Kim
c7eb0d4310
Fix lit integration nested component rendering ( #6752 )
...
* Provide renderInfo to renderShadow
* Add test for rendering nested components
* Add changeset
2023-04-05 09:05:45 -04:00
Erika
4cc1bf61b8
fix(node): Fix malformed URLs crashing the server in certain cases ( #6746 )
2023-04-04 15:48:28 +02:00
André Alves
1ec1df1264
Fix #6618 : sitemap urls generated without slash ( #6658 )
2023-04-04 21:13:49 +08:00
Felix Frey
66f9de56ee
Fix broken links in TailwindCSS section ( #6747 )
2023-04-04 21:00:02 +08:00
Ben Holmes
73fcc7627e
[Markdoc] Fix: Support render: null
( #6723 )
...
* fix: handle array of tree nodes
* test: render null in document node
* chore: lock
* refactor: consolidate render test logic
* chore: changeset
2023-04-03 11:27:51 -04:00
matthewp
7f8ccbe876
[ci] format
2023-03-31 17:44:00 +00:00
wulinsheng123
d59e511d16
supporting top of await ( #6671 )
...
* add fix
* fix
* revert verison
* fix fn is undefined g
* add e2e test
* fix unit test
* delete redundant code
* add changeset
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-03-31 13:42:03 -04:00
Houston (Bot)
07e8a1bab4
[ci] release ( #6694 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-31 16:32:28 +02:00
Erika
46ecf46628
Remove unnecessary image-related .wasm
files inside build output when possible ( #6701 )
...
* fix(image): Remove unnecessary .wasm files after build
* chore: changeset
2023-03-30 20:57:57 +02:00
Elliott Marquez
4b077318fb
Update lit-ssr dependency ( #6681 )
...
* update lit-ssr dependency
* delete unnecessary lit shim checks
* delete another unused lit shim feature
* fix sass build
* bump lit and polyfill versions to match ssr req
* shim HTMLElement in test
* remove lit global shim workarounds
* re-shim Astro's ce.define
* remove fix window test and shim HTML Element
* Update .changeset/gold-windows-fly.md
Co-authored-by: Augustine Kim <ajk830@gmail.com>
* fix window check test
* implement suggestoins
---------
Co-authored-by: Augustine Kim <ajk830@gmail.com>
2023-03-29 12:43:40 -04:00
Isaac
9e16860f61
Use debug option for debugDir ( #6554 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-03-29 08:18:25 -04:00
Shukur Huseynli
d5bcf89e1f
docs:
change the external React docs page to
https://react.dev ( #6690 )
2023-03-28 16:20:04 -04:00
Matthew Phillips
239b9a2fb8
Add use-immer as a noExternal module ( #6696 )
2023-03-28 15:35:21 -04:00
Houston (Bot)
af108e4b4a
[ci] release ( #6652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-28 13:17:46 -04:00
Ben Holmes
328c671790
fix: specify astro peer dep version ( #6691 )
2023-03-28 11:11:23 -04:00
Kilian Gosewisch
386336441a
Fix image regeneration after changing image service ( #6680 )
2023-03-28 14:59:01 +02:00
bluwy
4ddec1cd8c
[ci] format
2023-03-28 08:47:15 +00:00
Smit Patel
aff53c109c
Expose partytown config options from astro plugin ( #6667 )
2023-03-28 16:44:54 +08:00
bholmesdev
9352e0056c
[ci] format
2023-03-27 22:06:51 +00:00
Ben Holmes
7c439868a3
[Markdoc] New config format with runtime variable support! ( #6653 )
...
* deps: esbuild
* feat: support direct component imports for render!
* deps: add devalue back
* refactor: remove unused components prop
* refactor: load experimental assets config separately
* fix: upate Content type def to support props
* refactor: replace astro stub with inline data
* feat: pass through viteId to getRenderMod
* fix: add back $entry var with defaults convention
* chore: remove unneeded validateRenderProps
* chore: remove uneeded validateComponents
* fix: remove userMarkdocConfig prop
* chore: add helpful error for legacy config
* deps: kleur
* fix: add back `isCapitalized`
* fix: log instead of throw to avoid scary stacktrace
* chore: delete more old logic (nice)
* chore: delete MORE unused utils
* chore: comment on separate assets config
* chore: remove console.log
* chore: general code cleanup
* test: new render config
* docs: new README
* fix: add expect-error on astro:assets
* feat: add defineMarkdocConfig helper
* docs: update example README
* test: add runtime variable
* chore: lint
* chore: changeset
* chore: add component import deletion
* docs: add notes on Vite fork
* fix: astro check
* chore: add `.mts` to markdoc config formats
2023-03-27 18:04:37 -04:00
Houston (Bot)
12d42f47bd
[ci] release ( #6646 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-24 13:17:01 -04:00
bholmesdev
8bd0ca08cd
[ci] format
2023-03-24 12:01:10 +00:00
Ben Holmes
cfcf2e2ffd
[Markdoc] Support automatic image optimization with experimental.assets
( #6630 )
...
* wip: scrappy implementation. It works! 🥳
* chore: add code comments on inline utils
* fix: code cleanup, run on experimental.assets
* feat: support ~/assets alias
* fix: spoof `astro:assets` when outside experimental
* test: image paths in dev and prod
* feat: support any vite alias with ctx.resolve
* fix: avoid trying to process absolute paths
* fix: raise helpful error for invalid vite paths
* refactor: revert URL support on emitAsset
* chore: lint
* refactor: expose emitESMImage from assets base
* wip: why doesn't assets exist
* scary chore: make @astrojs/markdoc truly depend on astro
* fix: import emitESMImage straight from dist
* chore: remove type def from assets package
* chore: screw it, just ts ignore
* deps: rollup types
* refactor: optimize images during parse step
* chore: remove unneeded `.flat()`
* fix: use file-based relative paths
* fix: add back helpful error
* chore: changeset
* deps: move astro back to dev dep
* fix: put emit assets behind flag
* chore: change to markdoc patch
2023-03-24 07:58:56 -04:00
Houston (Bot)
dfbd09b711
[ci] release ( #6634 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-24 13:49:12 +08:00
matthewp
0c8c5fc919
[ci] format
2023-03-23 16:03:49 +00:00
Matthew Phillips
4685f55549
Change how squoosh is loaded in the image integration ( #6548 )
...
* WIP fix image integration in Netlify
* Add a changeset
* Try another way
* Get the chunks folder
* try inlining
* deep sigh
* fix some things
* more
* Remove some stuff
* remove unused imports
* Add changeset
* remove unused --copy-wasm
* Remove unused post:build
2023-03-23 12:01:27 -04:00
Houston (Bot)
66e006028c
[ci] release ( #6612 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-22 20:53:15 +08:00
paulrudy
b37b865400
edit commands for installing @markdoc/markdoc ( #6622 )
...
* edit commands for installing @markdoc/markdoc
* Create twenty-islands-protect.md
---------
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-03-21 20:53:46 -04:00
Ben Holmes
f42f47dc6a
feat: Expose $entry
variable to Markdoc ( #6588 )
...
* wip: dream api
* deps: rollup types
* feat: get entry data in there
* fix: properly show mdoc errors in overlay
* feat: implement with cache
* fix: wait for in-flight entry resolution
* test: entry properties can be rendered
* chore: changeset
* fix: remove rollup type import
* Revert "deps: rollup types"
This reverts commit 484ccb1c81
.
* docs: add README reference
* docs nit: missing space
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* refactor: split config config loading to separate helper
* refactor: choose more readable variable names
* refactor: store awaiting queue in existing cache
* docs: add clear code comments
* nit: add skip module code comment
* refactor: add `idHandledByContentRenderPlugin`
* nit: store chokidar modified events in const
* fix: remove loop from content renderer
* nit: else if -> if
---------
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-03-21 09:20:23 -04:00
bholmesdev
e8b3c886a7
[ci] format
2023-03-21 12:20:02 +00:00
Ben Holmes
86273b5881
[Markdoc] Refactor Renderer internals to use renderComponent()
( #6607 )
...
* wip: new TreeNode setup
* fix: pass children through `render`
* deps: remove stringify-attributes
* chore: changeset
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-21 08:17:20 -04:00
Houston (Bot)
6afb1efea8
[ci] release ( #6541 )
...
* [ci] release
* nit: typo in #6594 changeset
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-03-21 08:03:46 -04:00
Erika
1e7d6af412
feat(all): Migrate to TypeScript 5.0 ( #6579 )
2023-03-20 17:02:07 +01:00
Bjorn Lu
392ba3e4d5
Fix mdx and markdoc integrations return type ( #6552 )
2023-03-16 23:02:37 +08:00
bluwy
b0b5ba84a9
[ci] format
2023-03-16 14:42:36 +00:00
Richard Simpson
2c829fdf65
fix(cloudflare): base strip logic ( #6550 )
2023-03-16 22:39:54 +08:00
Tc001
67d3d1d65a
Replace tabs with double spaces ( #6562 )
2023-03-16 15:46:31 +02:00
Houston (Bot)
43daac7a9b
[ci] release ( #6476 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-13 16:05:43 -04:00
bluwy
875a04db16
[ci] format
2023-03-13 15:00:16 +00:00
Richard Simpson
1c3e8f6c3b
fix: rebase _routes.json for Cloudflare when config.base set ( #6473 )
2023-03-13 22:58:21 +08:00
Yan Thomas
a13e9d7e33
Consistency improvements to several package descriptions ( #6494 )
...
* Add small improvements to package descriptions
* Add changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-13 09:25:47 -05:00
matthewp
e473de6d0f
[ci] format
2023-03-13 14:08:22 +00:00
Matthew Phillips
4ddf348938
Remove false-positive warnings from Cloudflare's build ( #6531 )
2023-03-13 10:05:54 -04:00
Erika
c44aa15534
fix: Enforce the usage of type imports when possible ( #6502 )
2023-03-10 16:19:57 +01:00
Yan Thomas
0de08773f3
Make Tailwind & Turbolinks integration descriptions more consistent ( #6419 )
...
* Fix npm description for Tailwind & Turbolinks
* Change order so all start with Astro
* More descriptive descriptions!
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Add changeset
---------
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-03-09 16:55:49 -06:00
Matthew Phillips
700a555499
Add back support for Astro.clientAddress to Vercel serverless ( #6484 )
2023-03-09 11:27:16 -05:00
Elian ☕️
1343a6469f
Get rid of ‘txt not found’ ( #6486 )
2023-03-09 16:28:21 +01:00
Bjorn Lu
77a046e886
Add default .npmrc for astro add lit
( #6460 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-09 14:42:57 +08:00
Houston (Bot)
af25778a9b
[ci] release ( #6468 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-08 17:39:06 -05:00
Houston (Bot)
401b97ad0e
[ci] release ( #6456 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-08 16:09:20 -05:00
Bjorn Lu
964d55246b
Prevent HTML-escape of raw strings in JSX script/style tags ( #6459 )
...
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2023-03-09 00:29:22 +08:00
Sarah Rainsberger
60c7690b4c
[docs] Fix Markdoc README links ( #6458 )
2023-03-08 09:12:01 -04:00
Houston (Bot)
afaf366fb3
[ci] release ( #6432 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-07 14:49:19 -05:00
Matthew Phillips
1e6559ab70
Fix markdoc version ( #6450 )
2023-03-07 14:38:23 -05:00
bholmesdev
6a092b295b
chore: bump Markdoc to v0.0.1
2023-03-07 14:15:56 -05:00
bholmesdev
05c5ef155f
[ci] format
2023-03-07 19:07:44 +00:00