Commit graph

4220 commits

Author SHA1 Message Date
bluwy
953ddf1194 [ci] format 2022-10-03 14:56:34 +00:00
Bjorn Lu
5bcd76e3ab
Refactor ViteConfigWithSSR type (#4952) 2022-10-03 22:54:34 +08:00
Fred K. Bot
16688162b4
[ci] release (#4945)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-01 08:11:59 -04:00
Scott Willsey
a8f1a91e7e
Astro image cache dependency fix scottaw66 (#4944)
* Moves http-cache-semantics from dev dependency to dependency

* Pull request for astro image http-cache-semantics dependency
2022-09-30 22:25:37 -05:00
Fred K. Bot
5565782d70
[ci] release (#4943)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 19:51:17 -04:00
natemoo-re
d34894fab4 [ci] format 2022-09-30 23:27:15 +00:00
Matthew Phillips
9898088c0a
Convert HTMLString to regular string, preventing hydration script fro… (#4932)
* Convert HTMLString to regular string, preventing hydration script from being missing

* Add a changeset
2022-09-30 18:25:22 -05:00
Chris Swithinbank
f9261ddd00
Fix missing language tag on README code block (#4940) 2022-10-01 00:29:11 +02:00
natemoo-re
5bcddc3120 [ci] format 2022-09-30 22:15:41 +00:00
Nate Moore
cf2bba1e4a
P5: fix MDX memory leak (#4939)
* fix(astro): tag jsx vnodes with renderer so errors are properly handled

* chore: fix missing package in test

Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 17:13:44 -05:00
Nate Moore
0ae8147988
chore: delete .stackblitzrc files from examples (#4922)
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 16:02:52 -05:00
Nate Moore
e2afd22271
chore: add empty tsconfig to prevent TypeScript from crawling (#4937)
Co-authored-by: Nate Moore <nate@astro.build>
2022-09-30 16:02:39 -05:00
Fred K. Bot
2ffdafff45
[ci] release (#4921)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-30 20:15:38 +00:00
tony-sull
7fdd494236 [ci] format 2022-09-30 17:29:32 +00:00
Tony Sullivan
64a1d712ef
[@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props (#4933)
* fix: return the original file in dev if no image transforms were used

* chore: add changeset
2022-09-30 17:27:56 +00:00
Tony Sullivan
b5e25afa94
Update seven-shrimps-hope.md (#4934)
Upgrading the image caching feature as a minor release
2022-09-30 16:38:21 +00:00
Fred K. Bot
e5687471a5
[ci] update lockfile (#4927)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-30 11:47:32 -04:00
Erika
7690849a87
Move module declarations for Markdown and MDX so they're available everywhere (#4928)
* Move module declarations for Markdown and MDX to the proper file so they're globally available

* Remove tsconfig.json depending on client.d.ts unnecessarily
2022-09-30 12:06:14 -03:00
tony-sull
849fefd8b0 [ci] format 2022-09-29 21:22:49 +00:00
Tony Sullivan
9892989619
[@astrojs/image] adding caching support for SSG builds (#4909)
* adds a caching feature for SSG builds

* chore: add changeset

* nit: eslint fix

* chore: add readme docs for caching

* adding basic test coverage for cached images
2022-09-29 21:20:48 +00:00
Fred K. Bot
d08093f7d4
[ci] release (#4903)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-29 11:20:00 -04:00
Fred K. Bot
10317c65fe
[ci] update lockfile (#4899)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-09-29 09:41:29 -04:00
matthewp
b3c857adbd [ci] format 2022-09-29 12:16:35 +00:00
Rishi Raj Jain
d8e796e960
fix trailing slash mismatch in dev vs build in docs example (#4912) 2022-09-29 08:15:00 -04:00
bluwy
670d4bed45 [ci] format 2022-09-29 03:28:21 +00:00
Bjorn Lu
fd9d323a68
Support Vue JSX (#4897)
Co-authored-by: Dan Jutan <danjutan@gmail.com>
2022-09-29 11:25:45 +08:00
matthewp
24bad5a0ad [ci] format 2022-09-28 22:14:18 +00:00
Matthew Phillips
01c1aaa003
Fix CSS ordering between imported and Astro styles (#4907)
* Fix CSS ordering between imported and Astro styles

* Fix linting errors

* Add changeset and upgrade compiler version

* Update test to reflect shared styles placed before page styles
2022-09-28 18:12:22 -04:00
matthewp
55a1b5bb58 [ci] format 2022-09-28 20:57:35 +00:00
Matthew Phillips
d3091f89e9
Astro.cookies implementation (#4876)
* Astro.cookies implementation

* Remove unused var

* Fix build

* Add a changesetp

* Remove spoken-word expires
2022-09-28 16:55:27 -04:00
Tony Sullivan
ec55745ae5
Fix: let Squoosh default image quality internally (#4906)
* removes our quality defaults, allowing Squoosh format-specific defaults to be used

* chore: add changeset
2022-09-28 20:55:09 +00:00
stijlmassi
9103ac57fb
Update README.md (#4898)
* Update README.md

In the astro.config.mjs: defineConfig() was missing.

* Update packages/integrations/tailwind/README.md

Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>

Co-authored-by: Fred K. Schott <fkschott@gmail.com>
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2022-09-28 13:36:49 -03:00
Bjorn Lu
3832c083d4
Fix test (#4904) 2022-09-28 23:54:40 +08:00
FredKSchott
97aabe0075 [ci] format 2022-09-28 15:48:55 +00:00
Fred K. Schott
d37a840cd2
redesign basics template (#4879) 2022-09-28 08:47:19 -07:00
bluwy
0722ae0251 [ci] format 2022-09-28 15:15:42 +00:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist (#4842) 2022-09-28 23:13:33 +08:00
matthewp
f4bca41a2d [ci] format 2022-09-28 14:57:53 +00:00
Matthew Phillips
87a7cf48e7
Hoist hydration script out of slot templates (#4891)
* Hoist hydration script out of slot templates

* Add changeset

* Fix HTML components

* Mark as html string
2022-09-28 10:55:14 -04:00
Matthew Phillips
ff7ba0ee0f
Ensure head content rendered once with lazy layouts (#4892)
* Ensure head content rendered once with lazy layouts

* Add changeset
2022-09-28 10:55:06 -04:00
tweenietomatoes
649e9080cb
fixed typing (#4893) 2022-09-27 14:57:11 -03:00
Fred K. Bot
077134ae2c
[ci] release (#4846)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-27 12:12:44 -04:00
Rishi Raj Jain
90c2072990
fix: post API routes in SSG should warn or error during dev mode (#4878)
* Update endpoint.ts

* add warning for post routes called when output is not server

* Update famous-camels-study.md

* Update endpoint.ts

* If not get

* Resolve changes
2022-09-27 10:17:58 -04:00
Deanmv
883ce82a11
docs: Fix links to Tailwind examples (#4883)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-09-27 09:52:47 -03:00
Bjorn Lu
fb91d04a5c
Set SSR target webworker for Vercel edge (#4884) 2022-09-27 08:40:10 -04:00
Fred K. Bot
c6cfc638fd
[ci] update lockfile (#4885)
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-09-27 08:39:39 -04:00
bholmesdev
1dc651d74e [ci] format 2022-09-26 22:25:48 +00:00
Ben Holmes
58a2dca228
Fix: correctly transform import.meta.env.* in MDX (#4858)
* fix: serialize route pattern for Netlify edge

Co-authored-by: Jackie Macharia <jackiewmacharia>

* fix: escape import.meta.env in MDX compiler output

* test: env vars in mdx

* chore: changeset

* deps: estree-util-visit, @types/estree

* feat: inject import.meta.env w/ recma

* feat: pull importMetaEnv from vite + astro configs

* test: `import.meta.env` in JSX

* fix: lockfile

* chore: update changeset

* fix: remove stray stashed commit
2022-09-26 18:23:47 -04:00
Rishi Raj Jain
b73ec14171
Change negative lookbehind to lookahead (#4866) 2022-09-26 15:24:51 -04:00
Steven Yung
6fd00c4941
add double check on astro file return type to display more human readable error (#4857) 2022-09-26 14:13:25 -04:00