Commit graph

1317 commits

Author SHA1 Message Date
Mohammed Elhaouari
17e2178568
Add renderer keyword to alpinejs integration (#4501)
* Add renderer keyword to alpinejs

* Add changeset
2022-08-26 11:50:11 -07:00
Fred K. Bot
ff03313848
[ci] release (#4495)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-26 13:01:30 -04:00
Erika
9874c7bf42
Update astro check to use latest version of the language server (#4500)
* Update @astrojs/language-server to latest version

* Add changeset

* Update lockfile
2022-08-26 12:54:38 -03:00
Erika
1f42c0791c
Vendor Vite's importMeta.d.ts inside our repo to workaround issue with tsc on Linux (#4499)
* Update @astrojs/language-server to latest version

* Vendor importMeta.d.ts from Vite inside our repo to workaround TypeScript issue on Linux

* Remove unnecessary change

* Add changeset
2022-08-26 12:47:39 -03:00
Ben Holmes
78e06c8ec0
Only print file output only for 404 and 500 routes (#4497)
* fix: print file output only for 404 and 500 routes

* chore: changeset
2022-08-26 11:35:30 -04:00
Abdullah Mzaien
824a2adddd
chore: update to solid 1.5 (#4496) 2022-08-26 11:11:57 -04:00
Matthew Phillips
62fd846ea8
Exit prerelease mode for 1.1 release (#4493) 2022-08-26 10:16:29 -04:00
Fred K. Bot
7960fb80a1
[ci] release (next) (#4480)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25 17:27:35 -04:00
Ben Holmes
ac03218247
[MD] extendDefaultPlugins to preserve default remark plugins (#4474)
* feat: add { extends } to markdown config

* test: remark plugins with extends

* deps: pnpm lock

* chore: changeset

* fix: remarkPlugins -> rehypePlugins

* docs: update markdown config reference

* Revert "feat: add { extends } to markdown config"

This reverts commit 5d050bbcf9a2c0d470cae79c4d0a954d489f4e8c.

* feat: new "extendDefaultPlugins" flag

* docs: update config

* nit: We -> Astro applies

* fix: backticks on `false`

* nit: Note -> REAL note

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* docs: note -> caution

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-25 17:21:56 -04:00
Ben Holmes
d4cd7a59fd
Update Markdown type signature to match behavior (#4423)
* feat: "file" and "url" top-level layout props

* test: markdown file and url

* test: mdx file and url

* feat: update MarkdownInstance + JSDoc improvements

* chore: changeset
2022-08-25 17:08:43 -04:00
gtnbssn
839097c84e
make Remark rehype options available in astro config (#4138)
* make remark-rehype config available in astro.config.mjs

* add test for remark-rehype config, checks that footnotes can be translated

* update lockfile to take the added test into account

* omit handlers and unkownHandler from the RemarkRehype type

* define RemarkRehype with proper references to the handler and handlers types

* formatting

* changeset

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2022-08-25 16:30:16 -04:00
Matthew Phillips
cd154e447b
Make Astro.url conform to build.format during the build (#4352)
* Make Astro.url conform to build.format during the build

* Adding a changeset

* Better implementation

* fix some stuff that tests failed on

* Add docs

* Change to minor

* account for empty path
2022-08-25 15:20:59 -04:00
Erika
77ce6be30c
Add template tsconfigs for users to extend from (#4439)
* Add tsconfig templates to extend from

* Add changeset

* Right order for assign parameters

* Add tsconfigs to export map
2022-08-25 15:15:27 -04:00
Aleksander Heintz
fcc36ac908
Make astro package play nice with node16 module resolution (#4182)
* Make astro package play nice with node16 module resolution

Projects using node16 module resolution in typescript uses the new
exports and imports configuration from typescript to find definition
files. This mirrors how nodejs resolves the files. If a package contains
an exports map in the package.json, typescript will ignore the "types"
field (not sure how it plays with typesVersions). This moves the typings
hirearchy of definition files into the same hierarchy that astro
produces output files in, so that typescript can discover them.

Fixes: #4172

* Add changeset

* Reorder export keys

* Update paths inside .d.ts files

Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-08-25 14:57:11 -04:00
Matthew Phillips
243525b156
Add changeset for @astrojs/react minor (#4478) 2022-08-25 14:56:10 -04:00
Matthew Phillips
1aa5208cbe
Enter prerelease mode for 1.1 (#4477) 2022-08-25 14:50:26 -04:00
Fred K. Bot
0b66ff39b8
[ci] release (#4453)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-25 12:00:17 -04:00
Erika
47e71ae8f8
Added more clarification around using Astro.slots.render (#4456)
* Add an error message for when something that's not an array is passed to Astro.slots.render

* Add changeset

* Add more details
2022-08-25 11:42:27 -04:00
Matthew Phillips
78334b9765
Revert "Fix invalid hook usage for exports (#4385)" (#4475)
* Revert "Fix invalid hook usage for exports (#4385)"

This reverts commit 8164fa6f1a.

* Adding a changeset
2022-08-25 11:42:02 -04:00
Matthew Phillips
9490f0e223
Include styles imported by hoisted scripts (#4457)
* Include styles imported by hoisted scripts

* Add changeset

* remove unused imports
2022-08-25 11:14:22 -04:00
Bjorn Lu
467108730e
Remove optional chaining in astro-island (#4473) 2022-08-25 22:01:22 +08:00
kagankan
8a2d6958f1
Fix load base option in build (#4469) 2022-08-25 09:35:28 -04:00
Bjorn Lu
aa555932be
Support vite.build.cssCodeSplit: false option (#4458) 2022-08-25 16:34:13 +08:00
Bjorn Lu
a38a568299
Fix incorrect css test (#4451) 2022-08-24 22:11:42 +08:00
Bjorn Lu
85646918ac
Refactor CSS preprocess and HMR (#4422) 2022-08-24 21:06:48 +08:00
Fred K. Bot
5427e89491
[ci] release (#4431)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-23 15:27:10 -04:00
Ben Holmes
df4e999284
Add logs for long-running integration hooks (#4445)
* feat: basic logging for long astro:build:done hooks

* feat: add long time msg to all build hooks

* feat: use logger for long time msg

* chore: changeset
2022-08-23 14:07:09 -04:00
Matthew Phillips
27ac6a03a1
Use CSS depth to sort CSS in production (#4446)
* Use CSS depth to sort CSS in production

* Adds a changeset
2022-08-23 13:26:49 -04:00
Ben Holmes
adb2079796
Fix MDX style imports when layout is not applied (#4443)
* fix: add "astro.needsHeadRendering" to MDX

* test: style imports in pages without layout

* chore: changeset
2022-08-23 13:25:35 -04:00
Erika
ca0c7e8b83
Allow string as a valid value for the target attribute (#4441) 2022-08-23 11:39:02 -03:00
Bjorn Lu
baa2ddd010
Warn hydration directive for Astro components in JSX (#4330)
* Warn hydration directive for Astro components in JSX

* Add changeset

* Better comment
2022-08-23 10:38:31 -04:00
Ben Holmes
dc42f2c00f
Fix astro add @example-org/integration (#4430)
* fix: parse third-party org names

* chore: changeset
2022-08-23 10:09:39 -04:00
Matthew Phillips
f40065f510
Ensure index pages are generated on paginated results (#4426)
* Ensure index pages are generated on paginated results

* Changeset
2022-08-23 08:47:20 -04:00
Kiril Shevchuk
8164fa6f1a
Fix invalid hook usage for exports (#4385)
* Add proper support functional components exports

* Add changeset

* Add support for `export default X`
2022-08-23 08:46:51 -04:00
Cameron McEfee
b2e976f39c
fix (core): allow falsy values in astro config integrations arrays (#4427)
* allow falsy values in astro config integrations arrays

* add changeset
2022-08-23 08:23:08 -04:00
Ben Holmes
a2414bf59e
Improve MDX glob perf - move Layout to async import (#4428)
* fix: move layout to async import

* chore: changeset

* docs: clarify async import
2022-08-22 18:18:30 -04:00
Fred K. Bot
c8d0fa4c4e
[ci] release (#4425)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 16:53:44 -04:00
Fred K. Bot
457e559cd5
[ci] release (#4363)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-22 15:46:46 -04:00
Tony Sullivan
579e2daf8d
[@astrojs/image] Handle query params in remote image URLs during SSG builds (#4338)
* fix: SSG builds should remove query params when building local image files

* chore: add changeset

* handling an edge case related to stripping extensions from a filename
2022-08-22 19:45:34 +00:00
Tony Sullivan
c4af8723bd
[@astrojs/image] adds a logger to the the image integration (#4342)
* WIP: adding a console logger that respect vite.logLevel

* adds an optional prefix for messages

* remove temporary debug log

* typo fix

* cleaning up log syntax

* fixing logger whitespace

* adding README docs

* test: disable integration logging in tests

* chore: add changeset
2022-08-22 19:13:19 +00:00
Fred K. Schott
7310e8a178
add an alpine integration and update example (#4406) 2022-08-22 14:25:57 -04:00
Fred K. Schott
a70f69a06c
refactor the JSX plugin to improve performance (#4405) 2022-08-22 14:25:09 -04:00
Ben Holmes
7820096e1b
fix: correctly add react-dom alias to Vercel edge (#4421)
* fix: correctly add react-dom alias to vercel edge

* chore: changeset
2022-08-22 11:46:02 -04:00
Bjorn Lu
39088e11db
Bump Vite to 3.0.9 (#4415) 2022-08-22 10:58:50 -04:00
Matthew Phillips
5e82f6c245
Fix race condition with directive definitions (#4375) 2022-08-22 10:39:16 -04:00
Bjorn Lu
77b068086d
Preserve all error stack lines (#4364) 2022-08-18 14:36:31 +08:00
Chris Swithinbank
beed20be4a
Provide correct MIME type for dynamic endpoint routes in dev (#4356) 2022-08-17 20:07:14 +02:00
Bjorn Lu
500332a426
Refactor static build config merge (#4344) 2022-08-17 23:24:14 +08:00
Joseph Lozano
aa5118e854
Fallback to undefined rather than false when resolving CLI flags (#4362) 2022-08-17 15:47:38 +08:00
Fred K. Bot
1de82f0f78
[ci] release (#4333)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-08-16 10:14:44 -04:00