Commit graph

4891 commits

Author SHA1 Message Date
Matthew Phillips
4cc8c84caf
Fix astro-embed peerDep issue (#5731)
* Fix astro-embed peerDep issue

* Update lockfile
2023-01-03 15:32:43 -05:00
Matthew Phillips
f0a3288ddb
Fix missing ts flag on main (#5730) 2023-01-03 14:38:17 -05:00
matthewp
857ae26b2e [ci] format 2023-01-03 19:08:59 +00:00
Bjorn Lu
dd56c19411
Remove MDX Fragment hack (#5716)
* Remove MDX Fragment hack

* Update .changeset/lovely-terms-drive.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-03 14:06:33 -05:00
Bjorn Lu
5eba34fcc6
Remove deprecated APIs (#5707)
* Remove deprecated Astro globals

* Remove deprecated hook param

* Fix test

* Add changeset

* Add TODO
2023-01-03 14:06:07 -05:00
Nate Moore
8fb28648f6
Unflag experimental features (#5728)
* feat: unflag `--experimental-error-overlay`

* feat: unflag `--experimental-prerender`

* chore: add changeset

* Update chilled-geese-worry.md

* test: update test to use `mjs`

* Update .changeset/chilled-geese-worry.md

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>

* Update chilled-geese-worry.md

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-01-03 14:05:46 -05:00
Bjorn Lu
f6cf92b483
Upgrade to Vite 4 (#5685)
* Upgrade Vite 4

* Simplify Svelte preprocess setup

* Upgrade rollup

* Fix tests

* Fix wrong changeset target

* Fix error tests

* Set NODE_ENV default
2023-01-03 13:24:49 -05:00
Fred K. Bot
5007bc7881
[ci] update lockfile (#5686)
* [ci] update lockfile

* Fix build errors from new TypeScript version

* Updated lockfile

Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-01-03 12:18:32 -05:00
Matthew Phillips
fb0334a15f
Enter prerelease mode (#5726) 2023-01-03 11:38:11 -05:00
Fred K. Bot
3a0f7c4855
[ci] release (#5718)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-01-03 10:44:51 -05:00
bholmesdev
a06692800e [ci] format 2023-01-03 14:47:50 +00:00
Ben Holmes
3aa3e00a63
[Content Collections] Fix import.meta.env.DEV always set to true (#5700)
* fix: reset NODE_ENV on content config read

* fix: move nodeEnv setter above createServer

* chore: changeset
2023-01-03 09:45:38 -05:00
Ben Holmes
bf210f7841
[content collections] Handle file name spaces and capitalization (#5666)
* feat: slugify slug to handle capitals and spaces

* docs: add not on Slugger issues

* deps: bump to github-slugger 2.0

* refactor: new Slugger() -> slug util

* fix: stop using URL.pathname

* fix: `file://` prefix on isContentFlagImport

* test: spaces in fixture file name

* chore: add `test:unit:match`

* refactor: handle collection errors from getEntryInfo

* test: unit getEntryInfo

* chore: changeset

* chore: markdown-remark out of date

* fix: correctly strip index on windows

* fix: move to utils, fix slug regex

* refactor: intermediate var

* lint: `path` variable shadowing

* chore: add not on allowFilesOutsideCollection
2023-01-03 09:45:16 -05:00
matthewp
19be918c59 [ci] format 2023-01-03 14:00:46 +00:00
Muzafar Umarov
fe316be86f
fix(astro/core): Do not add base to hoisted script body (#5720)
* fix(astro/core): Do not add base to hoisted script body

* fix(astro/core): Add base path to hoisted .js files only

* fix(astro/core): undo style changes
2023-01-03 08:59:05 -05:00
Bjorn Lu
c2844a79c8
Fix docs smoke error (#5706)
Co-authored-by: bholmesdev <hey@bholmes.dev>
2023-01-02 21:31:51 +08:00
Ben Holmes
f4441e2726
chore: remove types.gen from tests (#5695) 2022-12-29 15:45:32 -05:00
Sarah Rainsberger
fc28b7cdc0
[docs] reflects updates to cloudflare: streams, env variables (#5694) 2022-12-29 13:30:34 -04:00
Fred K. Bot
640de3c26f
[ci] release (#5645)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-27 11:52:24 -05:00
Matthew Phillips
87a0d8bf10
Add experimental feature (#5681) 2022-12-27 11:43:49 -05:00
bluwy
830680bbf8 [ci] format 2022-12-27 16:14:00 +00:00
Bjorn Lu
f8f5768294
Fix code generation quotes handling (#5678) 2022-12-28 00:12:03 +08:00
SegaraRai
376f67011d
fix(types): add server.headers typing (#5635)
* fix(types): add `server.headers` typing

* fix: correct `@version` of `server.headers`

* Update changeset

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2022-12-27 11:07:49 -05:00
bholmesdev
bfdfeb9c12 [ci] format 2022-12-27 16:05:57 +00:00
Ben Holmes
d72da52907
[Content] Add astro sync type gen command (#5647)
* feat: add `astro sync` command

* chore: move fixture types.generated to gitignore

* test: types generate with astro:content

* chore: changeset

* docs: Astro error for CLI errors
2022-12-27 11:03:58 -05:00
Leontopodium pusillum
68c20be66b
fix: filter out draft item from glob result (#5612)
* fix: filter out draft item from glob result

* test: rss should ignore draft

* build: add changeset

* build: major version

* feat: add `drafts` option

* Add README docs

Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-27 10:50:11 -05:00
Ben Holmes
9674cf56c5
[Content Collections] Stray console.log snuck in! (#5668)
* fix: stray console.log

* chore: changeset
2022-12-22 17:17:53 -05:00
bholmesdev
d5c088911d [ci] format 2022-12-22 21:15:41 +00:00
Ben Holmes
a5ba4af799
[MDX] Remove verbose migration logs (#5667)
* chore: remove markdown extends warnings

* chore: changeset
2022-12-22 16:13:46 -05:00
bholmesdev
813576b39a [ci] format 2022-12-22 15:40:34 +00:00
Ben Holmes
853081d1c8
[Content] Throw on relative image usage (#5648)
* chore: add rel image error plugin

* deps: mdast, mdast types

* chore: add rel image throw to mdx

* refactor: doc rel image path plugin

* fix: respect experimental flag in md remark

* chore: changeset

* deps: remove mdast package

* fix: resolve contentDir from config

* fix: apply MDX plugin after user plugins

* fix: stub out contentDir
2022-12-22 10:38:03 -05:00
delucis
b64081deed [ci] format 2022-12-21 18:19:56 +00:00
Shivam
46757a6ce3
Add canonical URL to blog example (#5651) 2022-12-21 19:17:40 +01:00
Bjorn Lu
0b50987584
Use acorn to postprocess Astro globs (#5652) 2022-12-21 11:05:18 +08:00
delucis
7a575d78c2 [ci] format 2022-12-20 22:10:25 +00:00
Chris Swithinbank
2c65b433bf
MD/MDX collect headings refactor (#5654) 2022-12-20 23:08:15 +01:00
Andrea De Masi
a467139e16
fix traced warnings from unexpected token (#5638)
* fix traced warnings from unexpected token

* Fixed styling
2022-12-19 15:07:00 -03:00
Fred K. Bot
783a2a8e1b
[ci] release (#5642)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-19 09:26:29 -06:00
Nate Moore
d5aff85db4
fix: patch static build regression (#5644)
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-19 09:23:57 -06:00
Sam Chen
62580ed078
Fix "maximum call stack size exceeded" error (#5641) 2022-12-19 21:50:23 +08:00
Bjorn Lu
1ac1ed86e9
Fix client only import with importsNotUsedAsValues error (#5639) 2022-12-19 21:44:15 +08:00
Anders Kaseorg
53e0c98dae
Fix spelling mistakes found by codespell and mwic (#5627) 2022-12-19 12:00:00 +01:00
Anders Kaseorg
4d4883e816
webapi: Rename misspelled inheritence to inheritance (#5634) 2022-12-19 11:26:48 +08:00
Chris Swithinbank
7f7450e673
Add JSDoc comments for error overlay to match other experimental features (#5633) 2022-12-19 11:13:16 +08:00
Chris Swithinbank
8e67d75793
Fix links in content used by docs (#5631)
* Use canonical URLs with trailing slash

* Always use full URL for JSDoc links
2022-12-18 13:00:30 +01:00
Nate Moore
6fff9ee309
Docs: Fix prerender error message (#5626)
* fix: update prerender message

* fix: update prerender description

* fix: remove escapes

* Update packages/astro/src/core/errors/errors-data.ts

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

Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-12-17 22:31:53 -06:00
Fred K. Bot
2552816d5f
[ci] release (#5618)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16 20:12:04 -05:00
Ben Holmes
33dcaa05bb
[Fix] Incorrect error message for MDX peer dependency (#5617)
* fix: out-of-date MDX error message

* chore: changeset
2022-12-16 19:14:59 -05:00
Fred K. Bot
fc46ca53d1
[ci] release (#5607)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-12-16 15:54:19 -05:00
Nate Moore
61302ab7a0
fix(create-astro): skip Houston on windows until prompts are fixed (#5616)
Co-authored-by: Nate Moore <nate@astro.build>
2022-12-16 15:48:03 -05:00