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
73ec6f6c16
Implement custom client directives ( #7074 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 20:51:27 +08:00
Bjorn Lu
2994bc52d3
Build edge/worker runtime with webworker ssr target ( #7101 )
2023-05-17 15:44:20 +08:00
Houston (Bot)
babe7700a2
[ci] update lockfile ( #7075 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-16 09:32:18 -04:00
Johannes Spohr
2a1fa09b31
Add workerd
and worker
to cloudflare adapter bundling ( #7092 )
2023-05-16 20:00:29 +08:00
Houston (Bot)
dad5e2e513
[ci] update lockfile ( #7054 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-11 14:14:41 -04:00
Craig Jennings
c87d42e766
fix: don't require 'paths' object in tsconfig to alias paths ( #7000 )
2023-05-11 17:08:16 +08:00
Houston (Bot)
18d0632911
[ci] update lockfile ( #7018 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-09 16:29:35 -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
Emanuele Stoppa
e9f0dd9b47
fix(middleware): emit warning if next
is called and nothing is returned ( #7010 )
...
* fix(middleware): emit warning if `next` is called and nothing is returned
* chore: add test case
* chore: changeset
* chore: restore code, ooops!
* chore: change logic
* change namespace
2023-05-05 13:20:33 -04:00
Houston (Bot)
890c8b3ea7
[ci] update lockfile ( #7008 )
...
* [ci] update lockfile
* Fix lint warnings
---------
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-05 11:21:49 -04:00
Bjorn Lu
5182689086
Update template deps to latest ( #7002 )
2023-05-05 19:09:38 +08: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
Houston (Bot)
dfb9e4270a
[ci] update lockfile ( #6962 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-04 10:00:28 -04:00
Arsh
80e3d4d3d0
feature: configuration for css inlining behavior ( #6659 )
...
* feature(inline stylesheets): implement as experimental
* test: rename css-inline -> css-import-as-inline
* test(content collections): add de-duplication of css
* test: add new suite for inlineStylesheets configuration
* fix(inline stylesheets): did not act on propagated styles
* hack(inline stylesheets testing): duplicate fixtures
Content collections reuses build data across multiple fixture.builds, even though a configuration change may have changed it.
Duplicating fixtures avoids usage of the stale cache.
https://cdn.discordapp.com/attachments/1039830843440504872/1097795182340092024/Screenshot_87_colored.png
* refactor(css plugin): reduce nesting
* optimization(css rendering): merge <style> tags
Chrome, but not Safari or Firefox, is slower to match rules when they are split across multiple files or style tags.
https://nolanlawson.com/2022/06/22/style-scoping-versus-shadow-dom-which-is-fastest/
Having the abiility to inline stylesheets opens us up to this optimization.
Ideally, it would extend to propagated styles, but that ended up being a rabbit hole.
* typedocs(inlineStylesheets config): ensure consistency
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore(build internals): update comment
* correct minor mistake in test
* test(inline stylesheets): unique package names for duplicate fixtures
* refactor(css build plugin): maps -> records
* refactor(css build plugin): remove use of spread operator
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03 14:49:06 -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
Matthew Phillips
3326492b94
Implement scopedStyleStrategy ( #6771 )
...
* Implement scopedStyleStrategy
* Add changeset
* Update compiler
* Specify the eswalker version
* Update compiler
* Update .changeset/green-cups-hammer.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* Update .changeset/green-cups-hammer.md
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
* 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>
* Update .changeset/green-cups-hammer.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03 11:16:03 -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
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
Erika
dc062f6695
Upgrade to version 1.0.0 of the language server ( #6953 )
2023-05-01 16:41:21 +02:00
Chris Swithinbank
a98df9374d
Show injected custom 404 route in dev ( #6940 )
...
* Add unit test for injected 404 routes
* Add fixture test for injected 404 routes
* Use any route pattern to find custom 404
* Fix frozen lockfile error
* Use `route` instead of `pattern` to match custom 404
Dynamic catch-all routes can match against `/404/` but will then error because they’re not actually designed to handle a param of `'404'`. Testing `route` instead excludes dynamic routes (because they’ll contain dynamic segments inside square brackets). Not sure if someone might _want_ to render the 404 via a dynamic route, but we already don’t support that, so this doesn’t change anything.
* Fix injected 404 fixture
* Add tests for `src/pages/404.html`
* Add changeset
* Fix lockfile
* And again
2023-05-01 10:37:07 -04: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
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
Han Yeong-woo
f219e1862b
chore: update dependencies related to changesets ( #6868 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-04-28 15:04:03 +08:00
Han Yeong-woo
d28cc97179
chore: cleanup root and scripts dependencies ( #6871 )
2023-04-28 14:32:51 +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
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
Bjorn Lu
7544d9bd41
Cleanup CI logs and run windows on node16 only ( #6838 )
2023-04-19 10:59:09 +02:00
Houston (Bot)
09cd67cb1e
[ci] update lockfile ( #6846 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-04-14 10:15:21 -04: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
Erika
500ee802ac
fix: upgrade tooling deps ( #6839 )
2023-04-13 13:08:54 -04:00
Erika
2511d58d58
feat(mdx): Add support for turning ![]() into <Image> ( #6824 )
2023-04-13 11:54:40 +02:00
Erika
a6bec9c1b7
fix: broken lockfile ( #6834 )
2023-04-13 10:59:32 +02:00
wulinsheng123
a9c22994e4
fix #6420 ( #6544 )
...
* fix #6420
* add test
* add test
* fix an error that parsed path
* fix path error when in Windows environment
* fix a path error
* update comment
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-04-12 14:26:53 -04:00
Bjorn Lu
5f0efe5490
Update to pnpm 8 ( #6823 )
2023-04-12 23:34:54 +08: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
Bjorn Lu
7653cf9e9f
Fix CSS chunking between multiple framework components ( #6582 )
...
* Fix CSS chunking between multiple framework components
* Better CSS dedupe handling
* Add more tests
* Update docs
2023-04-12 08:24:32 -04: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
Bjorn Lu
a91e0156ab
Add more tsconfig alias tests ( #6812 )
2023-04-10 22:40:40 +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
Ben Holmes
7f74326b76
Fix: astro:server:setup
middleware ( #6781 )
...
* Revert "Fix: stop executing `astro:server:setup` twice (#6693 )"
This reverts commit c0b7864a41
.
* fix: delay `astro:server:setup` to `configureServer`
* test: middleware from astro:server:setup
* chore: lock
* chore: changeset
* chore: remove minimal example change
* chore: revert minimal env change
2023-04-07 12:28:55 -04:00
Matthew Phillips
fa84f1a7d2
Support streaming inside of slots ( #6775 )
...
* Rename renderSlot to renderSlotToString for internal sync usage
* Support streaming inside of slots
* Fix lame lint warning
* Update compiler to fix test
* Up the wait
* Use compiler 1.3.1
* It should be exactly 3
2023-04-07 11:04:31 -04: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
Emanuele Stoppa
aad853a0c1
chore: use workspace
where possible ( #6748 )
...
Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-04-05 17:52:49 +02: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
Erika
4cc1bf61b8
fix(node): Fix malformed URLs crashing the server in certain cases ( #6746 )
2023-04-04 15:48:28 +02: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
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
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
Erika
f0b732d326
fix(images): Improve error handling around the new assets feature ( #6649 )
...
* fix(images): Improve error handling around the new assets feature
* fix: add missing error message
* fix(images): Fix schema preprocessing logic returning undefined when the file doesn't exist
* test: add tests
* chore: lockfile
* chore: changeset
* Apply suggestions from code review
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* test: remove console.logs
* fix(images): properly join with path
* fix: attempt a fix
* test: remove console.log
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* fix: add undefined test for global for SSR
---------
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-29 14:58:42 +02: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
wulinsheng123
4bf87c64ff
Improve error message for endpoint getStaticPaths with undefined value ( #6353 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-03-28 23:13:46 +08: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
Erika
fc0ed9c53c
Fix using optimized images with base
( #6643 )
...
* fix(images): Fix images having the wrong path when using `base`
* test(images): Add test for using images with base
* test: add more tests
* chore: changeset
* fix: paths
* refactor: feedback
2023-03-27 15:50:02 +02: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
Matthew Phillips
7daef9a299
Avoid implicit head injection when there is a head element in the tree ( #6638 )
...
* Avoid implicit head injection when there is a head element in the tree
* more
* only do it once
* Update the tests
* Update more tests
* update compiler version
* See if scope stuff can be removed now
* Move up where head injection occurs
* Remove result scoping
2023-03-24 11:17:25 -04: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
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
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
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
Happydev
fa132e35c2
Fix error in empty markdown files with content ( #6572 )
...
* test: add test fixture
* test: add test case
* 🤏 fix
* chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-03-17 11:38:10 -05:00
Bjorn Lu
6c465e958e
Fix prerendered 404 page handling in SSR ( #6558 )
2023-03-16 23:03:17 +08:00
Erika
90e5f87d03
Vendor image-size ( #6559 )
...
* feat(assets): Vendor image-size
* fix(assets): Also vendor queue, the CJS virus runs deep
* fix: remove unneeded queue
* chore: lockfile
* fix: build
* fix: build part 2
* chore: changeset
2023-03-16 15:10:46 +01: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
Bjorn Lu
04e624d062
Treeshake exported client components that are not imported ( #6527 )
...
* Treeshake exported client components that are not imported
* Fix plugin name
* Fix mdx test
2023-03-13 13:16:56 -04: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
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
5ce750b015
Set performance package markdoc version
2023-03-07 14:42:00 -05:00
Matthew Phillips
1e6559ab70
Fix markdoc version ( #6450 )
2023-03-07 14:38:23 -05:00
bholmesdev
201420439f
chore: bump markdoc package dependents
2023-03-07 14:21:20 -05:00
Ben Holmes
fec583909a
@astrojs/markdoc ( #6209 )
...
* chore: integration setup
* feat: get markdoc contents
* wip: expose Markdoc from integration
* feat: basic Astro renderer in with-markdoc
* fix: component render bug
* deps: stringify-attributes
* fix: render attributes to html
* wip: play with separate markdoc config
* wip: get dream API for file loader working
* chore: unit tests
* deps: graymatter
* feat: addContentEntryType integration hook
* deps: move to @astrojs/markdoc
* feat: move Renderer to markdoc, get Content component!
* wip: scaffold content types
* deps: mdx
* wip: move mdx to collection type API
* refactor: move plain md to content entry type
* refactor: pass file contents
* oops, forgot to commit untracked
* fix: markdoc.config loading
* refactor: remove fallback loader
* chore: remove unused dream file
* deps: devalue, test fixture
* test: entry and collections parse
* play: make sure md also works
* deps: add shiki for Code comp error
* fix: remove "components" from tsconfig
* chore: ignore `.astro` type error
* fix: avoid import if no config present (prod build error)
* fix: stop bundling markdoc for isTag
* test: prod builds
* test: content component dev and build
* chore: Markdoc working! log
* fix: ContentEntryType import
* chore: remove content-types. Too early!
* chore: remove unused options object
* play: add docs example with Aside and Since ported
* chore: with-markdoc strictNullChecks
* chore: unused file
* feat: allow Render type injection
* feat: content prop types for markdoc!
* chore: clean up Markdoc starter to essentials
* chore: unused style tag
* chore: remove unused deps
* fix: glob for single content extension
* chore: remove unused fixture dep
* chore: remove markdoc.config loader
* docs: update example README
* docs: @astrojs/markdoc README intro
* fix: line endings in test
* docs: add usage and examples to Markdoc README
* docs: change with-markdoc title
* docs: README edits
* refactor: clean up astroNode
* nit: reorder type import
* docs: add note on Aside src
* chore: changeset
* nit: 0.0.0 to avoid version bump
* fix: lock
* refactor: remove unneeded async
* fix: import types from @astrojs/markdoc
* fix: type inferencing in preview
* fix: remove unneeded html-escaper
* deps: remove html-escaper
* feat: support `.md` overrides for content collections
* chore: mdoc -> md
* feat: generate `.md` types override
* Revert "feat: support `.md` overrides for content collections"
This reverts commit c06f83ef85
.
* Squashed commit of `markdoc-poc`
commit bd0dd9d71938da22f596ddd1662d9b91707f80c7
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 15 09:43:04 2023 -0500
Revert "feat: support `.md` overrides for content collections"
This reverts commit c06f83ef85
.
commit 5b9a1f33f4d0ffd4a63a81a86652fee032b75d76
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 13:48:56 2023 -0500
feat: generate `.md` types override
commit e464ae894ed69cf492de1d3e8018d9a17c00d7a3
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:56:11 2023 -0500
chore: mdoc -> md
commit b74fd6a7d6b973b2bfd9b2ab9567801ff4d7fec1
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:56:01 2023 -0500
feat: support `.md` overrides for content collections
commit bdcc18a7c03e3524927ba7c1b18ad2fd80a2e994
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:30:48 2023 -0500
deps: remove html-escaper
commit f44b57f0fa2ac923a3f2a46471fda710e92d5824
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:30:42 2023 -0500
fix: remove unneeded html-escaper
commit fb7919498aca6beded444ed5922f3598d244d30c
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:08:04 2023 -0500
fix: type inferencing in preview
commit 0c05034b321a82f2f054b527538d57f45f096822
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 11:32:19 2023 -0500
fix: import types from @astrojs/markdoc
commit 57e741a6306b801ac4ce47f20f7664518359611d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 11:28:33 2023 -0500
refactor: remove unneeded async
commit b19d85451e60da281bc32a2a180452987a049479
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 10:26:20 2023 -0500
fix: lock
commit b1083a14f9fefe5e7a9f2a8c7c31626a7430c851
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 10:19:50 2023 -0500
nit: 0.0.0 to avoid version bump
commit 71891ebe9dd54b495e965bf064ee78aaca9dfede
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:33:27 2023 -0500
chore: changeset
commit 444752a5e27c4f5bda54ac024eca9a7ab1c4563f
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:30:10 2023 -0500
docs: add note on Aside src
commit 619d4b3fdf02cc34ea3f8f9a0b4d93db273bb0a1
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:25:56 2023 -0500
nit: reorder type import
commit e914da05706382b17e1b8f3404fc2852002a5dc7
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:25:38 2023 -0500
refactor: clean up astroNode
commit 2dfc226f56dc6a9e3e3ace72d4c3889a1fde4e6d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:08:56 2023 -0500
docs: README edits
commit 3c7b85c7d9e3c75d551baf33aba9a646d0d61cba
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:07:29 2023 -0500
docs: change with-markdoc title
commit 29cdea9a0be439b631389cbc906751185489cbe9
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:29:10 2023 -0500
docs: add usage and examples to Markdoc README
commit e397a80179e9bd934ef8875155d7491b1d4e077a
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:18:54 2023 -0500
fix: line endings in test
commit f9ebf59982fa7dc1202368da344897f54de7f259
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:09:15 2023 -0500
docs: @astrojs/markdoc README intro
commit 7800e9c9dac946f89e139b200a0083b53942118d
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:08:07 2023 -0500
docs: update example README
commit f0b900a6fa7f0775dfab7600c4fb04c9b64e7439
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:04:34 2023 -0500
chore: remove markdoc.config loader
commit 3f040e44d0c639dc51976abe75f46c57f0be60fc
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 17:58:52 2023 -0500
chore: remove unused fixture dep
commit b2ea6c26df6acf1df8f06d2feb9c91da8c8eafae
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 17:58:25 2023 -0500
fix: glob for single content extension
commit f4e171c05c421f8696ebc406c9d4d28967f80690
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:10:39 2023 -0500
chore: remove unused deps
commit d9095d0284b0fc22d5da367771bc5286eb8f1926
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:10:31 2023 -0500
chore: unused style tag
commit a5435f13575577bf6a954c68eef9e883959568dc
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:08:52 2023 -0500
chore: clean up Markdoc starter to essentials
commit 815e2f2bad5617ab077d278d7c751f34c22dd0d9
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:13:02 2023 -0500
feat: content prop types for markdoc!
commit 8bcd23c4e70b4900b16ebf5a30dad6ec998f4092
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:05:40 2023 -0500
feat: allow Render type injection
commit cdb7e9e4878888c0883d4082d2415f4d85050389
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:04:37 2023 -0500
chore: unused file
commit 0df33ea37d4ca9bd933be54d7f8b455fce174679
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:04:31 2023 -0500
chore: with-markdoc strictNullChecks
commit 377c6d766bd51469f09e1f946a1c2b77affe6620
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 17:39:35 2023 -0500
play: add docs example with Aside and Since ported
commit f9f811257167da7a5e05a7de3a12b58e7b3568b1
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:22:47 2023 -0500
chore: remove unused options object
commit c9a66bfeb0ce55ef0a1c0c6ed2da746d5250c795
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:18:27 2023 -0500
chore: remove content-types. Too early!
commit 67f49e86a980c5d858ad0e384bdc67fad5e096e6
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:18:20 2023 -0500
fix: ContentEntryType import
commit 9b93d8189213a12346520fa8a71eae824386ad3e
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:10:06 2023 -0500
chore: Markdoc working! log
commit 90f77645ef3985fbba1badeb4413759626290b1a
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:09:58 2023 -0500
test: content component dev and build
commit 14559f6a40af63106cebeba210e73392d5d1c37d
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:01:10 2023 -0500
test: prod builds
commit a0dcbff73cf8b3cf9b55434a8fb2b0b683903c5f
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:01:04 2023 -0500
fix: stop bundling markdoc for isTag
commit cb1904876f074c50c206131e9588878230bbab47
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:53 2023 -0500
fix: avoid import if no config present (prod build error)
commit bda8295e7920638c013875ab9fe31ce87743c95f
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:33 2023 -0500
chore: ignore `.astro` type error
commit 28a6d7993a227c68aeca747661254ff68883244a
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:12 2023 -0500
fix: remove "components" from tsconfig
commit 0297bb749599aa8063e685a7ece738afe3ae77cc
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:01 2023 -0500
deps: add shiki for Code comp error
commit e4f141e558b3d76b761bec69e694eaa40cdf250d
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 08:45:37 2023 -0500
play: make sure md also works
commit dfdb35f0888ee83457ee825172f7d8485b7d2a43
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:25:18 2023 -0500
test: entry and collections parse
commit eaf4994bf309955209f406d7db0863775fdf4fe0
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:25:07 2023 -0500
deps: devalue, test fixture
commit 3f71932c04f8064cfe74b7f4b02409c681925e4a
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:24:47 2023 -0500
chore: remove unused dream file
commit b182686f88878cdf003efba798edb69372872b21
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:29:32 2023 -0500
refactor: remove fallback loader
commit 0540d701ccb33db7a82be861c36dcafec0dbbb81
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:26:21 2023 -0500
fix: markdoc.config loading
commit 575dadf70e7b5aa263e30c8b496a1cceebd31bb4
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:16:18 2023 -0500
oops, forgot to commit untracked
commit 9746a97bc2dfcf63bfd685f541ffbd229ea134ca
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:16:02 2023 -0500
refactor: pass file contents
commit 534a658325cbddbb153bea1c1338d13011eb0e4f
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:13:38 2023 -0500
refactor: move plain md to content entry type
commit 24df79b1475c12ccefaadb2392e9d5911c491872
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 15:51:44 2023 -0500
wip: move mdx to collection type API
commit cc44e4fa3453353041fdbe9424d96040f93f28a7
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 15:50:52 2023 -0500
deps: mdx
commit c30c1b3dcf6da3a075c1f07260ae893ef93e07e2
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 10:10:39 2023 -0500
wip: scaffold content types
commit 2487aedf9deb74a5725ba8393766b68f60b74af8
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 09:53:35 2023 -0500
feat: move Renderer to markdoc, get Content component!
commit 44faff911b8de6f6da45f195dad0a56a426b076e
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 09:53:06 2023 -0500
deps: move to @astrojs/markdoc
commit bef26906f3f2f1104b88332778ee219cf062fe88
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 16:01:34 2023 -0500
feat: addContentEntryType integration hook
commit 508568f5117a56fc4ef14db9d0482cdfcfe5007d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 16:00:42 2023 -0500
deps: graymatter
commit cb706020391b4b61f3854b3e9a9d9190a94785c9
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 14:00:27 2023 -0500
chore: unit tests
commit 545246d15362b8f981f8c315d3b7d0341626eeb8
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 14:00:23 2023 -0500
wip: get dream API for file loader working
commit 97664e0f862f7f6e0c9ce8478b3bed58432f6426
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 18:09:23 2023 -0500
wip: play with separate markdoc config
commit c5d8a3336cc9f5dd7b4115b7f86fdb86474ca462
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 17:04:22 2023 -0500
fix: render attributes to html
commit 82e30a0083b20c85307726027ee7e74df7378632
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 17:04:14 2023 -0500
deps: stringify-attributes
commit b72ba6167db88d5042eee51d5912d4270417bca5
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:33:27 2023 -0500
fix: component render bug
commit 59f1e5c6f89d2c7457a0b0e0acb838bf945d39bf
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:11:15 2023 -0500
feat: basic Astro renderer in with-markdoc
commit de15a7213d9afbc94dd0e50f713c9a02dc8e90e5
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:11:01 2023 -0500
wip: expose Markdoc from integration
commit 83bfe4441b652a7eb880486785dc2c5eda08e3b3
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 11:21:17 2023 -0500
feat: get markdoc contents
commit 6f500689a00b8f8c2151254930fda24e0b3e4207
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 11:13:57 2023 -0500
chore: integration setup
* Squashed commit of `markdoc-poc`
commit bd0dd9d71938da22f596ddd1662d9b91707f80c7
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 15 09:43:04 2023 -0500
Revert "feat: support `.md` overrides for content collections"
This reverts commit c06f83ef85
.
commit 5b9a1f33f4d0ffd4a63a81a86652fee032b75d76
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 13:48:56 2023 -0500
feat: generate `.md` types override
commit e464ae894ed69cf492de1d3e8018d9a17c00d7a3
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:56:11 2023 -0500
chore: mdoc -> md
commit b74fd6a7d6b973b2bfd9b2ab9567801ff4d7fec1
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:56:01 2023 -0500
feat: support `.md` overrides for content collections
commit bdcc18a7c03e3524927ba7c1b18ad2fd80a2e994
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:30:48 2023 -0500
deps: remove html-escaper
commit f44b57f0fa2ac923a3f2a46471fda710e92d5824
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:30:42 2023 -0500
fix: remove unneeded html-escaper
commit fb7919498aca6beded444ed5922f3598d244d30c
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 12:08:04 2023 -0500
fix: type inferencing in preview
commit 0c05034b321a82f2f054b527538d57f45f096822
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 11:32:19 2023 -0500
fix: import types from @astrojs/markdoc
commit 57e741a6306b801ac4ce47f20f7664518359611d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 11:28:33 2023 -0500
refactor: remove unneeded async
commit b19d85451e60da281bc32a2a180452987a049479
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 10:26:20 2023 -0500
fix: lock
commit b1083a14f9fefe5e7a9f2a8c7c31626a7430c851
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 10:19:50 2023 -0500
nit: 0.0.0 to avoid version bump
commit 71891ebe9dd54b495e965bf064ee78aaca9dfede
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:33:27 2023 -0500
chore: changeset
commit 444752a5e27c4f5bda54ac024eca9a7ab1c4563f
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:30:10 2023 -0500
docs: add note on Aside src
commit 619d4b3fdf02cc34ea3f8f9a0b4d93db273bb0a1
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:25:56 2023 -0500
nit: reorder type import
commit e914da05706382b17e1b8f3404fc2852002a5dc7
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:25:38 2023 -0500
refactor: clean up astroNode
commit 2dfc226f56dc6a9e3e3ace72d4c3889a1fde4e6d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:08:56 2023 -0500
docs: README edits
commit 3c7b85c7d9e3c75d551baf33aba9a646d0d61cba
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 14 09:07:29 2023 -0500
docs: change with-markdoc title
commit 29cdea9a0be439b631389cbc906751185489cbe9
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:29:10 2023 -0500
docs: add usage and examples to Markdoc README
commit e397a80179e9bd934ef8875155d7491b1d4e077a
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:18:54 2023 -0500
fix: line endings in test
commit f9ebf59982fa7dc1202368da344897f54de7f259
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:09:15 2023 -0500
docs: @astrojs/markdoc README intro
commit 7800e9c9dac946f89e139b200a0083b53942118d
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:08:07 2023 -0500
docs: update example README
commit f0b900a6fa7f0775dfab7600c4fb04c9b64e7439
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 18:04:34 2023 -0500
chore: remove markdoc.config loader
commit 3f040e44d0c639dc51976abe75f46c57f0be60fc
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 17:58:52 2023 -0500
chore: remove unused fixture dep
commit b2ea6c26df6acf1df8f06d2feb9c91da8c8eafae
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 17:58:25 2023 -0500
fix: glob for single content extension
commit f4e171c05c421f8696ebc406c9d4d28967f80690
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:10:39 2023 -0500
chore: remove unused deps
commit d9095d0284b0fc22d5da367771bc5286eb8f1926
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:10:31 2023 -0500
chore: unused style tag
commit a5435f13575577bf6a954c68eef9e883959568dc
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 15:08:52 2023 -0500
chore: clean up Markdoc starter to essentials
commit 815e2f2bad5617ab077d278d7c751f34c22dd0d9
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:13:02 2023 -0500
feat: content prop types for markdoc!
commit 8bcd23c4e70b4900b16ebf5a30dad6ec998f4092
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:05:40 2023 -0500
feat: allow Render type injection
commit cdb7e9e4878888c0883d4082d2415f4d85050389
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:04:37 2023 -0500
chore: unused file
commit 0df33ea37d4ca9bd933be54d7f8b455fce174679
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 13 14:04:31 2023 -0500
chore: with-markdoc strictNullChecks
commit 377c6d766bd51469f09e1f946a1c2b77affe6620
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 17:39:35 2023 -0500
play: add docs example with Aside and Since ported
commit f9f811257167da7a5e05a7de3a12b58e7b3568b1
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:22:47 2023 -0500
chore: remove unused options object
commit c9a66bfeb0ce55ef0a1c0c6ed2da746d5250c795
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:18:27 2023 -0500
chore: remove content-types. Too early!
commit 67f49e86a980c5d858ad0e384bdc67fad5e096e6
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:18:20 2023 -0500
fix: ContentEntryType import
commit 9b93d8189213a12346520fa8a71eae824386ad3e
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:10:06 2023 -0500
chore: Markdoc working! log
commit 90f77645ef3985fbba1badeb4413759626290b1a
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:09:58 2023 -0500
test: content component dev and build
commit 14559f6a40af63106cebeba210e73392d5d1c37d
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:01:10 2023 -0500
test: prod builds
commit a0dcbff73cf8b3cf9b55434a8fb2b0b683903c5f
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:01:04 2023 -0500
fix: stop bundling markdoc for isTag
commit cb1904876f074c50c206131e9588878230bbab47
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:53 2023 -0500
fix: avoid import if no config present (prod build error)
commit bda8295e7920638c013875ab9fe31ce87743c95f
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:33 2023 -0500
chore: ignore `.astro` type error
commit 28a6d7993a227c68aeca747661254ff68883244a
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:12 2023 -0500
fix: remove "components" from tsconfig
commit 0297bb749599aa8063e685a7ece738afe3ae77cc
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 09:00:01 2023 -0500
deps: add shiki for Code comp error
commit e4f141e558b3d76b761bec69e694eaa40cdf250d
Author: bholmesdev <hey@bholmes.dev>
Date: Fri Feb 10 08:45:37 2023 -0500
play: make sure md also works
commit dfdb35f0888ee83457ee825172f7d8485b7d2a43
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:25:18 2023 -0500
test: entry and collections parse
commit eaf4994bf309955209f406d7db0863775fdf4fe0
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:25:07 2023 -0500
deps: devalue, test fixture
commit 3f71932c04f8064cfe74b7f4b02409c681925e4a
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 13:24:47 2023 -0500
chore: remove unused dream file
commit b182686f88878cdf003efba798edb69372872b21
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:29:32 2023 -0500
refactor: remove fallback loader
commit 0540d701ccb33db7a82be861c36dcafec0dbbb81
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:26:21 2023 -0500
fix: markdoc.config loading
commit 575dadf70e7b5aa263e30c8b496a1cceebd31bb4
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:16:18 2023 -0500
oops, forgot to commit untracked
commit 9746a97bc2dfcf63bfd685f541ffbd229ea134ca
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:16:02 2023 -0500
refactor: pass file contents
commit 534a658325cbddbb153bea1c1338d13011eb0e4f
Author: bholmesdev <hey@bholmes.dev>
Date: Thu Feb 9 12:13:38 2023 -0500
refactor: move plain md to content entry type
commit 24df79b1475c12ccefaadb2392e9d5911c491872
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 15:51:44 2023 -0500
wip: move mdx to collection type API
commit cc44e4fa3453353041fdbe9424d96040f93f28a7
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 15:50:52 2023 -0500
deps: mdx
commit c30c1b3dcf6da3a075c1f07260ae893ef93e07e2
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 10:10:39 2023 -0500
wip: scaffold content types
commit 2487aedf9deb74a5725ba8393766b68f60b74af8
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 09:53:35 2023 -0500
feat: move Renderer to markdoc, get Content component!
commit 44faff911b8de6f6da45f195dad0a56a426b076e
Author: bholmesdev <hey@bholmes.dev>
Date: Wed Feb 8 09:53:06 2023 -0500
deps: move to @astrojs/markdoc
commit bef26906f3f2f1104b88332778ee219cf062fe88
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 16:01:34 2023 -0500
feat: addContentEntryType integration hook
commit 508568f5117a56fc4ef14db9d0482cdfcfe5007d
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 16:00:42 2023 -0500
deps: graymatter
commit cb706020391b4b61f3854b3e9a9d9190a94785c9
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 14:00:27 2023 -0500
chore: unit tests
commit 545246d15362b8f981f8c315d3b7d0341626eeb8
Author: bholmesdev <hey@bholmes.dev>
Date: Tue Feb 7 14:00:23 2023 -0500
wip: get dream API for file loader working
commit 97664e0f862f7f6e0c9ce8478b3bed58432f6426
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 18:09:23 2023 -0500
wip: play with separate markdoc config
commit c5d8a3336cc9f5dd7b4115b7f86fdb86474ca462
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 17:04:22 2023 -0500
fix: render attributes to html
commit 82e30a0083b20c85307726027ee7e74df7378632
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 17:04:14 2023 -0500
deps: stringify-attributes
commit b72ba6167db88d5042eee51d5912d4270417bca5
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:33:27 2023 -0500
fix: component render bug
commit 59f1e5c6f89d2c7457a0b0e0acb838bf945d39bf
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:11:15 2023 -0500
feat: basic Astro renderer in with-markdoc
commit de15a7213d9afbc94dd0e50f713c9a02dc8e90e5
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 16:11:01 2023 -0500
wip: expose Markdoc from integration
commit 83bfe4441b652a7eb880486785dc2c5eda08e3b3
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 11:21:17 2023 -0500
feat: get markdoc contents
commit 6f500689a00b8f8c2151254930fda24e0b3e4207
Author: bholmesdev <hey@bholmes.dev>
Date: Mon Feb 6 11:13:57 2023 -0500
chore: integration setup
* feat: add `--perf` flag to skip md plugins
* wip: performance pkg with md fixture
* refactor: move rendering to util
* refactor: generate posts instead of commiting
* deps: npm-run-all
* chore: mdoc and mdx fixtures
* chore: remove generated files from git
* chore: lockfile
* chore: remove .astro types from remote
* refactor: --perf -> --internal-ci-perf
* chore: log ext and directory on write
* refactor: --perf -> env var
* feat: add perf benchmark check to mdx
* refactor: isPerfBenchmark
* chore: refine generated ignore
* feat: test simple and with-components cases
* chore: remove old --internal-ci reference
* refactor: ASTRO_CI_PERFORMANCE_RUN -> ASTRO_PERFORMANCE_BENCHMARK
* chore: remove accidental file
* feat: add react-component render benchmark
* chore: add `--format` flag to benchmark
* refactor: move markdoc transform to build time
* docs: only used in content collections
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: use Markdoc terms for transform
* refactor: remove Markdoc export
* refactor: remove advanced component API
* test: update fixture to match new config
* chore: with-markdoc filetree
* docs: add "exclusively" to README
* docs: query for -> query your collection
* docs: update config to new Markdoc options
* docs: astro-ui-frameworks -> astro-components
* edit: add client component instructions
* nit: add "today" to imply future support
* docs: add separate HTML and component examples
* fix: inconsistent tabs v spaces
* fix: indentation
* deps: zod
* chore: check components are capitalized names
* chore: raise error if no matching component found
* chore: hand `mjs` highlighting in error overlay
* chore: validate tags and nodes
* refactor: use MarkdocError on render errors
* fix: handle possible cache miss
* chore: use error hint
* test: update Markdoc node config test
* chore: clarify Markdoc config
* docs: reshuffle note
* chore: update to `nodes` rec
* docs: clarify Markdoc attributes
* docs: add editor integration
* chore: update example coding challenge
* chore: update DocsContent comments
* fix: cant find zod for some reason
* fix: potentially unreliable cache
* chore: remove revealSecret from ex
* wip: forward slash??
* fix: forward slash.
* chore: lint
* chore: ignore statements
* chore: clarify semi-private hooks
* docs: with-mdx -> with-markdoc
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: don't capitalize cc
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: :::
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* nit: remove IFFE
* chore: remove accidental changelog
* nit: attempt pathToFileURL
* nit: tested if
* fix: smartypants should be avoided in benchmark!
* nit: remove `any`
* nit: extract component zod obj
* fix: move validateComponents to render comp
* nit: remove unused return
* nit: move shiki highlighter consts to outer scope
* nit: remove `any` from mdx
* refactor: add type defs for private integration hooks
* fix: type error in mdx defaults
* fix: broke extendMarkdownConfig, oops!
* Revert "nit: attempt pathToFileURL"
This reverts commit 45fac9922d
.
* fix: only validate when components is defined
* fix: remove types from git
* fix: migrate mdoc perf benchmark to new config
* chore: delete more sneaky types
* docs: add usage to changeset
* docs: update config example in README
* docs: add manual rendering instructions
* Update examples/with-markdoc/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: reorder configuration options
* docs: "see the next section"
* chore: add numPosts as a benchmark flag
* chore: bump to minor changesets for MDX
* chore: update TODO docs links
* docs: update component key naming and node instr
* docs: redraft markdoc runtime config intro
* Squashed commit of the following:
commit fbab73c96e
Author: matthewp <matthewp@users.noreply.github.com>
Date: Tue Mar 7 16:38:11 2023 +0000
[ci] format
commit a206106098
Author: Matthew Phillips <matthew@skypack.dev>
Date: Tue Mar 7 11:35:54 2023 -0500
Expose the ssr manifest (#6435 )
* Expose the ssr manifest
* Add changeset
* Add types for virtual mod
commit 2751584387
Author: Princesseuh <Princesseuh@users.noreply.github.com>
Date: Tue Mar 7 15:14:15 2023 +0000
[ci] format
commit 694918a56b
Author: Erika <3019731+Princesseuh@users.noreply.github.com>
Date: Tue Mar 7 16:12:21 2023 +0100
Implement RFC "A core story for images" (#6344 )
* feat(assets): Add Vite plugin
* feat(images): Set up Image component
* fix(types): Attempt to fix type generation
* Revert "fix(types): Attempt to fix type generation"
This reverts commit 063aa276e2
.
* fix(image): Fix image types causing build to fail
* feat(image): Implement client side part
* feat(services): Allow arbitrary transforms parameters
* fix(image): Fix paths and types
* config(types): Update config types to provide completions for available services
* feat(image): Add serving in dev
* feat(image): Improve type error messages
* refactor(image): Move sharp's parseParams to baseService
* refactor(image): Skip work in dev for remote servies
* feat(image): Add support for remote images
* feat(image): Add squoosh service
* chore: update export map
* refactor(image): Abstract attributes handling by services
* config(vercel): Remove test image service
* feat(image): Support for relative images in Markdown (WIP)
* feat(images): Add support for relative images in Markdown
* feat(image): Update with RFC feedback
* fix(image): Fix alt error on getImage
* feat(image): Add support for assets validation through content collections
* feat(image): Remove validateTransform
* feat(image): Move to assets folder
* fix(image): Fix package exports
* feat(image): Add static imports references to virtual moduel
* fix(image): Fix images from content collections not working when embedded
* chore: lockfile
* fix(markdown): Fix type
* fix(images): Flag enhanced images behing an experimental flag
* config(example): Update images example conifg
* fix(image): Fix types
* fix(image): Fix asset type for strict, allow arbritary input and output formats
* chore: fix example check
* feat(image): Emit assets for ESM imported images
* Add initial core image tests (#6381 )
* feat(images): Make frontmatter extraction more generic than images for future
* feat(image): Add support for building
* fix(image): Fix types
* fix(images): Fix compatibility with image integration
* feat(images): Cuter generation stats
* fix(images): Globals are unsafe, it turns out
* fix(images): Only generate images if flag is enabled
* fix(images): Only create `addStaticImage` in build
* feat(images): Add SSR endpoint
* fix(images): Only inject route in SSR
* Add tests for SSR
* Remove console.log
* Updated lockfile
* rename to satisfy the link gods
* skip build tests for now
* fix(images): Fix WASM files not being copied in dev
* feat(images): Add quality presets
* fix build tests running
* Remove console.log
* Add tests for getImage
* Test local services
* Test the content collections API
* Add tests for quality
* Skipping content collections test
* feat(image): Add support for `~/assets` alias
* test(image): Add tests for aliases in dev
* Fix windows + content collections
* test(image): Add tests for aliased images and images in Markdown
* Fix markdown images being built
* Should be posix join
* Use the optimized image
* fix test
* Fixes windows smoke
* fix(image): Nits
* feat(images): Add automatic update for `env.d.ts` when experimental images are enabled
* fix(images): Revert env.d.ts change if the user opted-out of the experimental image support
* chore: remove bad image example project
* feat(image): Rename `experimental.images` to `experimental.assets`
* fix(images): Remove unused code in MDX integration
* chore: Remove unrelated change
* fix(images): Remove export from astro/components
* Fix, esm import on Win
* test(images): Add test for format
* fix(images): Add `client-image.d.ts` to export map
* chore: changeset
* fix(images): Adjust with feedback, no more automatic refine, asset() -> image()
* fix(images): Fix types
* fix(images): Remove unnecessary spread
* fix(images): Better types for parseUrl and transform
* fix(images): Fix types
* fix(images): Adjust from feedback
* fix(images): Pass width and height through getHTMLAttributes even if they're not added by the uesr
* fix(images): Recusirsively extract frontmatter assets
* fix(images): Use a reduce instead
* feat(images): Add support for data: URIs
* chore: changeset
* docs(images): Misc docs fixes
* Update .changeset/gold-rocks-cry.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update .changeset/gold-rocks-cry.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/types.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/types.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
commit 377530a810
Author: ematipico <ematipico@users.noreply.github.com>
Date: Tue Mar 7 13:43:21 2023 +0000
[ci] format
commit fe88f89512
Author: Emanuele Stoppa <my.burning@gmail.com>
Date: Tue Mar 7 13:41:24 2023 +0000
chore: use directive `@ts-expect-error` instead of `@ts-ignore` (#6429 )
commit e1858e6334
Author: ematipico <ematipico@users.noreply.github.com>
Date: Tue Mar 7 06:57:52 2023 +0000
[ci] format
commit 75921b3cd9
Author: Emanuele Stoppa <my.burning@gmail.com>
Date: Tue Mar 7 06:55:41 2023 +0000
feat(cli): add `--watch` to `astro check` command (#6356 )
* feat(cli): add `--watch` to `astro check` command
* chore: refactor in a leaner way, logic not changed
* chore: lint
* chore: revert changes in sync command
* chore: tweak server settings
* test: add one test case
* chore: increase timeout
* test: predictable testing
* chore: add changeset
* chore: code suggestions
* code suggestions
* chore: use directly `chokidar`
* chore: tweak code
* fix: open documents first
* chore: disable test
* chore: code suggestions
* chore: code suggestions
* Apply suggestions from code review
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* code suggestions
* chore: rebase
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
commit 1291afc09d
Author: Bjorn Lu <bjornlu.dev@gmail.com>
Date: Tue Mar 7 14:50:34 2023 +0800
Fix changeset run (#6442 )
commit 00a0af7ed4
Author: Bjorn Lu <bjornlu.dev@gmail.com>
Date: Tue Mar 7 10:52:47 2023 +0800
Move benchmark package and update changeset config (#6433 )
commit af05a4fa46
Author: Nate Moore <natemoo-re@users.noreply.github.com>
Date: Mon Mar 6 14:06:33 2023 -0600
Update README.md (#6437 )
* Update README.md
* Update README.md
commit 8ebf4b7481
Author: Nate Moore <natemoo-re@users.noreply.github.com>
Date: Mon Mar 6 14:03:33 2023 -0600
chore: update branding assets (#6436 )
commit afbbc4d5bf
Author: Erika <3019731+Princesseuh@users.noreply.github.com>
Date: Mon Mar 6 19:57:16 2023 +0100
Update compilation target for Node 16 (#6213 )
* config(esbuild): Update esbuild target to node16
* config(package): Update root package.json node engine
* config(tsconfig): Update all the tsconfigs module and targets
* chore: changeset
* chore: remove unneeded file
commit 18acae3edc
Author: Sarah Rainsberger <sarah@rainsberger.ca>
Date: Mon Mar 6 14:36:40 2023 -0400
[error docs] update link for client-side scripts (#6423 )
commit 8b49d1781d
Author: ematipico <ematipico@users.noreply.github.com>
Date: Mon Mar 6 17:03:18 2023 +0000
[ci] format
commit a4a74ab70c
Author: Emanuele Stoppa <my.burning@gmail.com>
Date: Mon Mar 6 16:58:56 2023 +0000
feat(cli): add help flags to various commands (#6394 )
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
commit b087b83fe2
Author: Dennis Morello <dennismorello@gmail.com>
Date: Mon Mar 6 17:38:42 2023 +0100
Add getStaticPaths type helpers to infer params and props (#6150 )
* feat(astro): add InferGetStaticParamsType and InferGetStaticPropsType type helpers
* chore(astro): added changeset
commit 19fe4cb629
Author: Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com>
Date: Mon Mar 6 08:30:38 2023 -0800
[ci] release (#6414 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Revert "Squashed commit of the following:"
This reverts commit fbe129bf95
.
* feat: add mdx backwards compat to make nonbreaking
* chore: add comment on error code
* Revert "chore: bump to minor changesets for MDX"
This reverts commit 3e997837bb
.
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-07 14:05:19 -05:00
Matthew Phillips
a206106098
Expose the ssr manifest ( #6435 )
...
* Expose the ssr manifest
* Add changeset
* Add types for virtual mod
2023-03-07 11:35:54 -05:00
Erika
694918a56b
Implement RFC "A core story for images" ( #6344 )
...
* feat(assets): Add Vite plugin
* feat(images): Set up Image component
* fix(types): Attempt to fix type generation
* Revert "fix(types): Attempt to fix type generation"
This reverts commit 063aa276e2
.
* fix(image): Fix image types causing build to fail
* feat(image): Implement client side part
* feat(services): Allow arbitrary transforms parameters
* fix(image): Fix paths and types
* config(types): Update config types to provide completions for available services
* feat(image): Add serving in dev
* feat(image): Improve type error messages
* refactor(image): Move sharp's parseParams to baseService
* refactor(image): Skip work in dev for remote servies
* feat(image): Add support for remote images
* feat(image): Add squoosh service
* chore: update export map
* refactor(image): Abstract attributes handling by services
* config(vercel): Remove test image service
* feat(image): Support for relative images in Markdown (WIP)
* feat(images): Add support for relative images in Markdown
* feat(image): Update with RFC feedback
* fix(image): Fix alt error on getImage
* feat(image): Add support for assets validation through content collections
* feat(image): Remove validateTransform
* feat(image): Move to assets folder
* fix(image): Fix package exports
* feat(image): Add static imports references to virtual moduel
* fix(image): Fix images from content collections not working when embedded
* chore: lockfile
* fix(markdown): Fix type
* fix(images): Flag enhanced images behing an experimental flag
* config(example): Update images example conifg
* fix(image): Fix types
* fix(image): Fix asset type for strict, allow arbritary input and output formats
* chore: fix example check
* feat(image): Emit assets for ESM imported images
* Add initial core image tests (#6381 )
* feat(images): Make frontmatter extraction more generic than images for future
* feat(image): Add support for building
* fix(image): Fix types
* fix(images): Fix compatibility with image integration
* feat(images): Cuter generation stats
* fix(images): Globals are unsafe, it turns out
* fix(images): Only generate images if flag is enabled
* fix(images): Only create `addStaticImage` in build
* feat(images): Add SSR endpoint
* fix(images): Only inject route in SSR
* Add tests for SSR
* Remove console.log
* Updated lockfile
* rename to satisfy the link gods
* skip build tests for now
* fix(images): Fix WASM files not being copied in dev
* feat(images): Add quality presets
* fix build tests running
* Remove console.log
* Add tests for getImage
* Test local services
* Test the content collections API
* Add tests for quality
* Skipping content collections test
* feat(image): Add support for `~/assets` alias
* test(image): Add tests for aliases in dev
* Fix windows + content collections
* test(image): Add tests for aliased images and images in Markdown
* Fix markdown images being built
* Should be posix join
* Use the optimized image
* fix test
* Fixes windows smoke
* fix(image): Nits
* feat(images): Add automatic update for `env.d.ts` when experimental images are enabled
* fix(images): Revert env.d.ts change if the user opted-out of the experimental image support
* chore: remove bad image example project
* feat(image): Rename `experimental.images` to `experimental.assets`
* fix(images): Remove unused code in MDX integration
* chore: Remove unrelated change
* fix(images): Remove export from astro/components
* Fix, esm import on Win
* test(images): Add test for format
* fix(images): Add `client-image.d.ts` to export map
* chore: changeset
* fix(images): Adjust with feedback, no more automatic refine, asset() -> image()
* fix(images): Fix types
* fix(images): Remove unnecessary spread
* fix(images): Better types for parseUrl and transform
* fix(images): Fix types
* fix(images): Adjust from feedback
* fix(images): Pass width and height through getHTMLAttributes even if they're not added by the uesr
* fix(images): Recusirsively extract frontmatter assets
* fix(images): Use a reduce instead
* feat(images): Add support for data: URIs
* chore: changeset
* docs(images): Misc docs fixes
* Update .changeset/gold-rocks-cry.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update .changeset/gold-rocks-cry.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/src/@types/astro.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/services/service.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/types.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/astro/src/assets/types.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-07 16:12:21 +01:00
Emanuele Stoppa
75921b3cd9
feat(cli): add --watch
to astro check
command ( #6356 )
...
* feat(cli): add `--watch` to `astro check` command
* chore: refactor in a leaner way, logic not changed
* chore: lint
* chore: revert changes in sync command
* chore: tweak server settings
* test: add one test case
* chore: increase timeout
* test: predictable testing
* chore: add changeset
* chore: code suggestions
* code suggestions
* chore: use directly `chokidar`
* chore: tweak code
* fix: open documents first
* chore: disable test
* chore: code suggestions
* chore: code suggestions
* Apply suggestions from code review
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
* code suggestions
* chore: rebase
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-03-07 06:55:41 +00:00
Bjorn Lu
00a0af7ed4
Move benchmark package and update changeset config ( #6433 )
2023-03-07 10:52:47 +08:00
Houston (Bot)
19fe4cb629
[ci] release ( #6414 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-06 11:30:38 -05:00
Bjorn Lu
c5bac09a42
Add page render benchmark ( #6415 )
2023-03-06 22:55:44 +08:00
Happydev
e0844852d3
Fix ?inline
and ?raw
css query suffixes inlined in style tags in development ( #6426 )
...
* test: add test cases
* test: add another expectation
* fix: don't crawl inline and raw css queries
* chore: changeset
2023-03-06 08:06:55 -05:00
Erika
0abd1d3e42
Use undici's FormData for polyfilling ( #6413 )
...
* fix(webapi): Use undici's FormData instead of a polyfill
* chore: changeset
2023-03-03 14:47:24 +01:00
Bjorn Lu
13f6f591e3
Improve server-stress benchmark comment ( #6405 )
2023-03-03 11:55:31 +08:00
Houston (Bot)
5c95f4f95a
[ci] release ( #6377 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-02 14:32:38 -06:00
Bjorn Lu
45501c531b
Teardown compiler to improve rendering perf ( #6391 )
...
* Teardown compiler to improve rendering perf
* Upgrade compiler to minor
* Try hacky test guard
* Nicer teardown flow
2023-03-02 14:54:07 +00:00
Bjorn Lu
f4937949d6
Refactor benchmark script ( #6376 )
...
* Add timer setting
* Setup benchmark code
* Setup memory benchmark
* Add compare function
* Add result preview
* Setup results preview
* Simplify script for CI
* Update CI
* Cleanup
* Temp remove fork guard
* Fix stuff
* Fix again
* Fix quotes
* Fix multiline output
* Simplify title
* Fix memory numbers
* Remove astro bin dir
* Fix gc
* Add repo guards
* Fix wrong call
* Set max space size
* Remove guard
* Bump memory a bit
* Organize neatly
* Update readme
* Try large md
* Try no gc
* Revert markdown and gc changes
* Test sha
* Try ref
* Try 128mb
* Set 256
* Add guard
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Add docs comment
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-01 08:46:06 +00:00
Houston (Bot)
71743aeca7
[ci] release ( #6359 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-27 08:55:42 -05:00
Emanuele Stoppa
5aa6580f77
fix: bump undici
to v5.20.0 ( #6355 )
...
* fix: bump `undici` to v5.20.0
* fix(cookies): Hopefully the last time we mess with undici and cookies
* chore: add @astrojs/telemetry to changeset
---------
Co-authored-by: Princesseuh <princssdev@gmail.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-24 12:10:33 -06:00
Houston (Bot)
a848a723f6
[ci] release ( #6287 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-23 14:50:11 -06:00
Raphael Bossek
075b87e8b7
Update MDX integration to es-module-lexer@1.1.1 ( #6296 )
...
* Update MDX integration to es-module-lexer@1.1.1
* Added missing pnpm-lock.yaml file
* Create lucky-flowers-wonder.md
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-23 09:20:06 -06:00
Bjorn Lu
2eb73cb9d1
Use .mjs extension when building for netlify edge and vercel serverless ( #6317 )
2023-02-21 22:14:47 +08:00
Erika
5e26bc891c
fix(cookies): Update Undici to 5.20 and fix cookies behaviour ( #6323 )
...
* fix(cookies): Update Undici to 5.20 and fix cookies behaviour
* chore: changeset
2023-02-21 14:18:17 +01:00
Houston (Bot)
2e4ca0370a
[ci] release ( #6279 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17 13:44:15 -05:00
Matthew Phillips
bb18010137
Pin undici ( #6282 )
2023-02-17 11:46:10 -05:00
Bjorn Lu
d9474d467e
Bump Vite to 4.1 ( #6277 )
2023-02-17 22:16:25 +08:00
Houston (Bot)
a486104692
[ci] release ( #6269 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-17 14:48:21 +01:00
Erika
0f5d122cd5
fix(create-astro): Pin giget to 1.0.0 ( #6278 )
2023-02-17 14:45:47 +01:00
Houston (Bot)
fb4e79bf1f
[ci] release ( #6261 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-16 14:36:33 -05:00
Houston (Bot)
66acc6a65c
[ci] release ( #6251 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-15 22:54:16 +08:00
Houston (Bot)
4b89c2b553
[ci] release ( #6239 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-15 08:05:27 -05:00
Bjorn Lu
4f6ecba4c1
Support rehype plugins that inject namespaced attributes ( #6243 )
...
* Support rehype plugins that inject namespaced attributes
* Fix rehype property casing
2023-02-15 17:06:33 +08:00
Bjorn Lu
1c678f7ebf
Fix hydration path for circular imports ( #6244 )
2023-02-15 16:49:57 +08:00
Happydev
c397be324f
fix: add support for js/mjs
file extensions for Content Collections config file ( #6229 )
...
* test: add fixture
* test: add test case
* test: fix tests
* feat: support mjs/ js file extensions for cc config
* chore: sync lockfile
* test: make assertion more specific
* test: make template minimal
* chore: add changeset
* feat: add warning when `allowJs` is `false`
* improve warning
* extract tsconfig loader to another function
* rename to more descriptive variable
* apply review suggestion
Co-authored-by: Ben Holmes <hey@bholmes.dev>
---------
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-02-13 22:19:16 +00:00
Houston (Bot)
27a0b6339b
[ci] release ( #6200 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-13 15:26:13 -05:00
Houston (Bot)
d6845245f2
[ci] release ( #6184 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-09 14:27:56 -05:00
Matthew Phillips
3390cb8444
Fix head injection misplacement with Astro.slots.render() ( #6196 )
...
* Fix head injection misplacement with Astro.slots.render()
* Adding a changeset
* Fix case of JSX with no layout
* missing break
2023-02-09 11:50:04 -05:00
Houston (Bot)
350cbd66d3
[ci] update lockfile ( #6189 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-09 08:19:13 -05:00
Dan Jutan
436bd09341
Fix root directory spread pagination url.prev
for first page ( #6183 )
...
* Fix root pagination `url.prev` for first page
* fix lockfile?
* add changeset
2023-02-08 19:14:47 -05:00
Matthew Phillips
938ad514cd
Ensure base configuration appended to content collection styles ( #6182 )
...
* Fix, base appended to propagated scripts
* Test scripts
2023-02-08 17:15:33 -05:00
Houston (Bot)
919d0db428
[ci] release ( #6178 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-08 14:11:29 -05:00
Justin Sun
23c60cfa45
feat(vercel): Add support for analytics (Audiences & Web Vitals) ( #6148 )
...
* feat(intergration/vercel): add vercel analytics support
* docs(intergration/vercel): add vercel analytics prop
* docs(intergration/vercel): bump version to 3.1.0
* Update packages/integrations/vercel/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs(intergration/vercel): add file name for example
* feat(intergration/vercel): convert analytics to ts and support in edge
* docs(intergration/vercel): move file names to code blocks as comments
* fix(intergration/vercel): remove unused import
* feat(intergration/vercel): add analytics support to static mode
* chore(intergration/vercel): revert version change
* style(intergration/vercel): add a blank line after astro import
* chore(intergration/vercel): generate file by changeset
* Update .changeset/eighty-bobcats-deliver.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/vercel/README.md
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* Update packages/integrations/vercel/src/analytics.ts
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
* chore(intergration/vercel): simplify analytics script
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-02-08 13:32:20 -03:00
Matthew Phillips
8bbdcf17dd
Take dynamic imports into account for CSS ordering ( #6176 )
...
* Take dynamic imports into account for CSS ordering
* Adding a changeset
* updated lockfile
2023-02-08 10:15:36 -05:00
Houston (Bot)
334da38c56
[ci] update lockfile ( #6175 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-08 08:08:37 -05:00
Houston (Bot)
d9061da447
[ci] release ( #6169 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 17:08:12 -05:00
Houston (Bot)
27eecd3998
[ci] release ( #6116 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-07 13:45:08 -05:00
Houston (Bot)
dd0914eafd
[ci] update lockfile ( #6160 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-07 11:00:30 -05:00
Matthew Phillips
d1f5611feb
Add additional scoping for head buffering ( #6152 )
...
* Add additional scoping for head buffering
* Add test for direct usage of nested component
* Add special scoping for Astro.scopes.render()
* Generate propagation map during the build
* Move to a maybeHead instruction
* Properly serialize for SSR
* More conservative scoping
* Maybe had should honor result._metadata.hasRenderedHead
* Properly type slots
* Allow template result to be passed
* Add changeset
2023-02-07 10:56:32 -05:00
Matthew Phillips
f6fc662c3c
Prevent ?inline and ?raw CSS from being bundled as CSS ( #6161 )
...
* Prevent ?inline and ?raw CSS from being bundled as CSS
* Add a changeset
* oopts
* Replace use of isCSSRequest
2023-02-07 10:49:13 -05:00
Houston (Bot)
a717c5c76d
[ci] update lockfile ( #6129 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-02-06 10:50:08 -06:00
Nate Moore
8d2187d8b8
Refactor create-astro
( #6082 )
...
* refactor: new version of create-astro
* chore: update README
* fix(create-astro): update project name logic
* test(create-astro): fix test on windows
* test(create-astro): fix test on windows
* test(create-astro): remove unused import
* chore: remove log
* chore: increase test timeout
* fix: message when skipping
* fix: message for env.d.ts file
* fix: always hard exit
* fix: return from next-steps
* chore: add message
* refactor dependencies, bundle create-astro
* chore: disable create-astro typings
* chore: switch to arg
* chore: update message
* fix: split typescript into two steps, fix context test
* chore: update wording
* chore: update wording
* Update packages/create-astro/src/actions/dependencies.ts
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
* refactor: move tests back to mocha/chai
* chore: update cli-kit
* update test script
* chore: add comment about setStdout
* chore: update cli-kit
* Update packages/create-astro/src/messages.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/create-astro/src/messages.ts
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: update lockfile
* fix(create-astro): support scoped package names, improve project-name tests
* better git initialization
* update cli-kit
---------
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-02-06 10:19:37 -06:00
Houston (Bot)
79fca438e9
[ci] update lockfile ( #6115 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-03 09:09:54 -05:00
Houston (Bot)
a1c0cbe604
[ci] release ( #6109 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-02 19:43:30 -05:00
Matthew Phillips
67ccec9e16
Node adapter: handle prerendering and serving with query params ( #6110 )
...
* Node adapter: handle prerendering and serving with query params
* Adding a changeset
2023-02-02 19:10:16 -05:00
Matthew Phillips
f9babc38b4
Upgrade preact's dependencies to fix security issue ( #6108 )
2023-02-02 16:41:10 -05:00
Houston (Bot)
81615c5004
[ci] release ( #6094 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-02 15:38:04 -05:00
Yasser Hennawi
8c80e78dd5
chore: bump vitefu for @astrojs/solid-js ( #6104 )
...
Co-authored-by: Yasser Hennawi <yasser.hennawi@nordsec.com>
2023-02-02 23:02:17 +08:00
Houston (Bot)
4c6dcac030
[ci] update lockfile ( #6100 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-02 08:19:21 -05:00
Houston (Bot)
a007dbc759
[ci] release ( #6089 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-01 14:38:18 -05:00
Matthew Phillips
97a97196fc
Move @netlify/functions to be a dep ( #6090 )
...
* Move @netlify/functions to be a de
* Adding a changeset
2023-02-01 14:33:37 -05:00
Houston (Bot)
f05eb9f8ba
[ci] release ( #6048 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-02-01 08:58:35 -05:00
Houston (Bot)
724f9dc2d6
[ci] update lockfile ( #6060 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-02-01 08:35:03 -05:00
Alexey Shmalko
b3e65991f7
fix(image): allow usage of image from any directory ( #5932 )
...
Currently, @astrojs/image allows *importing* images from srcDir
only. Importing images from outside srcDir fails miserably *in dev
mode* and produces incorrect src.
This happens because `path.relative(fileURLToPath(config.srcDir), id)`
resolves to "../something" and when joined with '/@astroimage' cancels
it out (`join('/@astroimage', '../../something')` => `'/something'`).
Rework /@astroimage URL scheme to be similar to "/@fs/" scheme—always
export absolute path to the target file.
2023-01-30 15:29:41 -05:00
Houston (Bot)
a2cbc75ac4
[ci] release ( #6041 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-30 15:28:32 -05:00
Houston (Bot)
d9787a6ff6
[ci] release ( #5995 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-30 12:38:31 -05:00
Houston (Bot)
fbb34e1ef6
[ci] update lockfile ( #5988 )
...
* [ci] update lockfile
* fix type issues
---------
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-30 12:03:32 -05:00
Houston (Bot)
607f0ac31a
[ci] release ( #5984 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-26 13:53:32 -05:00
HiDeoo
7abb1e9056
Fix MDX heading IDs generation when using a frontmatter reference ( #5978 )
...
* Fix MDX heading IDs generation when using a frontmatter reference
* Hoist safelyGetAstroData() call and add statement null check
2023-01-26 12:52:50 -05:00
Matthew Phillips
9855db676e
Support for prerendering in the Cloudflare integration ( #5993 )
...
* Cloudflare prerender branch
* Add prerendered routes to Cloudflare routes.json
* Adding changeset
* Prevent process proxy from running during prerender phase
2023-01-26 12:43:39 -05:00
HiDeoo
60b32d5856
Fix Astro.url.protocol
when using the @astrojs/node SSR adapter with HTTPS ( #5992 )
2023-01-26 12:39:57 -05:00
Houston (Bot)
4842d6acb0
[ci] release ( #5963 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-25 10:19:27 +08:00
Bjorn Lu
02549b8ced
Upgrade semver dependency ( #5972 )
2023-01-25 10:13:47 +08:00
Happydev
46b6e14265
Fix Content Collections not loading config file when there are spaces in the folder tree ( #5962 )
...
* fix
* add test
* use `fileURLToPath` instead
* chore: changeset
* remove useless config file
* revert back to using `decodeURIComponent`
* test: better test
* re-revert back to using `fileURLToPath`
2023-01-24 20:00:17 +00:00
Houston (Bot)
73ca0ef383
[ci] release ( #5948 )
...
* [ci] release
* Update changelogs (#5955 )
* [ci] release
* Wrap astro 2.0 beta logs in `<details>`
* Add link to docs upgrade guide
* First pass cleaning up 2.0 release notes
* mdx changes from Sarah
* combine 5584 and 5842 in deno, image, netlify
* markdown/remark incl (5684 & 5769) to match mdx
* Tweak markdown/remark formatting
* Format astro-prism
* Format astro-rss
* Format create-astro
* Format cloudflare
* Format lit
* Format partytown
* Format node
* Format preact
* Format react
* Format solid
* Format svelte
* Format tailwind
* Format vercel
* Format vue
* Format telemetry
* Format webapi
* Format scripts
* Reinstate h3s for headings
Co-authored-by: Ben Holmes <hey@bholmes.dev>
* Reformat mdx
* astro & markdown/remark: Combine #5679 & #5684 changelogs
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-01-24 11:38:06 -05:00
Houston (Bot)
a75177f843
[ci] release (beta) ( #5911 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-23 16:11:39 -05:00
Nate Moore
7325df4121
Remove duplicate CSS in dev ( #5917 )
...
* fix(#5817 ): remove duplicate CSS in dev
* chore: add changeset
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-23 12:03:19 -06:00
Happydev
9e57268f13
fix(@astrojs/tailwind): manually load postcss config file ( #5908 )
2023-01-23 22:46:19 +08:00
heyhoe
46ecd5de34
Update magic-string used by @astrojs/image and @astrojs/webapi ( #5930 )
2023-01-22 17:11:19 +08:00
Caleb Jasik
5fd9208d44
Update compiler to 1.0.1 ( #5909 )
...
* Update compiler to 1.0.1
* Add changeset
2023-01-19 13:51:45 -05:00
Hoston (Bot)
9ddb7a2f2e
[ci] release (beta) ( #5906 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-19 11:40:44 -05:00
Ben Holmes
81dce94f2a
[RSS] Get ready for content collections ( #5851 )
...
* chore: strictNullChecks for zod
* feat: expose `rssSchema` helper
* refactor: align types with schema types
* feat: break glob handler to globToRssItems util
* refactor: RSS options validation to Zod
* refactor: avoid intermediate type
* fix: allow numbers and dates in pubDate
* test: update glob and error tests
* feat: add rss to with-content starter
* fix: move globToRssItems back to internal behavior
* chore: JSON.stringify
* Revert "fix: move globToRssItems back to internal behavior"
This reverts commit 85305075e6444907455541b24bccbccd5016951a.
* test: missing url
* docs: `import.meta.env.SITE` -> `context.site`
* docs: update README to content collections example
* fix: url -> link
* docs: add `rssSchema` to README
* chore: consistent formatting
* docs: add `pagesGlobToRssItems()` reference
* chore: globToRssItems -> pagesGlobToRssItems
* chore: changeset
* fix: bad docs line highlighting
* fix: add collections export to example
* nit: remove "our"
* fix: are -> all
* fix: more README edits
* deps: kleur
* chore: add back import.meta.glob handling as deprecated
* docs: bump down to `minor`, update headline to be less content collections-y
* typo: suggest adding
* chore: support URL object on `site`
* docs: add await to pagesGlob ex
* docs: tighten `rssSchema` explainer
* docs: tighten pagesGlobToRssItems section
* docs: add content to README
* docs: replace examples with docs link
* docs: re-we
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-19 11:24:55 -05:00
Hoston (Bot)
97267e3881
[ci] release (beta) ( #5856 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-19 11:00:03 -05:00
Nate Moore
64b8082e77
chore: update compiler ( #5896 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-18 16:12:00 -06:00
Nate Moore
16dc36a870
Remove legacy compiler error handling ( #5855 )
...
* refactor: remove legacy compiler handling
* docs: add hint to unknown compiler error
* feat: add link detection to error overlay
* chore: update compiler
* chore: update compiler issue link
* Update packages/astro/src/core/errors/overlay.ts
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-01-18 12:57:31 -06:00
Erika
1bd42c6b2a
Fix image integration not working on Node 18+ ( #5871 )
...
* fix(image): Remove unnecessary polyfill now that we dropped Node 14
* fix(squoosh): Remove fetch of local wasm binary since undici doesn't support that
* chore: changeset
2023-01-17 15:48:06 +01:00
Fred K. Bot
02b797fd3c
[ci] release (beta) ( #5792 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-12 11:40:35 -05:00
Nate Moore
63a6ceb38d
fix(core): handle encoded characters when matching routes ( #5836 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-12 09:44:18 -06:00
Bjorn Lu
ae8a012a7b
Handle compiler breaking change ( #5803 )
2023-01-12 22:46:56 +08:00
Fred K. Bot
982e21c164
[ci] update lockfile ( #5815 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-11 10:40:11 -06:00
HiDeoo
2303f95142
Add support for serving well-known URIs with the @astrojs/node SSR adapter ( #5832 )
2023-01-11 17:52:51 +08:00
Dovlat Yakshibayev
813073addd
Bumps partytown version to fix deprecation warning ( #5820 )
...
* bumps partytown version, adds changeset
* changes changeset from minor to patch
* changes changeset from minor to patch
2023-01-10 16:05:28 -06:00
wulinsheng123
9869f2f6d8
can jump 404 when that page does not exist ( #5701 )
2023-01-11 00:59:20 +08:00
Erika
c55fbcb8ed
Remove more unnecessary polyfills from webapi for Node 16 ( #5814 )
...
* feat(webapi): Remove unnecessary polyfills now that we dropped support for Node 14
* feat(webapi): Removed more unnecessary polyfills for Node 16
* chore: changeset
2023-01-10 15:29:06 +01:00
Bjorn Lu
4a1cabfe6b
Cleanup dependencies ( #5773 )
2023-01-10 15:58:55 +08:00
Erika
1f92d64ea3
Drop Node 14 support ( #5782 )
...
* chore: Update engines field
* fix(deps): Remove node-fetch
* feat(polyfills): Remove node-fetch for undici
* feat(webapi): Remove node-fetch from the webapis polyfills for undici
* feat(core): Remove node-fetch for undici in Astro core
* feat(telemetry): Remove node-fetch for undici
* feat(node): Remove node-fetch for undici in node integration
* feat(vercel): Remove node-fetch for undici in Vercel integration
* chore: update lockfile
* chore: update lockfile
* chore: changeset
* fix(set): Fix set directives not streaming correctly on Node 16
* Try another approach
* Debugging
* Debug fetch
* Use global fetch if there is one
* changeset for lit
* Remove web-streams-polyfill
* Remove web-streams-polyfill license note
* Update .changeset/stupid-wolves-explain.md
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-01-09 16:59:20 -05:00
Bjorn Lu
302e0ef8f5
Default preview host to localhost ( #5753 )
...
* Initial refactor
* Extract as vite plugin
* Cleanup vite plugin
* Reduce option passing
* Use localhost as preview default host
* Simplify base handling
* Fix host handling
* Add changeset
* Remove unused imports
* Remove unused sirv dep
* Try pin playwright to 1.28.1
* Update playwright
* Try this
* Speed up CI
* Try fix page off
* Refactor networkidle
* Ensure open connections are destroyed when the preview server is closed
* Revert debug code
Co-authored-by: Matthew Phillips <matthew@matthewphillips.info>
2023-01-09 12:14:07 -05:00
Chris Swithinbank
f35411487b
[markdown-remark] Remove unused dependencies ( #5804 )
...
* [markdown-remark] Remove unused dependency
Follow up to #5785 . Missed one dependency that is no longer used and can be removed.
* [markdown-remark] Remove unused dependency
* Lockfile fix
* Update lockfile [again]
2023-01-09 17:06:29 +01:00
Nate Moore
f8f4d49aba
Output assets to _astro
directory ( #5772 )
...
* WIP: emit assets to _astro
* chore: better _astro handling
* refactor: emit server assets to `chunks/`
* chore: update /asset tests
* test: add explicit build output tests
* fix: update image to emit to configured asset path
* chore: update changeset
* chore: update image tests
* chore: update image tests
* test: update css test
* test: update bundling test
* test: update tests
* 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>
* chore: add clarifying comment
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-09 10:01:33 -06:00
Fred K. Bot
32b0795bc0
[ci] update lockfile ( #5805 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-09 09:28:53 -05:00
Chris Swithinbank
16107b6a10
Remove Astro-flavored Markdown from @astrojs/markdown-remark
( #5785 )
2023-01-09 10:23:21 +01:00
Fred K. Bot
0be2d0dbc2
[ci] update lockfile ( #5790 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-09 15:25:01 +08:00
Sebastiaan
f7aa1ec25d
[@astrojs/lit] Fix slotted content into main ( #5791 )
...
* Fix add the missing slot attribute to child nodes
* Add lit slot tests
* Add changeset
2023-01-07 08:29:16 -05:00
Fred K. Bot
ec5a39c299
[ci] release (beta) ( #5742 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-06 13:00:12 -05:00
Bjorn Lu
49ab4f231c
Remove proload for config loading ( #5778 )
...
* Refactor resolve and load config
* Add changeset
* Update name
* Remove unnecessary node_env handling
* Fix test
* Update comment
2023-01-06 12:49:18 -05:00
Fred K. Bot
23937fbbc9
[ci] update lockfile ( #5775 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-06 10:29:58 -05:00
Ben Holmes
93e633922c
Add SmartyPants flag ( #5769 )
...
* feat: add smartypants flag
* test: smartypants in markdown and mdx
* docs: Smartypants -> SmartyPants
* chore: changeset
* chore: update changeset with 1.0 -> 2.0 in mind
* chore: bump to minor change
2023-01-06 09:26:02 -05:00
Nate Moore
9ef0c50427
Update compiler ( #5656 )
...
* chore: update compiler
* chore: pin compiler
* update compiler
* update changeset
* chore: test prerelease
* chore: update compiler
* chore: update lockfile
* chore: do not pin compiler
* Delete fresh-kids-serve.md
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-05 10:43:57 -06:00
Fred K. Bot
17608762e1
[ci] update lockfile ( #5764 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-05 09:22:54 -06:00
Matthew Phillips
116d8835ca
Fix for hoisted scripts in project with spaces in the file path ( #5756 )
...
* Fix for hoisted scripts in project with spaces in the file path
* Adding a changeset
* Use viteID instead
2023-01-04 15:36:44 -05:00
Nate Moore
55cea0a9d8
Handle getStaticPaths
with prerendered pages ( #5734 )
...
* fix(#5661 ): ensure getStaticPaths is correctly handled for prerendered pages
* test: add prerender getStaticPaths cases
* chore: add changeset
* test: add props to test suite
* chore: update lockfile
Co-authored-by: Nate Moore <nate@astro.build>
2023-01-04 13:20:13 -06:00
Fred K. Bot
cc4606d65e
[ci] update lockfile ( #5744 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-01-04 10:45:33 -06:00
Erika
2a57864195
Add file location to errors in build ( #5743 )
...
* feat(errors): Add file location where error happened during build for user-generated errors
* chore: changeset
* fix(errors): Only add information if the error is in a compatible shape
* feat(errors): Add hint to throw Error objects instead of other types for better information
* test(errors): Add test to make sure errors in build have the error location
* chore(lockfile): Update lockfile
* chore: misc text fixes
2023-01-04 13:31:28 +01:00
Fred K. Bot
2ba3bd9c16
[ci] release (beta) ( #5732 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-03 17:23:30 -05:00
Ben Holmes
a9c2920264
Markdown and MDX configuration rework ( #5684 )
...
* feat: change extendDefaults -> gfm
* deps: remove smartypants from md/remark
* tests: update markdown plugin tests
* fix: borked lockfile
* feat: allow all Markdown options in MDX config, with extend
* deps: remove smartypants from MDX
* chore: remove unused `mode` property
* chore: remark rehype types
* chore: dead code
* fix: order of default config properties
* refactor: move md defaults to remark
* fix: RemarkRehype type
* fix: apply defaults based on MD defaults
* chore: update plugin tests
* chore: add syntaxHighlight test
* refactor: remove drafts from config defaults
* docs: new MDX config options
* chore: add changeset
* edit: test both extends for syntax highlight
* refactor: remove MDX config deep merge
* docs: update README and changeset
* edit: avoid -> disable
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: `drafts` clarification
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: remove "scare quotes"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: MDX config options redraft
* docs: add migration
* chore: changeset heading levels
* refactor: githubFlavoredMarkdown -> gfm
* chore: remove unused imports
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-03 17:12:47 -05:00
Matthew Phillips
4cc8c84caf
Fix astro-embed peerDep issue ( #5731 )
...
* Fix astro-embed peerDep issue
* Update lockfile
2023-01-03 15:32:43 -05:00
Bjorn Lu
f6cf92b483
Upgrade to Vite 4 ( #5685 )
...
* Upgrade Vite 4
* Simplify Svelte preprocess setup
* Upgrade rollup
* Fix tests
* Fix wrong changeset target
* Fix error tests
* Set NODE_ENV default
2023-01-03 13:24:49 -05:00
Fred K. Bot
5007bc7881
[ci] update lockfile ( #5686 )
...
* [ci] update lockfile
* Fix build errors from new TypeScript version
* Updated lockfile
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-01-03 12:18:32 -05:00