chlorine
b24607069e
chore: cleanup code ( #6897 )
2023-04-24 13:25:03 +08:00
Bjorn Lu
b6154d2d57
Fix hoisted scripts path for linked package Astro components ( #6872 )
2023-04-21 10:42:23 +02:00
bluwy
8cc53090ca
[ci] format
2023-04-19 09:01:27 +00:00
Bjorn Lu
7544d9bd41
Cleanup CI logs and run windows on node16 only ( #6838 )
2023-04-19 10:59:09 +02:00
Nathaniel Blackburn
43230b2cac
Align adapter setup ( #6874 )
2023-04-19 09:36:46 +02:00
André Alves
4c7ba4da08
Fix Astro.params does not contain path parameter from URL with non-English characters ( #6859 )
2023-04-17 16:44:48 +02:00
bluwy
1ed52c5849
[ci] format
2023-04-17 06:37:46 +00:00
jcdogo
1f2699461d
fix: astro island urls missing assetsPrefix in SSR mode ( #6862 )
...
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-04-17 08:35:48 +02:00
Houston (Bot)
763b7500e5
[ci] release ( #6842 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-14 12:11:17 -04:00
Bjorn Lu
2e3125e180
Fix vercel edge private env vars ( #6841 )
2023-04-14 21:46:24 +08:00
Chris Swithinbank
00a2e1d7c7
Fix warning syntax in Vercel integration README ( #6840 )
2023-04-14 12:08:31 +02:00
Houston (Bot)
b105ccb9ca
[ci] release ( #6835 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-13 14:41:56 -04:00
matthewp
704d61e777
[ci] format
2023-04-13 18:12:26 +00:00
Houston (Bot)
0f4c005750
[ci] update lockfile ( #6837 )
...
* [ci] update lockfile
* Fix type errors
* Fix zod version
* updated lockfile
* fix tests
---------
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-04-13 14:09:19 -04:00
Bjorn Lu
1fa041695e
Ensure unique workspace name ( #6836 )
2023-04-13 22:19:08 +08:00
bluwy
83f00f535b
[ci] format
2023-04-13 14:13:55 +00:00
Bjorn Lu
8539eb1643
Support tsconfig aliases in CSS @import
( #6816 )
2023-04-13 22:11:21 +08:00
Princesseuh
c464bf258f
[ci] format
2023-04-13 09:56:50 +00:00
Erika
2511d58d58
feat(mdx): Add support for turning ![]() into <Image> ( #6824 )
2023-04-13 11:54:40 +02:00
Erika
948a6d7be0
fix(content): Remove unsupported file warning for images ( #6825 )
2023-04-13 11:54:26 +02:00
Princesseuh
44d935d5d6
[ci] format
2023-04-13 09:01:47 +00:00
André Alves
3356023443
add validation for non-printable chars in CLI ( #6682 )
2023-04-12 15:30:09 -04: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
Ivo Ilić
c1e8f42a20
Added a caution about rewrites only working for static files ( #6517 )
...
Currently using rewrite with static files works but server rendered files with either edge or serverless function don't get rewritten.
See: https://github.com/withastro/astro/issues/6446
2023-04-12 14:21:59 -04:00
Emanuele Stoppa
eab397a941
chore: update xml2js
version ( #6822 )
2023-04-12 22:39:26 +08:00
Houston (Bot)
b2254bd786
[ci] release ( #6818 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-12 08:51:55 -04:00
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
Happydev
76dd53e3f6
Fix slot fallbacks unexpectedly showing up in some cases ( #6819 )
...
* test: add test fixture
* test: add test case
* test: revert unneeded changes in fixture
* fix
* chore: changeset
2023-04-12 08:23:14 -04:00
Princesseuh
bdfbe000d8
[ci] format
2023-04-12 08:47:35 +00:00
Erika
6c09ac03bf
Fix experimental.assets's Squoosh service not working on Netlify and Vercel SSR ( #6765 )
2023-04-12 10:45:35 +02:00
bholmesdev
44bd5da6d0
[ci] format
2023-04-11 17:47:24 +00:00
Ben Holmes
f882bc1636
Refactor content collection transforms ( #6817 )
...
* feat: json collection POC
* wip: add test json file
* refactor: rework content flag transforms
* refactor: simplify propagatedAsset check
* chore: remove JSON playground code
* chore: respect build sourcemap option
* deps: magic-string, source-map
* chore: formatting
* fix: add sourcemaps to MDX plugin
* chore: changeset
* deps: remove magic-string from mdx
* chore: remove unecessary MagicString
2023-04-11 13:44:39 -04:00
Houston (Bot)
b1d07bcf40
[ci] release ( #6809 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-11 13:10:00 -04:00
Bjorn Lu
60c16db6ff
Fix check CLI fs load fallback behaviour ( #6811 )
2023-04-11 11:57:11 +08:00
amirhhashemi
c12ca5ece3
fix(error-overlay): force error overlay direction to be LTR ( #6782 )
2023-04-10 16:59:17 +02:00
Bjorn Lu
a91e0156ab
Add more tsconfig alias tests ( #6812 )
2023-04-10 22:40:40 +08:00
Alper Doğan
99479e6b95
Optional Sizes
prop on Picture component ( #6773 )
2023-04-10 14:09:02 +02:00
Houston (Bot)
a5601a3cd3
[ci] release ( #6807 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-10 16:57:31 +08:00
André Alves
1e3873c04a
Fix no edge functions deployed to netlify ( #6793 )
2023-04-10 16:50:54 +08:00
Nathaniel Blackburn
84a4648884
Revert vercel env fix ( #6776 )
2023-04-10 16:40:29 +08:00
Bryce Russell
671a011d4f
Fix Tailwind README code block ( #6783 )
...
Co-authored-by: BryceRussell <19967622+BryceRussell@users.noreply.github.com>
2023-04-08 16:57:16 +08:00
Houston (Bot)
d531239201
[ci] release ( #6769 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-07 17:25:00 -04:00
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
matthewp
8a0336c362
[ci] format
2023-04-07 15:07:17 +00: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
matthewp
f2112452ad
[ci] format
2023-04-06 22:36:23 +00:00
Matthew Phillips
a98f6f418c
Prevent body head content injection in MDX when using layout ( #6779 )
2023-04-06 18:33:47 -04:00
matthewp
e0ee7765d0
[ci] format
2023-04-06 19:43:15 +00:00
Matthew Phillips
416ceb9730
Use Deno API to set Astro.clientAddress ( #6651 )
...
* Use Deno API to set Astro.clientAddress
* Add types
2023-04-06 15:40:50 -04:00
Ben Holmes
9e88e0f23c
Fix: remove slug()
from defineCollection()
( #6774 )
...
* fix: remove `slug()` from `defineCollection()`
* chore: changeset
2023-04-06 14:25:14 -04:00
natemoo-re
a89963ed46
[ci] format
2023-04-06 16:38:33 +00:00
Nate Moore
45bff6fccb
feat(prerender): support quoted true / false values and 0 / 1 ( #6772 )
2023-04-06 11:36:28 -05:00
Erika
52d7a4a011
Update client types to match Vite ( #6770 )
...
* fix(types): Update client types to match Vite's
* chore: changeset
2023-04-06 15:13:13 +02:00
Xetera
72fed684a3
Exporting ImageFunction from astro:content ( #6766 )
2023-04-06 13:58:34 +02: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
bluwy
f627a2ca3d
[ci] format
2023-04-05 16:06:50 +00: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
Erika
8b88e4cf15
Show the actual error when there was an error while generating types ( #6762 )
2023-04-05 17:12:35 +02:00
Erika
b96a129581
test: remove outdated image() import ( #6761 )
2023-04-05 16:50:32 +02:00
Princesseuh
c6c5f0dd02
[ci] format
2023-04-05 13:42:42 +00:00
Erika
a1108e0371
Move image()
to be passed as part of schema
( #6703 )
...
* feat(images): Move image() to schema so we can do relative images easily instead of clumsily
* chore: changeset
* fix: apply feedback
* test: add more tests
* fix: properly infer type if a function is used
* feat(iamge): Add errors when using the old methods
* chore: update to minor
* feat(image): Move function shape to be experimental.asets only
* Update packages/astro/src/content/template/virtual-mod.mjs
Co-authored-by: Ben Holmes <hey@bholmes.dev>
---------
Co-authored-by: Ben Holmes <hey@bholmes.dev>
2023-04-05 15:40:05 +02:00
bluwy
9302c0d4d0
[ci] format
2023-04-05 13:34:31 +00:00
Bjorn Lu
ff04307863
Add build.assetsPrefix
option for CDN support ( #6714 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-04-05 21:31:17 +08:00
Nathaniel Blackburn
26daba8d9f
@astrojs/vercel: Fix vercel analytics id not being provided ( #6751 )
...
* fix wrong environment variable being used
* added changeset
2023-04-05 09:23:40 -04:00
Bjorn Lu
489dd8d69c
Fix getViteConfig return type ( #6753 )
2023-04-05 09:06:00 -04:00
Augustine Kim
c7eb0d4310
Fix lit integration nested component rendering ( #6752 )
...
* Provide renderInfo to renderShadow
* Add test for rendering nested components
* Add changeset
2023-04-05 09:05:45 -04:00
Erika
4cc1bf61b8
fix(node): Fix malformed URLs crashing the server in certain cases ( #6746 )
2023-04-04 15:48:28 +02:00
André Alves
1ec1df1264
Fix #6618 : sitemap urls generated without slash ( #6658 )
2023-04-04 21:13:49 +08:00
Felix Frey
66f9de56ee
Fix broken links in TailwindCSS section ( #6747 )
2023-04-04 21:00:02 +08:00
Princesseuh
a2dc9d48bc
[ci] format
2023-04-04 08:23:34 +00:00
Erika
a1a4f45b51
fix(images): Simpler logic for collecting images in Markdown ( #6744 )
2023-04-04 10:21:13 +02:00
Princesseuh
366decbe33
[ci] format
2023-04-03 16:13:44 +00:00
Erika
2f2e572e93
feat(image): Export more types and utilities for users to use ( #6739 )
2023-04-03 18:11:45 +02:00
Erika
4c347ab51e
fix(images): Return the proper content-type for the chosen format ( #6741 )
2023-04-03 18:11:32 +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
matthewp
9846b3e935
[ci] format
2023-03-31 19:29:49 +00:00
Matthew Phillips
d54cbe4134
Better errors for when response is already sent ( #6719 )
...
* Better errors for when response is already sent
* Changeset
* Casing
* Change to a 300x error
2023-03-31 15:27:14 -04:00
matthewp
7f8ccbe876
[ci] format
2023-03-31 17:44:00 +00:00
wulinsheng123
d59e511d16
supporting top of await ( #6671 )
...
* add fix
* fix
* revert verison
* fix fn is undefined g
* add e2e test
* fix unit test
* delete redundant code
* add changeset
---------
Co-authored-by: wuls <linsheng.wu@beantechs.com>
2023-03-31 13:42:03 -04:00
Houston (Bot)
07e8a1bab4
[ci] release ( #6694 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-31 16:32:28 +02:00
Erika
c2d4ae1cbe
fix(check): Dynamically import check command ( #6717 )
2023-03-31 15:18:37 +02:00
Erika
9cc7329759
fix(errors): Add simplified message for MarkdownImageNotFound ( #6718 )
2023-03-31 15:08:53 +02:00
Princesseuh
b755bd62ff
[ci] format
2023-03-31 11:09:21 +00:00
Peter Timoshevsky
08e92f4f8e
Fix incorrect path in error overlay on Win ( #6679 )
2023-03-31 13:07:19 +02:00
Erika
46ecf46628
Remove unnecessary image-related .wasm
files inside build output when possible ( #6701 )
...
* fix(image): Remove unnecessary .wasm files after build
* chore: changeset
2023-03-30 20:57:57 +02:00
Erika
c04ea0d43c
Fix InferGetStaticParamsType and InferGetStaticPropsType not working with sync getStaticPaths ( #6711 )
...
* fix(types): Fix InferGetStaticParamsType (and its props equivalent) not working when getStaticPaths wasn't async
* chore: changeset
* fix: use type imports
2023-03-30 11:41:36 +02:00
Erika
a0bdf4ce2f
Fix multiple images being generated for the same image ( #6710 )
...
* fix(images): Fix multiple calls to same image generating multiple images
* chore: changeset
2023-03-30 11:31:04 +02:00
Aivars Liepa
b1b9b1390f
[RSS] Fix: update RSSFeedItem
type to comply with strictest
tsconfig ( #6614 )
...
* fix RSSFeedItem type for `strictest` tsconfig
* add .changeset
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-03-30 11:25:36 +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
Isaac
9e16860f61
Use debug option for debugDir ( #6554 )
...
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-03-29 08:18:25 -04:00
Shukur Huseynli
d5bcf89e1f
docs:
change the external React docs page to
https://react.dev ( #6690 )
2023-03-28 16:20:04 -04:00
Ben Holmes
5e33c51a9c
Fix: Paginate adds unexpected trailing slash on index route ( #6676 )
...
* fix: remove unexpected trailing / on paginate
* test: next and prev href
* chore: changesset
* fix: correct empty string to '/' for index route
* edit: and typo
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
* fix: tests not running!
---------
Co-authored-by: Happydev <81974850+MoustaphaDev@users.noreply.github.com>
2023-03-28 16:05:35 -04:00
Matthew Phillips
239b9a2fb8
Add use-immer as a noExternal module ( #6696 )
2023-03-28 15:35:21 -04:00
Ben Holmes
c0b7864a41
Fix: stop executing astro:server:setup
twice ( #6693 )
...
* fix: remove integrations container plugin
* chore: changeset
2023-03-28 13:43:16 -04:00
Houston (Bot)
af108e4b4a
[ci] release ( #6652 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-03-28 13:17:46 -04:00
Johannes Klauss
2e92e9aa97
Fix: Crash in NodeApp.render if req.body is null ( #6688 )
...
* Add additional null check for req.body
* Add changeset
2023-03-28 12:24:01 -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
328c671790
fix: specify astro peer dep version ( #6691 )
2023-03-28 11:11:23 -04:00