Houston (Bot)
a44e755cc6
[ci] release ( #7043 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-09 17:37:15 -04:00
Ben Holmes
3a9f72c7f3
[Markdoc] Validation and debugging improvements ( #7045 )
...
* feat: better validation logs
* chore: add warning to restart server on config chnage
* feat: expose Markdoc global from markdoc/config
* docs: update `nodes` reference
* chore: changeset
* docs: simplify headings explainer
* chore: ignore eslint log errors
* fix: make legacyConfig prop optional
2023-05-09 17:20:55 -04:00
Houston (Bot)
18d0632911
[ci] update lockfile ( #7018 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-09 16:29:35 -04:00
Erika
48395c8152
fix: properly prefix endpoint path with base in SSR ( #7047 )
...
* fix: properly prefix endpoint path with base in SSR
* chore: sssss
* chore: changeset
2023-05-09 20:53:06 +02:00
bholmesdev
10e34b6d71
[ci] format
2023-05-09 16:20:37 +00:00
Ben Holmes
630f8c8ef6
[Content collections] Fast getEntryBySlug()
lookup ( #6916 )
...
* feat: add generated lookup-map
* feat: wire up fast getEntryBySlug() lookup
* fix: consider frontmatter slugs
* chore: changeset
* chore: lint no-shadow
* fix: revert bad rootRelativePath change
* chore: better var name
* refactor: generated `.json` to in-memory map
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Revert "chore: removed unneeded await"
This reverts commit 1b0a8b00c2
.
* fix: bad `GetEntryImport` type
* chore: remove unused variable
* refactor: for -> Promise.all
* refactor: replace duplicate parseSlug
* refactor: add cache layer
* Revert "refactor: add cache layer"
This reverts commit 1c3bfdc6b3
.
* refactor: add comment, move to virtual-mod
* chore: add jsdocs
* refactor: fiiiiine no more `??=`
* fix: ignore underscore files in lookup map
* chore: add unknowncollectionerror on bad file contents
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-09 12:17:08 -04:00
Reuben Tier
1b90a7a5d5
Fix generation for routes defined using getStaticPaths ( #7029 )
...
* Fix static site dynamic routes for sitemap integration
* Add changeset
* Update pnpm-lock
* Remove console.log
2023-05-08 16:12:41 -04:00
Houston (Bot)
e54dcd5943
[ci] release ( #7037 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-08 13:17:09 -04:00
Raul Melo
157357e1fb
fix middleware typing export ( #7032 )
...
* fix middleware typing export
* Update .changeset/new-seals-hear.md
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-08 09:01:23 -04:00
Bjorn Lu
c009970333
Fix astro:assets
SSR error ( #7034 )
2023-05-08 19:33:08 +08:00
Houston (Bot)
50bf66e4df
[ci] release ( #7005 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-05 13:23:18 -04:00
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
Erika
1d4db68e64
fix: declare namespace so client-base.d.ts stays an ambient definition ( #7009 )
2023-05-05 16:20:37 +02:00
Bjorn Lu
5182689086
Update template deps to latest ( #7002 )
2023-05-05 19:09:38 +08:00
Waxer59
ad5c75447a
Fix partytown
README ( #7001 )
...
* fix README
* add changeset
2023-05-05 09:52:41 +02:00
Sarah Rainsberger
60688a7d16
Update astro.ts ( #6999 )
2023-05-04 18:04:21 -04:00
Matthew Phillips
2ff31e5c7b
Fix formatting problem in experimental feature docs ( #6997 )
2023-05-04 17:04:19 -04:00
Houston (Bot)
170140083c
[ci] release ( #6996 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 16:19:01 -04:00
Erika
71332cf969
fix: move service functions from astro/assets to astro/config so it can be imported ( #6995 )
...
* fix: move service functions from astro/assets to astro/config so people can import it
* chore: changeset
2023-05-04 15:57:23 -04:00
Matthew Phillips
1d2559c28b
Fix scopedStyleStrategy description ( #6994 )
2023-05-04 15:46:17 -04:00
Houston (Bot)
51c8e7fe29
[ci] release ( #6977 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-04 12:49:17 -04:00
Erika
818252acda
Add caching for optimized images ( #6990 )
2023-05-04 17:49:55 +02:00
ematipico
14fd198ea5
[ci] format
2023-05-04 14:25:03 +00:00
Robin Neal
ca329bbcae
Generate unique ids within each React island ( #6976 )
2023-05-04 15:23:00 +01:00
Houston (Bot)
dfb9e4270a
[ci] update lockfile ( #6962 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-04 10:00:28 -04:00
Emanuele Stoppa
17c074b202
chore: update middleware changeset ( #6986 )
2023-05-04 08:03:52 -04:00
Emanuele Stoppa
4f591ce0e4
ci: fix and update check merge workflow ( #6987 )
2023-05-04 11:31:31 +01:00
Bjorn Lu
2317dc2a22
Rename some test files to end with .test.js ( #6983 )
2023-05-04 17:25:07 +08:00
Matthew Phillips
3fd3918f43
Fixed scopedStyleStrategy version ( #6980 )
2023-05-03 17:47:26 -04:00
matthewp
2c655a57f6
[ci] format
2023-05-03 18:51:25 +00: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
8d75340b7a
fix: double test names ( #6978 )
2023-05-03 13:41:39 -04:00
Emanuele Stoppa
831b67cdb8
feat(astro): experimental middleware ( #6721 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-03 17:40:47 +01:00
Atila Fassina
ad907196cb
Sitemap: support SSR routes ( #6534 )
...
* feat(sitemap): support SSR generated routes
* feat(sitemap): add changeset for SSR support
* refactor: move logic to `astro:build:done`
* generate route to obey `trailingSlash` setting
* add logic to respect "directory" build format
* integration(sitemap): add unit test for ssr support
2023-05-03 12:19:45 -04:00
Bjorn Lu
cac4a321e8
Support <Code inline />
to output inline code ( #6959 )
...
* Support `<Code inline />` to output inline code
* Fix typo
* Fix typo again
* Remove expected error
---------
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-03 12:15:00 -04:00
matthewp
6916e5c79f
[ci] format
2023-05-03 15:28:00 +00:00
Matthew Phillips
0883fd4875
Ensure multiple cookies set in dev result in multiple set-cookie headers ( #6973 )
...
* Ensure multiple cookies set in dev result in multiple set-cookie headers
* Adding a changeset
* Try connecting to localhost instead
* use localhost in the Host header
* Use 0.0.0.0
* localhost it is
2023-05-03 11:26:02 -04:00
matthewp
66ada56940
[ci] format
2023-05-03 15:23:07 +00: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
Houston (Bot)
297a1dae51
[ci] release ( #6954 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-02 15:13:10 -04:00
Bjorn Lu
77270cc2cd
Avoid removing leading slash for build.assetsPrefix
( #6969 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-02 14:13:44 -04:00
Ben Holmes
b5482cee23
Fix: remove odd /1/
check on RSS canonicals ( #6970 )
...
* fix: remove odd `/1/` check on RSS canonicals
* chore: changeset
2023-05-02 13:48:44 -04:00
Matthew Phillips
b6797fc858
Update Solid ecosystem package logic to include packages with peerDep… ( #6934 )
...
* Update Solid ecosystem package logic to include packages with peerDep of Solid
* Remove solid as a noExternal
* Update the changeset
2023-05-02 13:23:28 -04:00
Bjorn Lu
72c6bf01fe
Fix content render imports flow ( #6958 )
2023-05-02 23:21:44 +08:00
Bjorn Lu
a8a319aef7
Fix astro-entry
error on build with multiple JSX frameworks ( #6967 )
2023-05-02 23:18:34 +08:00
Erika
8dd43db93f
fix: update lit example to properly ignore error ( #6964 )
2023-05-02 16:37:41 +02:00
Bjorn Lu
5371efe429
Improve undici fetch failed errors in tests ( #6960 )
2023-05-02 22:10:33 +08:00
Erika
a695e44aed
fix(types): Fix getImage type requesting for a second parameter ( #6961 )
2023-05-02 14:23:37 +02:00