Commit graph

1036 commits

Author SHA1 Message Date
Tony Sullivan
d372d29ef8
Fix: Only trim /1 from the canonical URL for paginate() routes (#3393)
* only trim /1 from canonical URLs for paginate() routes

* chore: fixing eslint warning

* chore: add changeset

* typo: copy paste error

* adding a test validation error message

* verifying canonical for all three test routes

* TEMP: extra test logging to track down the failure

* TEMP: additional test logging to see what the failing CLI messages are

* TEMP: digging deeper, it's getting stuck on port 3000 is taken

* TEMP: why is it breaking when LOCAL isn't logged?

* TEMP: still digging, strange how consistent this failure is

* finally found it - the new test wasn't closing the dev server...
2022-05-20 20:07:30 +00:00
Tony Sullivan
6373508458
Enforcing routing priority during production builds (#3407)
* WIP: have a few test failures to track down

* WIP: still a few failures to fix

* WIP: fixes the issue of dynamic routes stepping on static routes

* Resolve route priority before building routes for `getStaticPaths()`

* chore: adding comments explaining why this filter is needed

* chore: adding changeset

* got too fancy with the test suite, these routes weren't valid

* simplifying the test cases

* TEMP: is this test breaking my CI run?

* Revert "TEMP: is this test breaking my CI run?"

This reverts commit 291af2a1b6f075ebfc74002886e43110731b3e1b.

* slots-preact didn't list @astrojs/preact as a dep

* reverting copy/paste error
2022-05-20 19:58:59 +00:00
Ben Holmes
fb5572bebd
Fix: components in imported markdown (#3398)
* test: add with-components to astro-markdown fixture

* fix: markdown pathname with /@fs prefix

* feat: add loadMetadata helper for md

* feat: fix components in Astro.glob results!

* fix: md import path

* Revert "feat: add loadMetadata helper for md"

This reverts commit 76cf96f4be3d0e19589f84025c0131352d0b6cc8.

* fix: add back $$loadMetadata helper

* feat: add second comp framework to md test

* chore: core/render/dev lint

* chore: changeset

* fix: short circuit if mod doesn't have metadata

* fix: skip mod graph preloading in dev

* refactor: make md metadata check recursive

* refactor: extract metadata helper to util

* fix: remove unecessary mod graph query

* fix: move md import flag to util for deno bundling issue

* fix: remove 'dev' mode from test utils build

* feat: add global hashset for seen metadata

* refactor: flip Promise.all to for await for perf!

* Revert bc I was wrong! "refactor: flip Promise.all to for await for perf!"

This reverts commit da8a6873f5.
2022-05-20 15:03:21 -04:00
Nate Moore
b26d48d275
Defer head injection until renderPage (#3408)
* fix(#3195, #3197): only perform head injection for renderPage

* chore: add changeset
2022-05-19 15:21:48 -05:00
github-actions[bot]
4dfd341928
[ci] release (#3405)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-19 13:35:19 -04:00
Matthew Phillips
4007aebc6a
Provide a good error message when loading react spectrum (#3406)
* Provide a good error message when loading react spectrum

* Adds a changeset
2022-05-19 13:12:04 -04:00
Nate Moore
d34859d750
Expose file and url for Astro files (#3385)
* feat: update test

* feat: return `file` and `url` for astro files

* chore: add changeset

* fix: use private names $$file and $$url

* test: update markdown test

* chore: update fileId logic to strip query params
2022-05-19 10:49:14 -05:00
Matthew Phillips
0c9f770e8a
Include server CSS in the manifest assets (#3402)
* Include server CSS in the manifest assets

* Adds a changeset
2022-05-19 08:38:27 -04:00
github-actions[bot]
b330c5b72e
[ci] release (#3400)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-18 21:36:32 +00:00
Tony Sullivan
0d3c673dd9
Fix: Support .html requests in dev (#3401)
* WIP: this regex should handle .html as well

* much simpler!  Just fix the req.url, don't touch the manifest

* only handle .html requests when config.build.format === 'file'

* chore: add changeset
2022-05-18 20:09:23 +00:00
Matthew Phillips
2939be5f2d
Allow overriding build vite config options (#3392)
* Allow overriding build vite config options

* Adds a changeset

* Test svelte

* Move plugins down

* Assign after for the client too

* Spread output options on manually

* Remove .only
2022-05-18 15:11:40 -04:00
Ben Holmes
1bf12260af
Fix: update "building for SSR" messaging on SSG (#3399)
* fix: update "building for SSR" messaging on SSG

* chore: changeset
2022-05-18 11:45:23 -04:00
Nate Moore
cf8015eaa2
fix: locale handling for logger (#3391)
* fix(#3309): use system default locale

* fix(#3309): use system default locale in create-astro

* test: add locale regression tests

* test: add i18n regression test
2022-05-18 10:45:09 -05:00
github-actions[bot]
f54072bd3f
[ci] release (#3378)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-17 11:50:18 -04:00
Matthew Phillips
4d00473dbd
Error recovery test and more (#3388)
* Add test to verify errors are recovered from

* Fix nested style components not be added in dev on initial load

* Adds a changeset
2022-05-17 11:43:49 -04:00
Tony Sullivan
387ed0cfa1
Deprecate @astrojs/turbolinks (#3383)
* deprecating the Turbolinks integration

* chore: add changeset
2022-05-16 18:08:49 -05:00
Sarah Etter
43d922277a
Update out directories for Netlify Functions (#3381)
* Change out directories for Netlify Functions

* Changeset

* Update test
2022-05-16 14:44:21 -04:00
Matthew Phillips
0259d7658b
Fix for loading markdown pages with spaces in the name (#3379)
* Fix for loading markdown pages with spaces in the name

* Adds a changeset
2022-05-16 14:44:15 -04:00
Juan Martín Seery
9d01f93b1c
feat(vercel): remove nodeVersion (#3368)
* Remove `nodeVersion`

* Changeset
2022-05-16 13:34:46 -05:00
Mark Leung
31b0bc87a4
Add options to partytown integration (#3380)
* Add options to partytown integration

* Update doc
2022-05-16 13:32:05 -05:00
Daniel Vivar
fe61e469b2
test(@astrojs/lit): adding tests (#3375)
* test(@astrojs/lit): adding tests

* changeset
2022-05-16 12:16:30 -04:00
Sarah Etter
e1294c422b
Netlify outdirectory (#3377)
* Change dist directory, and functions out directory

* Add changeset

* update docs

* Fix changeset
2022-05-16 11:58:31 -04:00
Matthew Phillips
b1230152ff
Support alias use with hydration scripts (#3376)
* Support alias use with hydration scripts

* Adds a changeset

* Updated lockfile
2022-05-16 11:37:51 -04:00
github-actions[bot]
2e414c3e70
[ci] release (#3356)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 16:11:35 -06:00
Juan Martín Seery
945f5c68e8
fix(vercel): added type definitions (#3355)
* Added missing types

* Changeset
2022-05-12 16:59:07 -05:00
github-actions[bot]
cedb9a2105
[ci] release (#3334)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-12 14:48:58 -06:00
Juan Martín Seery
8685506174
fix: vite types (#3352)
* Re-export vite types and added them to zod schema

* Removed casted typed

* Changeset
2022-05-12 13:55:29 -03:00
Fred K. Schott
e48aa2fd1e
add error hints (#3350)
* add error hints

* chore: add changeset

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-12 10:29:59 -06:00
Ben Holmes
678c2b7523
Fix: React - Use "createRoot" instead of "hydrateRoot" for client:only (#3337)
* feat: pass "client" directive to clientEntrypoints

* refactor: remove hydration warning suppression react 17

* feat: remove hydration warning suppression react 18

* chore: changeset

* fix: change metadata to options bag
2022-05-12 10:05:55 -06:00
Tony Sullivan
b463ddb3ce
Resolve components by module ID during compilation (#3300)
* WIP: adding test coverage

* test fixes

* moving the shared lib up a directory to reproduce the bug

* fix: transform with the module ID instead of parsing the filepath

* adding the shared lib to the workspaces list

* fix: client-only assets now get the full URL from vite

* why is this needed for windows?

* WIP: using /@fs to handle windows filepaths

* fix: remove /@fs from hoisted script imports

* nit: removing unused imports

* fix: strip off the path root when mapping client:only styles

* had to reverse the `/@fs` handling to work on windows and unix

* chore: adding comments to explain the fix

* chore: adding changeset
2022-05-12 10:04:01 -06:00
Nate Moore
43e411eed8
Exclude node-fetch from vite.optimizeDeps (#3348)
* fix: exclude `node-fetch` from vite.optimizeDeps

* chore: format
2022-05-11 15:26:01 -06:00
Juan Martín Seery
114bf63e11
refactor(vercel): Build Output API v3 (#3216)
* Removed ignores

* Migration to v3

* More changes

* Remove legacy redirects

* Fail when there is no ENABLE_VC_BUILD

* Fix edge

* Updated readme

* Changeset

* Added static mode

* Updated documentation

* Updated shim

* Made edge work!

* Updated changeset

* Ensure empty dir

* Fixed redirects for dynamic paths

* Removed extra declaration

* Splited imports

* Updated readme

* Fixed some urls

* Deprecated shim!

* [test]: Vercel NFT

* Beautify

* Edge bundle to node 14.19

Vercel runs 14.19.1 (I've checked it manually)

* Re-added shim (#3304)

* Added `node:` prefix

* Use the same bundling as Deno for Edge

* Remove esbuild

* Fixed shim

* Moved nft

* Updated changeset

* Added note about Edge

* fix typo

* Added support for Node 16 (vercel/vercel#7772)
2022-05-11 15:10:38 -06:00
Matthew Phillips
46cd8b9eb4
Fix APIRoute type (#3344)
* Fix APIRoute type

* Adds a changeset

* Update usage of the two API route signatures
2022-05-11 15:07:40 -06:00
Ben Holmes
1a5335ed9a
[create-astro] Finalize developer experience... with gradients 🚀 (#3313)
* wip: port gradient helpers from sandbox ideas

* feat: wire up rocket gradient 🚀

* feat: wire up rocket gradient on install step

* refactor: update "next steps" wording

* deps: add chalk (for rendering gradient)

* chore: changeset

* chore: clean up sstray template string
2022-05-11 10:38:42 -06:00
Matthew Phillips
f40705d906 Adding a changeset for solidjs error swallowing fix 2022-05-11 10:25:24 -06:00
Fred K. Schott
ce6d798282
Fix peer deps issue in svelte and vue plugins (#3333)
* fix peer deps issue

* add changeset

* rebuild lockfile
2022-05-11 09:23:32 -06:00
Matthew Phillips
ccea6a0a1a
HMR hoisted scripts (#3336)
* HMR hoisted scripts

* Add to the dep graph

* Remove example change

* Adds changeset

* Fix markdown test
2022-05-11 09:23:11 -06:00
Pascal Schilp
352fc3166f
Fix/netlify edge redirects (#3342)
* fix: create redirects file for netlify edge adapter

* chore: changeset

* chore: distinguish between edge/regular
2022-05-11 09:13:23 -06:00
Pascal Schilp
3dc68e148e
fix: inject script for ssr mode (#3339)
* fix: inject script for ssr mode

* chore: changeset
2022-05-11 08:53:53 -06:00
Tony Sullivan
e22f7364ce
Fixes custom 404 pages in astro dev (#3331)
* Fixing pathname matching for custom 404 pages

* fixes custom 404 routes in dev

* refactor: removing node path dependency

* refactor: using core's path utils
2022-05-10 21:05:30 +00:00
Fred K. Schott
d04928e8f2
rename dts to ts file (#3332)
* rename dts to ts file

* Create new-carrots-cough.md

* add back missing types
2022-05-10 14:54:01 -06:00
github-actions[bot]
4639a048d7
[ci] release (#3308)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-06 09:28:57 -04:00
Matthew Phillips
8021998bb6
Add new configKeys prop for telemetry (#3299)
* Add new configKeys prop for telemetry

This property lets us known which AstroConfig keys are being used, for anonymous telemetry.

* Adds a changeset

* Restructure how the telemetry event is shaped
2022-05-06 09:22:27 -04:00
Tony Sullivan
19e1686b87
Allowing Vite to handle base config for deploying to subpaths (#3178)
* Revert "Improvements to build and dev when building for subpaths (#3156)"

This reverts commit 637919c8b6.

* letting Vite handle base paths

* test updates to expect Astro.request.url to no longer include subpaths

* bringing back the fix for including subpaths in injects scripts and styles

* fixing the static-build test to handle subpaths for injected CSS

* fixing asset import URLs when using base subpaths

* chore: fixing typo in the comments

* Astro needs to manage base in dev to maintain Astro.request.url

* fix: reverting dev routing tests to expect existing behavior

* reverting Astro global test to verify existing behavior

* chore: adding changeset

* test: update static-build tests to verify the subpath is used in asset imports
2022-05-05 22:39:16 +00:00
github-actions[bot]
f67832ebf7
[ci] release (#3307)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 18:21:27 -04:00
Ben Holmes
0efaf110fc
Fix: make RSS canonicalUrl required (#3301)
* chore: make canonicalUrl required

* docs: explain env variable on required canonicalUrl

* refactor: rename "canonicalUrl" to "site"

* chore: changeset
2022-05-05 18:03:25 -04:00
github-actions[bot]
9b98633cc8
[ci] release (#3302)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 16:27:40 -04:00
Matthew Phillips
3d901ca59d
Revert "refactor: remove serialize-javascript (#3278)" (#3304)
* Revert "refactor: remove serialize-javascript (#3278)"

This reverts commit 13c1f5ff6b.

* Adds a changeset
2022-05-05 15:56:29 -04:00
Matthew Phillips
61e1a267a8
Implement the Astro.response RFC (#3289)
* Implement the Astro.response RFC

* Adds a changeset

* Mark Astro.response.headers as readonly
2022-05-05 12:21:53 -04:00
github-actions[bot]
d0a4064d80
[ci] release (#3293)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-05 09:56:45 -04:00
Matthew Phillips
6643a3931d
Conform to API route signature (#3272)
* Conform to API route signature

* Rename to API route

* Update ssr test

* Update packages/astro/test/fixtures/ssr-dynamic/src/pages/api/products/[id].js

Co-authored-by: Ben Holmes <hey@bholmes.dev>

* Adds a changeset

* Make PR review changes

Co-authored-by: Ben Holmes <hey@bholmes.dev>
2022-05-04 14:55:37 -04:00
github-actions[bot]
9b6a2e2d87
[ci] release (#3288)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-04 08:59:10 -04:00
Pascal Schilp
e5f6de4edb
feat: expose pages (#3286)
* feat: expose pages

* chore: changeset

* fix: build
2022-05-04 08:27:51 -04:00
github-actions[bot]
58862fbf76
[ci] release (#3284)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 17:14:26 -07:00
Fred K. Schott
82345fdd54
Create silent-hornets-double.md 2022-05-03 17:09:57 -07:00
Fred K. Schott
1032e450cc Revert "[ci] release (#3279)"
This reverts commit 9fb2c4744c.
2022-05-03 17:04:44 -07:00
github-actions[bot]
9fb2c4744c
[ci] release (#3279)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 18:33:18 -04:00
Tony Sullivan
9ad8aefdd7
Turbolinks: clean up injected scripts and styles on page navigation (#3283)
* client hydration scripts should be removed before navigation

* chore: adding a changeset

* also cleanup injected styles on page navigation
2022-05-03 22:30:46 +00:00
Ben Holmes
fbfb6190ab
Feat: @astrojs/rss package! (#3271)
* feat: introduce @astrojs/rss package!

* feat: add config "site" to env variable

* docs: add @astrojs/rss readme

* chore: changeset

* fix: testing script

* deps: add mocha, chai, chai-promises

* tests: add rss test!

* feat: add canonicalUrl arg

* chore: remove console.log

* fix: remove null check on env (breaks build)

* docs: stray `

* chore: update error message to doc link

* chore: remove getStylesheet

* docs: update stylesheet reference
2022-05-03 18:26:13 -04:00
Juan Martín Seery
e2a037be94
refactor: internalize shorthash (#3281)
* Shorthash has been internalized

* Remove shorthash

* Optimized shorthash

* Changeset

* Added license
2022-05-03 19:25:35 -03:00
Juan Martín Seery
13c1f5ff6b
refactor: remove serialize-javascript (#3278)
* Replaced serialize-javascript with devalue

* Changeset
2022-05-03 17:55:12 -03:00
github-actions[bot]
1de48ce4eb
[ci] release (#3277)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 15:50:21 -04:00
Fred K. Schott
6d5ef41b1e
fix cannot exit astro bug (#3276)
* fix cannot exit astro bug

* Create loud-tigers-draw.md
2022-05-03 15:29:34 -04:00
Matthew Phillips
8f8f05c1b9
Revert "Consolidate inline hydration scripts into one (#3244)" (#3275)
* Revert "Consolidate inline hydration scripts into one (#3244)"

This reverts commit 48a35e6042.

* Fix types

* Adds changeset
2022-05-03 15:18:17 -04:00
Pascal Schilp
adada1ba01
Feat/ssr manifest (#3262)
* feat: expose pagesVirtualModuleId

* feat: add astro:build:ssr hook

* fix: missing import for pagesVirtualModuleId

* test: fix tests

* refactor: move exports to index.ts

* chore: changeset
2022-05-03 10:55:25 -04:00
github-actions[bot]
8b17d3ebcf
[ci] release (#3243)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-05-03 09:16:57 -04:00
Matthew Phillips
f76038ac7d
Telemetry (#3256)
* feat: add @astrojs/telemetry

* feat: add telemetry events, add queueing system

* feat(telemetry): record CLI events

* chore: add note

* feat: support generic TELEMETRY_DISABLED env var

* Fix test script

* shim telemetry in tests

* Shim telemetry in other commands

* Stub telemetry in the memory leak test

* Disable telemetry in smoke tests

* Adds a changeset

* Run the formatter

* few updates

* Include config keys

* Add shallow viteKeys array:
:

* Add vite keys and tests

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-05-03 09:07:28 -04:00
Matthew Phillips
48a35e6042
Consolidate inline hydration scripts into one (#3244)
* Consolidate inline hydration scripts into one

* Adds changeset

* Update custom element test

* Provide a better name for tracking if we have added a hydration script
2022-05-03 09:07:16 -04:00
Juan Martín Seery
de123b28b3
refactor(markdown): removed rehype-slug in favor of our own implementation (#3234)
* Moved types arround

* Removed `rehype-slug` in favor of our own implementation

* Changeset

* Removed rehype-slug from examples

* Remove rehype-slug from tests

* Updated reference

* rehypeCollectHeaders is a function again

* Reverted rehype-slug removes

* Re-added rehype-slug to reference
2022-04-29 21:07:09 -03:00
github-actions[bot]
9984f8ea24
[ci] release (#3242)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 22:30:12 +00:00
Tony Sullivan
d25dc4c448
Fixes variable definitions in <style define:vars> (#3241)
* adding SSRResult.styles back to the rendered head

* adding test for define:vars in static build

* chore: adding changeset
2022-04-29 21:15:56 +00:00
github-actions[bot]
f244b1c6e4
[ci] release (#3238)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 15:16:18 -04:00
Ben Holmes
c8f5fa35c4
Feat: [create astro] git step (#3227)
* feat: add git init step

* fix: update unit tests

* feat: simplify next steps for copy pasteability

* docs: add clarifying comment on test stdin spoofing

* docs: remove "empty" from git repo message

* fix: update git step text for test

* fix: remove redundant --dryrun flag

* refactor: simplify next steps with &&

* chore: changeset
2022-04-29 11:45:43 -04:00
github-actions[bot]
ed7aba2e8b
[ci] release (#3229)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-29 09:31:47 -04:00
Ben Holmes
b7cd695884
Feat: [create astro] replace component selector with "astro add" (#3223)
* feat: remove component framework selector

* feat: update templates to use "basics"

* feat: add "astro add" cli step

* tests: astro add step

* fix: reset env for pnpm tests

* fix: update install step test

* chore: remove "frameworks" step from tests

* deps: remove node-fetch from create-astro

* chore: changeset

* fix: use "preferLocal" for astro add command

* refactor: remove POSTPROCESS_FILES

* feat: add --yes flag to simplify astro add

* feat: bring back minimal option as "completely empty"
2022-04-27 20:58:18 -04:00
github-actions[bot]
7937852395
[ci] release (#3215)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-27 16:23:53 -04:00
Juan Martín Seery
3d6e382b58
fix: replaced deprecated String.substr with String.slice (#3224) 2022-04-27 15:43:43 -03:00
Ben Holmes
f23d6c528e
chore: changeset (#3221) 2022-04-27 10:14:07 -04:00
Ben Holmes
00fc1326ed
Refactor/clean create astro logs (#3212)
* refactor: simplify dir error log to avoid wrapped text

* refactor: remove redundant "issue" callout

* chore: changeset

* chore: update tests for new dir log
2022-04-26 20:38:31 -04:00
github-actions[bot]
8d8433ee50
[ci] release (#3182)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-26 16:49:09 -04:00
Juan Martín Seery
eaad17694f
fix(vercel): trailingSlash fix for non-html pages (#3185)
* fix(vercel): `trailingSlash` fix for non-html pages

* Changeset
2022-04-26 16:00:26 -04:00
Matthew Phillips
22cb4b7b32
Prevent watcher from running during the build (#3207)
* Prevent watcher from running during the build

* Adds a changeset
2022-04-26 15:59:31 -04:00
Erika
fdd607c575
Add missing is:raw in AstroBuiltinAttributes (#3209) 2022-04-26 15:26:20 -04:00
Ben Holmes
7a61977db1
Feat: support astro add without npm installing (#3183)
* deps: update to latest proload

* feat: avoid parsing config on resolveConfigUrl

* chore: changeset

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

* fix: bump proload

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-26 14:35:44 -04:00
Erika
e4bb2767d5
Add Astro attributes to svg elements (#3205) 2022-04-26 11:29:25 -04:00
Ben Holmes
38e5e9e982
Feat: create astro add install step (#3190)
* feat: add instlal step with pkg manager detection

* feat: add package emoji for style points

* feat: update next steps to match pkg manager

* refactor: extract some create-astro test utils

* refactor: extract promp msgs to utils

* chore: add install step tests

* chore: changeset

* fix: remove directory test skip

* fix: unset env variables after install step test

* deps: add execa to create-astro

* refactor: use execa for install step

* chore: remove old comment

* fix: rework install step test for node 14?

* chore: remove "politely stolen" footnote

* temp: show stdout dialog

* feat: remove debugging logs, add dryrun flag for testing

* chore: more stray logs

* fix: remove rmdir
2022-04-26 11:24:24 -04:00
Juan Martín Seery
1a86e77c37
fix(markdown): file.url fixes (#3198)
* fix(markdown): file.url fixes

* Added tests

* Changed the default of `base` from `./` to `/`

* Make the url work with subpath

* Changeset

* Forgot to change this comparison
2022-04-25 13:38:46 -03:00
Juan Martín Seery
205d1f07f1
feat(markdown): Improved types (#3191)
* feat(markdown): Improved types

* More MarkdownMetadata
2022-04-24 16:13:33 -07:00
Fred K. Schott
cafd36ef77
Create angry-cheetahs-walk.md 2022-04-22 14:26:04 -07:00
Ben Holmes
2b702d6aba
Fix: astro add generating config outside project root (#3186)
* fix: astro.config generated outside project dir

* chore: changeset
2022-04-22 15:17:16 -04:00
Ben Holmes
75dab3ca3d
chore: changeset (#3187) 2022-04-22 15:10:15 -04:00
Tony Sullivan
ce9a61e9fc
Support custom svelte compiler options in @astrojs/svelte (#3181)
* updating svelte integration to allow custom user config

* test: adding a test to verify that svelte options are piped through the integration

* updating the README with docs on overridding svelte options

* chore: adding changeset

* fix: copy/paste bug in test validation

* removing temporary debug scripts
2022-04-22 17:59:20 +00:00
Juan Martín Seery
725c44a762
feat(vercel): Support trailingSlash (#3176) 2022-04-22 10:03:53 -04:00
Matthew Phillips
19667c45f3
Netlify Edge: forward requests for static assets (#3170)
* Netlify Edge: forward requests for static assets

* Adds a changeset

* Don't run edge tests, yet
2022-04-22 10:03:25 -04:00
github-actions[bot]
f3586cff41
[ci] release (#3173)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 16:00:18 -05:00
github-actions[bot]
84939b2ff2
[ci] release (#3172)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 15:37:18 -05:00
Ben Holmes
7c49194ca2
Feat: [create astro] add directory prompt (#3168)
* wip: add prompt for directory with validation

* feat: wire up dir response to cwd

* feat: improve error handling on non-empty dirs

* fix: update test helpers to execaSync

* chore: add .skipped to old tests for clarity

* deps: add mocha and chai to create-astro

* feat: add directory step test with fixture

* feat: update turbo to run create-astro tests again 🥳

* chore: changeset
2022-04-21 16:36:48 -04:00
Nate Moore
908fffb5ec
chore: upgrade compiler (#3171) 2022-04-21 15:26:14 -05:00
Nate Moore
70263cf748
fix(preact): use updateConfig hook (#3166) 2022-04-21 15:13:09 -05:00
github-actions[bot]
bd66527e7d
[ci] release (#3169)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 14:08:37 -04:00
Tony Sullivan
637919c8b6
Improvements to build and dev when building for subpaths (#3156)
* `astro build` should include the `base` provided in astro config

* test: updating build test to expect the base path in links/scripts

* ignore the default "base" value when building links/scripts

* fix: handling config that provides a base but no site

* fix: config.site was being ignored since it's a URL not a string

* hack: handle base path in dev for /public assets

* fix: dev redirect needs to ignore base default of ./

* fix: extra safety checks for the base path redirect

* refactor: simplifying it to remove the regex

* one last safety check - only redirect GET and use a 302 status

* fix: lost the leading slash when redirecting

* nit: adding comments to the test explaining how base is verified

* Remove extra console.log

* Adds a changeset

Co-authored-by: unknown <matthew@skypack.dev>
2022-04-21 14:03:05 -04:00
github-actions[bot]
0406bdc35b
[ci] release (#3165)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 12:19:52 -04:00
Matthew Phillips
ae9ac5cbdc
Fixes using React.lazy and Suspense (#3160)
* Revert "Revert "Fixes using React.lazy and Suspense""

This reverts commit e621c2f7d3.

* Adds a changeset

* Fix ts errors

* Remove netlify metadata folder
2022-04-21 12:10:06 -04:00
github-actions[bot]
3cdc5f1bfb
[ci] release (#3161)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-21 11:34:03 -04:00
Matthew Phillips
e85b16e2b3
Make 'lit' always be bundled in SSR (#3164)
* Make 'lit' always be bundled in SSR

* Adds a changeset
2022-04-21 11:12:21 -04:00
Nate Moore
37a7a8347c
Improved HMR (#3138)
* WIP: improved HMR

* fix(hmr): improve hmr filtering to avoid full reloads

* chore: add changeset
2022-04-20 16:46:40 -05:00
github-actions[bot]
fce98d5552
[ci] release (#3151)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 22:45:07 -07:00
Fred K. Schott
0c6bbee4c9
Create neat-mails-peel.md 2022-04-19 22:25:47 -07:00
Fred K. Schott
08715b8c15
Delete mighty-teachers-fail.md 2022-04-19 22:21:01 -07:00
Ben Holmes
9ba1f4f825
Fix: markdown JSX expression inconsistencies (#3152)
* fix: remove micromark-extension-mdx-expression to unbreak JSX expressions

* chore: changeset

* deps: update lockfile

* tests: jsx expressions in markdown
2022-04-19 16:37:11 -04:00
hippotastic
5e28b79095
Fix location of SolidJS pre-hydration code (#3140)
* Run before hydration instead of inlining a script after each component
2022-04-19 13:37:27 -05:00
Ben Holmes
0247b54270
Refactor: remove all legacy build logic from codebase (#3141)
* refactor: remove legacy build flag

* refactor: remove legacy style maps

* chore: changeset

* refactor: nuke vite-plugin-build-html

* deps: remove parse5

* tests: restore user provided doctype support!

* deps: remove @web/parse5-utils

* deps: change srcset-parse to dev dep

* chore: remove unused utils

* refactor: remove unused style mapping

* unrelated fix: add .test to astro-markdown-css

* refactor: remove unused astro-style with test update

* chore: remove unused buildTime var
2022-04-19 13:52:15 -04:00
github-actions[bot]
9e00f6d546
[ci] release (#3149)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 13:30:27 -04:00
Matthew Phillips
05cf1a5067
Adjustments for Netlify Edge Functions (#3150)
* Adjustments for Netlify Edge Functions

* Adds a changeset
2022-04-19 13:13:52 -04:00
Tony Sullivan
44e294c9cb
Support custom vue compiler options in @astrojs/vue (#3143)
* adds support for passing options to @vitejs/plugin-vue

* updating vue integration README with options details

* adding a tests for custom vue compiler options

* chore: adding changeset
2022-04-19 16:31:32 +00:00
github-actions[bot]
95d0db5a44
[ci] release (#3120)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-19 11:30:34 -04:00
Matthew Phillips
b287a9e4f3 Remove test packages from changesets 2022-04-19 11:27:01 -04:00
Matthew Phillips
4cf54c60aa
Netlify Edge function support (#3148)
* Netlify Edge function support

* Update readme with edge function information

* Adds a changeset

* Disable running edge function test in CI for now
2022-04-19 11:22:15 -04:00
Fred K. Schott
ef198ff835
handle diff symbols in shiki (#3108)
* handle diff symbols in shiki

* Create violet-cups-glow.md
2022-04-18 22:36:42 -07:00
Juan Martín Seery
4ac3797344
feat(vercel): added warning when ENABLE_FILE_SYSTEM_API=1 is missing (#3139)
* Added warning in buildtime

* Updated readme

* Changeset
2022-04-18 19:19:46 -03:00
Ben Holmes
facf8016e2
Fix: show correct error log on 5xx error (#3137)
* fix: show correct error log on 5xx error

* chore: changeset
2022-04-18 18:12:30 -04:00
Ben Holmes
44bacd2011
Fix: component styles within imported markdown files (#3116)
* fix: replace markdown path prefix with suffix flag

* fix: avoid non-encoded colons for flag

* fix: remove needless ?

* fix: dev server load order

* fix: production build crawl dynamic imports

* fix: remove  unused virtual_module_id const

* fix: remove unsafe "!" on getmodbyid

* fix: remove needless @id path check

* fix: add list of SSR-able file extensions

* docs: virtual_mod_id change

* fix: support id prefix on resolved ids

* fix: switch to ?mdImport flag to resolve glob imports

* tests: imported md styles for dev and build

* chore: changeset
2022-04-18 15:44:42 -04:00
Tony Sullivan
394ab90547
Perf: reuse Shiki highlighters per theme/lang (#3130)
* reuse Shiki highlighters per theme/lang

* chore: adding changeset
2022-04-18 16:30:19 +00:00
Chris Swithinbank
9e35758ec3
Roll back to React 17 in docs template (#3129)
The docs example template includes Algolia’s Docsearch components to provide a search bar but this doesn’t support React 18 yet, so will error when dependencies are being installed.

See https://discord.com/channels/830184174198718474/965413318678425600
2022-04-18 10:09:57 -04:00
Matthew Phillips
e5383cd357
Handle static file serving in Deno adapter's start command (#3121)
* Handle static file serving in Deno adapter's start command

* Adds a changeset

* Ignore a .ts imort
2022-04-15 17:01:33 -04:00
Juan Martín Seery
b0ba22c5ff
fix(vercel): CJS bundle fix (#3051)
* fix(vercel): CJS bundle fix

* Changeset
2022-04-15 15:58:57 -04:00
Tony Sullivan
e0f838ca39
Fix/numeric path params (#3087)
* adding support for numeric params in getStaticPaths()

* chore: adding changeset

* ignore undefined params in type validation
2022-04-15 14:16:11 -05:00
github-actions[bot]
c1336ae41c
[ci] release (#3114)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:28:42 -04:00
Matthew Phillips
1687009f31
Add client:only CSS to their pages (#3113)
* Add client:only CSS to their pages

* Adds a changeset

* Use viteID for windows
2022-04-14 12:19:03 -04:00
github-actions[bot]
254048dc82
[ci] release (#3103)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-14 15:10:29 +00:00
Matthew Phillips
4ac0d5d4e7
Support the Markdown component in SSR (#3036)
* Support the Markdown component in SSR

* Adds a changeset

* Support runtime markdown in Node.js

* Remove option from test adapter
2022-04-14 09:51:53 -04:00
Tony Sullivan
254a8f3749
Fixing bug that could lose Tailwind's default presets (#3099)
* fixing bug that could lose Tailwind's default presets

* updating integration README

* chore: adding changeset

* test: fixing the tailwind tests
2022-04-13 15:05:00 +00:00
github-actions[bot]
b23f6b1596
[ci] release (#3101)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-13 08:55:32 -04:00
Matthew Phillips
5acf77dd22
Re-enable custom element test and fix "undefined" child (#3095)
* Re-enable custom element test and fix "undefined" child

* Remove outdated comment

* Adds a changeset
2022-04-13 08:44:22 -04:00
github-actions[bot]
21926278ba
[ci] release (#3090)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-12 20:15:14 -07:00
Fred K. Schott
5316253445 add missing changeset 2022-04-12 20:08:09 -07:00
Fred K. Schott
d33e177817
handle delete resrved word (#3078) 2022-04-12 19:57:05 -07:00
Fred K. Schott
81e210e03c
fix build base bug (#3068)
* fix ssr url search params bug

* fix build base bug

* safer slash removal
2022-04-12 19:54:07 -07:00
Ben Holmes
564caf24c2
Fix: React hydration failure (#3094)
* fix: react hydration failure

* chore: changeset
2022-04-12 17:00:52 -04:00
Matthew Phillips
a5caf08e24
Allow setting multiple cookies in Netlify adapter (#3092)
* Allow setting multiple cookies in Netlify adapter

* Adds a changeset

* Set the response status code

* Add a comment on why this is needed
2022-04-12 16:50:10 -04:00
Juan Martín Seery
f665d1a250
fix(vercel): support dynamic paths (#3081)
* fix(vercel): support dynamic paths

* Changeset
2022-04-12 10:02:59 -04:00
github-actions[bot]
0966a432a8
[ci] release (#3080)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-11 19:59:32 -07:00
Juan Martín Seery
b835e285de
feat: markdown config typechecking (#2970)
* Added schemas to markdown plugin

* Added new schemas to main package

* Changesets

* typeraw

* Explaination about the weird type hack

* Added markdown.mode to config

* Added comment

* Formatted

* Moved validation to `astro` and added RemarkPlugin ad RehypePlugin

* Removed the ability to have a custom markdown renderer internally

* Fixed plugin type

* Removed unused renderMarkdownWithFrontmatter

* Added missing dependency

* Dynamically import astro markdown

* Cache import
2022-04-11 16:01:12 -07:00
Fred K. Schott
5b3464a803
fix ssr url search params bug (#3066) 2022-04-11 15:57:18 -07:00
hippotastic
9f248b0563
Make Netlify adapter actually append redirects (#3079) 2022-04-11 12:30:47 -07:00
github-actions[bot]
791a524411
[ci] release (#3064)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 21:13:11 -07:00
Fred K. Schott
815d62f151 trigger re-release changeset 2022-04-10 21:09:30 -07:00
Fred K. Schott
55c4321b25 trigger re-release changeset 2022-04-10 21:04:52 -07:00
Fred K. Schott
bb0015c8f9 trigger re-release changeset 2022-04-10 21:02:10 -07:00
github-actions[bot]
21c74e572c
[ci] release (#3061)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:15:02 -07:00
Fred K. Schott
2bb6a06ebb revert release 2022-04-10 20:11:34 -07:00
github-actions[bot]
46f02d9cf4
[ci] release (#3060)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-10 20:01:00 -07:00
Fred K. Schott
9f9189ed8e update changeset 2022-04-10 19:53:36 -07:00
Fred K. Schott
8ca5bfad1a update changeset 2022-04-10 19:44:17 -07:00
Fred K. Schott
4ab1a12481 correct changesets 2022-04-10 18:45:58 -07:00
Steve Lee
7b0fbd731e
Fix SSR static build public file copying. fixes #3016 (#3037)
* Fix SSR static build public file copying

* chore: update lockfile

* remove dirname and use URL constructor

* Cleanup test and actually test what it says it tests

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-10 18:23:17 -07:00
Fred K. Schott
a9ecefb8ac
fix our weird beta release issues (#3031) 2022-04-10 18:17:39 -07:00
Fred K. Schott
c05a544acd update tailwind integration readme 2022-04-10 18:12:34 -07:00
Fred K. Schott
732ea3881e
Create dry-candles-behave.md 2022-04-10 14:36:08 -07:00
Juan Martín Seery
982f64f69a
chore: updated esbuild (#3028)
* chore: updated esbuild

* Changeset
2022-04-10 14:33:10 -07:00
Erika
d1f292199c
Update JSDoc comments that get shown in editor (#2999) 2022-04-07 17:08:27 -04:00
github-actions[bot]
a5aea2ce56
[ci] release (beta) (#3023)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-07 15:22:47 -04:00
Matthew Phillips
4b0f27d9ff
Fixes adding set-cookie headers multiple times (#3026)
* Fixes adding set-cookie headers multiple times

* Adds a changeset
2022-04-07 15:18:08 -04:00
Matthew Phillips
7e9d82d75e
Warn when trying to access headers in SSG mode (#3021)
* Warn when trying to access headers in SSG mode

* Adds a changeset

* Warn when accessing headers at all + a test
2022-04-07 15:17:05 -04:00
Tony Sullivan
c773dcde31
Exclude any ?raw or ?url css imports when adding asset links (#3020)
* exclude any ?raw css imports when adding css asset links

* ?url imports should be ignored as well

* chore: adding changeset
2022-04-07 18:26:26 +00:00
Matthew Phillips
8c04ff1f0b
Allow an adapter to export default (#3022)
* Allow an adapter to export default

* Adds a changeset
2022-04-07 13:21:56 -04:00
github-actions[bot]
1d0c1d8977
[ci] release (beta) (#3007)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 16:40:46 -05:00
Nate Moore
25cc9218f8
fix(#2987): relative config handling with --config flag (#3001)
* fix(#2987): relative config handling with `--config` flag

* test: fix tests

* fix: improve config test for failure case

* fix: test on windows?

* fix: test on windows?
2022-04-06 16:37:49 -05:00
Matthew Phillips
c6f8bce7c3
Fix Netlify adapter and dynamic routes (#3011)
* Fix Netlify adapter and dynamic routes

* Changeset
2022-04-06 16:21:46 -04:00
Juan Martín Seery
8bd49c9536
fix(integrations): astro:build:done dir now matches SSR client output (#3008)
* `dir` now matches client output

* Updated integrations

* Changeset
2022-04-06 16:20:58 -04:00
Ryan Carniato
13b782f421
fix: Nested hydration with Solid (#3003)
* fix: solid nested hydration

* Create ten-rice-unite.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-06 14:42:01 -05:00
Peter Singh
d0777ad3af
Astro add docs (#2958)
* So This works 😎

* need to add to the cli next

* Renamed Files and Export
Applied creditation to where I found the
'inspiration' for this application.

* applied `astro docs` to cli

* Trying to add to CLI,
Not working 🤷‍♂️

* Converted into async method,

* 🎆🎆 It works!!! 🥳🎉🥳

Embarrasing as it is I totally missed the part where logic was to be in.

* Moved `docs` cmd to `supportedCommands`

* refactor: cleanup docs command

* chore: add changeset

* chore: rename browser to open

Co-authored-by: Nate Moore <nate@skypack.dev>
2022-04-06 12:19:05 -05:00
Juan Martín Seery
b5ed099eaf
fix: @astrojs/vercel bug fixes (#3000)
* Fixed outDir

* Updated server out

* changeset

* Renamed out to tmp
2022-04-06 14:15:46 -03:00
github-actions[bot]
013150e2de
[ci] release (beta) (#3005)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-06 13:06:36 -04:00
Matthew Phillips
68e1e2dd31
Fixes dynamic API routes in SSR (#3006)
* Fixes dynamic API routes in SSR

* Adds a changeset
2022-04-06 13:01:22 -04:00
Tony Sullivan
9724d844b3
fix(#2981): keeps astro preview server alive (#3004)
* fix(#2981): keeps  server alive

* chore: adding changeset

* keep alive until the 'close' or 'error' event fires
2022-04-06 15:33:07 +00:00
github-actions[bot]
48d01049b0
[ci] release (beta) (#2997)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-05 15:28:29 -04:00
Ben Holmes
77aa3a5c50
Docs: netlify adapter site requirement (#2996)
* feat: human-readable error on bad site or base

* fix: human-readable error should have 1 config option

* docs: update README

* chore: changeset

* docs: mention localhost for testing via netlify CLI
2022-04-05 11:25:48 -04:00
github-actions[bot]
4e021f70e1
[ci] release (beta) (#2992)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 18:07:09 -07:00
Fred K. Schott
572ca3dcbe
add missing changeset for #2991 2022-04-04 18:02:52 -07:00
github-actions[bot]
ac34a5a03a
[ci] release (beta) (#2989)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 15:19:57 -07:00
Fred K. Schott
bc12edf09c
Create thin-cameras-clean.md 2022-04-04 12:09:53 -07:00
github-actions[bot]
a68885c0d6
[ci] release (beta) (#2986)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-04 11:35:25 -05:00
Fred K. Schott
9d7a4b59b5
enter beta pre mode (#2979)
* enter beta pre mode

* Update shiny-rice-worry.md

* Update shiny-rice-worry.md

Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-04-04 11:24:21 -05:00
github-actions[bot]
2552db0d09
[ci] release (#2975)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-03 23:25:00 -07:00
Nate Moore
3f0bc5af57
fix: edge case with slotted children (#2978) 2022-04-03 23:18:07 -07:00
Tony Sullivan
dff89a0fa3 Merge branch 'main' of github.com:withastro/astro 2022-04-03 20:42:41 +02:00
Juan Martín Seery
824458790a
fix(cli): prevent CLI from hanging (#2974)
* fix(cli): prevent hanging CLI

* Changeset
2022-04-03 14:32:39 -03:00
Juan Martín Seery
ad3c391696
fix(markdown): escape when mode == 'md' (#2971)
* Fix rehype escape

* Changeset
2022-04-03 14:32:12 -03:00
Tony Sullivan
75919537be
Fixing the new config defaults (docs only) (#2973)
* updating the default listed in config jsdocs

* chore: adding changeset

* outDir had the wrong default listed as well

* chore: updating changeset description
2022-04-03 17:05:30 +00:00
JuanM04
a377ac1efc
Merge branch 'main' into feat/vercel-adapter 2022-04-02 18:53:00 -03:00
github-actions[bot]
7fe149ae43
[ci] release (#2969)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:49:27 -06:00
Fred K. Schott
e425f896b6 Revert "[ci] release (#2925)"
This reverts commit 48c9b142cc.
2022-04-02 13:46:25 -06:00
github-actions[bot]
48c9b142cc
[ci] release (#2925)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-04-02 13:40:46 -06:00
Fred K. Schott
3483cc2285
exit prerelease mode (#2967) 2022-04-02 13:37:28 -06:00
Nate Moore
17c02925c5
Migrate to new config (#2962)
* wip: config migration

* fix: formatting

* refactor: projectRoot -> root

* refactor: pageUrlFormat -> format

* refactor: buildOptions.site -> site

* refactor: public -> publicDir

* refactor: dist -> outDir

* refactor: styleOptions -> style

* fix: some dist tests -> outDir

* refactor: remove legacyBuild (with TODOs)

* refactor: more legacyBuild cleanup

* refactor: server host and port

* fix: remove experimentalStaticBuild CLI flag

* refactor: src -> srcDir

* refactor: devOptions.trailing -> trailing

* refactor: remove sitemap + related flags

* refactor: experimentalSSR -> experimental.ssr

* fix: last devOptions

* refactor: drafts -> markdown.drafts

* fix: TS error on port as const

* refactor: remove pages

* refactor: more --project-root updates

* refactor: markdownOptions -> markdown

* fix: remaining type errors

* feat: update AstroUserConfig

* refactor: update CLI flag mapper + server mapper

* fix: loadFixture projectRoot

* fix: merge CLI flags before validating / transforming

* wip: attempt to fix bad createRouteManifest config

* refactor: combine config.base and config.site

* fix: skip route manifest test for now

* fix: site and base handling

* refactor: update failing config testes

* fix: build failure

* feat: update config types with migration help

* chore: update types

* fix(deno): update deno fixture

* chore: remove config migration logic

* chore: remove logLevel

* chore: clean-up config types

* chore: update config warning

* chore: add changeset

* Sitemap Integration (#2965)

* feat: add sitemap filter config option

* feat: add canonicalURL sitemap config option

* docs: update sitemap README

* fix: update for new config

* fix: filter not being applied

* chore: changeset

Co-authored-by: bholmesdev <hey@bholmes.dev>

* fred pass

* fix: Astro.resolve typo

* fix: public => publicDir

Co-authored-by: bholmesdev <hey@bholmes.dev>
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-04-02 12:29:59 -06:00
Nate Moore
d55658f061
Implement new default script behavior, style is:global (#2961)
* feat: implement RFC0016

* chore: update to latest compiler

* chore: update compiler

* test: fix script tests

* test: update public tests

* feat: throw a warning when referencing scripts in `public/` without `is:inline`
2022-04-02 12:34:25 -05:00
Tony Sullivan
226822cbbf
Allows projects to opt out of the base Tailwind styles (#2959)
* adding an option to opt-out of the Tailwind base styles

* chore: adding changeset description
2022-04-01 13:45:43 +00:00
Nate Moore
80e6e759e2
Update compiler (#2957)
* chore: update compiler

* chore: add changeset
2022-03-31 22:33:07 -05:00
JuanM04
e30aa4dfef
Added changeset 2022-03-31 20:44:15 -03:00