renovate[bot]
47e78d4752
fix(deps): update all non-major dependencies ( #11318 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-06-24 22:33:33 +08:00
Emanuele Stoppa
53e8bb6d5f
chore: update biome ( #11288 )
2024-06-20 07:10:23 +01:00
renovate[bot]
68f1d0d13e
chore(deps): update all non-major dependencies ( #11269 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 14:18:41 +08:00
Florian Lefebvre
02e561723f
feat: upgrade pnpm ( #11146 )
2024-06-11 15:49:03 +02:00
renovate[bot]
8725cb2f90
fix(deps): update all non-major dependencies ( #11222 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-11 08:59:21 +01:00
renovate[bot]
464b0a108e
fix(deps): update all non-major dependencies ( #11151 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-30 17:28:57 +08:00
Emanuele Stoppa
e90c98fea1
test: add firefox to the list of browsers to test ( #11036 )
2024-05-15 08:06:44 +01:00
renovate[bot]
cb2586fa15
fix(deps): update all non-major dependencies ( #11015 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-13 16:19:23 +08:00
renovate[bot]
f9b6f4fc2f
chore(deps): update all non-major dependencies ( #10958 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-05-09 15:20:13 +08:00
renovate[bot]
05d58eff07
fix(deps): update all non-major dependencies ( #10901 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 12:00:05 +08:00
Emanuele Stoppa
22d00865cf
chore: upgrade biome and renovate ( #10879 )
2024-04-26 07:20:59 +01:00
Emanuele Stoppa
d74b9ed7b6
chore: remove eslint plugins ( #10874 )
2024-04-25 10:14:05 +01:00
renovate[bot]
8d5f3e8656
chore(deps): update all non-major dependencies ( #10833 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2024-04-22 22:52:30 +08:00
Emanuele Stoppa
40e8450671
chore: use Biome to format JS files ( #10788 )
...
* chore: configuration
* chore: update main commands
* chore: revert formatting package.json
* chore: rebase
2024-04-17 09:37:22 +01:00
Jason
6ebd81dbc4
lint: upgrade eslint to version 9 ( #10730 )
2024-04-15 16:05:10 +08:00
Emanuele Stoppa
683d51a5ee
feat: upgrade the minimum Node.js maintainance LTS version ( #10689 )
...
* feat: upgrade the minimum Node.js maintainance LTS version
* chore: update minimum npm version
* chore: revert npm change
* chore: address Erika's feedback
* chore: apply further suggestions
* Update .changeset/empty-rules-type.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-04-10 14:53:55 +01:00
Erika
4240386e8a
fix: use just pnpm to run the build and tests in citgm ( #10727 )
2024-04-09 12:26:15 +02:00
Raz Luvaton
ecb44351e9
fix test:citgm --force flag not passed correctly ( #10706 )
2024-04-06 21:30:02 +02:00
Raz Luvaton
8214bacfea
chore: fix build:ci:no-cache test:citgm ( #10698 )
2024-04-05 13:05:02 -04:00
Raz Luvaton
36195bac65
chore: add test:citgm
command that would run tests without caching and build:ci:no-cache
to skip caching for build as well ( #10696 )
...
* chore: add test:citgm command that would run tests without caching
* adding build ci with no cache
2024-04-05 16:07:12 +02:00
Emanuele Stoppa
dfd146f591
Revert "[ci] format" ( #10417 )
...
* Revert "[ci] format"
This reverts commit 1863727215
.
* pin dependency
* update lock
2024-03-13 09:55:24 +00:00
Bjorn Lu
8dceb5eb36
Fix check example CI fail ( #10415 )
2024-03-13 17:35:33 +08:00
Bjorn Lu
8526ca3967
Update turbo test dependsOn ( #10329 )
...
* Update turbo test dependsOn
* Update mdx timeout
2024-03-05 15:16:55 +00:00
Erika
dbb0d0bd28
Fix Svelte editor tooling not working under relaxed TypeScripts projects ( #10244 )
...
* fix(svelte): Add TypeScript as a peer dep
* Update .changeset/gold-baboons-drum.md
2024-02-27 16:25:59 +01:00
Emanuele Stoppa
7fab7fd8c6
ci: fix formatting ( #10210 )
2024-02-23 09:50:10 +00:00
Emanuele Stoppa
891c26e92f
ci: fix regression of the commands ( #10182 )
2024-02-21 14:35:21 +00:00
Emanuele Stoppa
062623438b
chore: use biome to sort imports - only test files ( #10180 )
...
* chore: use biome to sort imports
* do the sorting
* Update package.json
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2024-02-21 14:08:19 +00:00
Bjorn Lu
436841e97e
Use eslint-plugin-regexp ( #9993 )
2024-02-07 20:43:19 +08:00
Nate Moore
0f664e7a0a
Fix release announcement script (no seriously this time) ( #9808 )
2024-01-24 10:16:47 -06:00
Nate Moore
dff7421a2b
Chore: fix noisy peerDependency warnings (it's fine) ( #9257 )
2023-11-30 16:27:20 -06:00
Bjorn Lu
d8d46ed27e
Fix missing type import from auto format ( #9250 )
2023-12-01 00:32:22 +08:00
Bjorn Lu
abf601233f
Update all dependencies ( #9138 )
...
Co-authored-by: delucis <delucis@users.noreply.github.com>
2023-11-21 12:09:19 +08:00
Nate Moore
c06b41a6b8
Update Prettier ( #8420 )
...
* chore: fix prettier config
* chore: format
* chore(prettier): format `.astro` files
2023-09-06 10:23:44 -05:00
Bjorn Lu
048846fd53
Update breaking dependencies ( #8201 )
2023-08-24 16:34:33 +08:00
Bjorn Lu
353dcb23e8
Update non-major dependencies ( #8199 )
2023-08-23 19:52:13 +08:00
Bjorn Lu
65c354969e
Fix examples check hang ( #7998 )
2023-08-09 17:06:29 +08:00
Emanuele Stoppa
0f1e9d8361
chore: update prettier to 3.0
( #7957 )
2023-08-08 13:01:38 +01:00
Erika
148e61d249
feat: remove webapi in favor of a smaller polyfill ( #7840 )
...
* feat: remove webapi in favor of a smaller polyfill
* test: remove old test
* test: 🤦♀️
* chore: changeset
2023-08-08 11:01:45 +01:00
Erika
d0679a666f
Remove support for Node 16 ( #7780 )
2023-08-08 11:01:33 +01:00
Erika
471324b0a3
test: add setup for Vercel / Netlify tests ( #7716 )
...
Co-authored-by: Yan Thomas <61414485+Yan-Thomas@users.noreply.github.com>
2023-07-21 21:24:36 +02:00
Bjorn Lu
d8bae784b4
Fix organize-imports-cli with satisfies operator ( #7727 )
2023-07-20 20:47:36 +08:00
Josh Goldberg ✨
df49bbe7f1
feat: bumped typescript-eslint to v6 stable 🥳 ( #7626 )
2023-07-12 15:11:46 +08:00
Josh Goldberg ✨
2fea174303
feat: use typescript-eslint@v6's reworked configs ( #7425 )
2023-07-03 20:59:43 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Bjorn Lu
f275d058fc
Update safe dependencies ( #7430 )
2023-06-21 21:09:49 +08:00
Ben Holmes
7877a06d82
Fix up pnpm dev
( #7424 )
...
* feat: use persistent per turbo recs
* feat: preserve types yay
* fix: *actually* solve problem
* fix: type failures from content types template
* fix: bad JS doc comments
* fix: bad src/content/template path
* chore: changeset
---------
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2023-06-20 14:06:36 -04:00
Bjorn Lu
8f4a04d46b
Bump pnpm to 8.6.2 ( #7413 )
2023-06-19 15:29:30 +08:00
Bjorn Lu
718cebd526
Update example dependencies versions with a script ( #7367 )
2023-06-12 20:48:04 +08:00
Ben Holmes
f4f9524656
chore: bump pnpm to 8.6.0, lock to 6.1 ( #7350 )
2023-06-09 16:45:14 -04:00
Ben Holmes
290e344dee
Fix out-of-date example dependencies ( #7248 )
...
* revert changeset patch
* deps: bump astro across examples
* deps: bump @astrojs packages across examples
* deps: bump @astrojs/markdoc
2023-05-30 19:51:09 -04:00
Ben Holmes
c6d7ebefdd
Data collections and references ( #6850 )
...
* feat: add generated lookup-map
* feat: wire up fast getEntryBySlug() lookup
* fix: consider frontmatter slugs
* chore: changeset
* chore: lint no-shadow
* fix: revert bad rootRelativePath change
* chore: better var name
* refactor: generated `.json` to in-memory map
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
* Revert "chore: removed unneeded await"
This reverts commit 1b0a8b00c2
.
* fix: bad `GetEntryImport` type
* chore: remove unused variable
* refactor: for -> Promise.all
* refactor: replace duplicate parseSlug
* refactor: add cache layer
* Revert "refactor: add cache layer"
This reverts commit 1c3bfdc6b3
.
* feat: json collection POC
* wip: add test json file
* wip: playing with api ideas
* refactor: extract getCollectionName
* feat: add defineDataCollection
* refactor: variable destructure
* wip: basic data entry pipeline
* chore: revert fixture playing
* wip: basic entry array parser
* feat: basic data type gen
* chore: add with-data playground
* feat: add error when `defineDataCollection()` isn't used
* fix: missing error message
* feat: data collections are here!
* wip: play with data query APIs
* feat: reference() util!
* fix: Markdoc `$entry` variable
* play: add reference util with markdoc
* chore: delete console logs
* feat: `src/data/`!
* feat: reference() errors
* fix: handle hoisted schema parse errors
* fix: reload config and invalid on collection changes
* feat: separate maps for content and data entries
* feat: new `reference()` API that fixes type inference
* feat: support `defineCollection()` for data config
* fix: defineCollection `type` inferenenceπinference
* chore: lock
* feat: getCollection() for everything!
* feat: get full entry access from reference()
* chore: changeset
* wip: type error on acorn?
* chore: lint
* chore: add slugger to data ID processing
* chore: astro/zod -> zod
* chore: example version
* chore: remove slugifier from data id
* chore: remove dead getDataCollection
* chore: remove dead defineDataCollection
* fix: bad collection import
* chore: lock
* feat: add data collections to lookup map
* refactor: stop resolving data from reference
* feat: introduce getEntry and new reference()
* fix: update config loader
* fix: reference() type
* feat: test self references (they work 🎉 )
* fix: use `slug` for content references
* fix: bad getEntry content type
* chroe: remove console logs
* fix: strict null checks on with-data
* feat: add getEntries for ref arrays
* chore: fix type hints for reference strings
* chore: change to type never for clarity
* play: try getEntries
* Return to "everything goes in `src/content/`
This reverts commit cc637ec6db4fc23afab585df5f240b7f7c0abc8a.
* fix: remove old function
* chore: update to AstroErrors
* chore: remove unused fixture files
* play: names
* deps: js-yaml
* feat: data collection YAML with error handling
* refactor: remove console log
* refactor: code cleanup
* fix: allow mixed content to pass through glob imports
* chore: move lookupMap util to virtual-mod
* refactor: new lookupMap logic, better errors
* chore: change MixedContent title
* refactor: remove unneeded try / catch
* fix: use `ws.send` for type gen errors
* fix: bubble `ws.send` errors from astro sync
* refactor: revert verbose astroContentCollectionEntry
* fix: bad with-data package name
* fix: bad virtual mod flag
* chore: remove with-data playground
* test: data collection authors
* test: translations data collection
* fix: add `.yml` support
* refactor: mix in `.yaml` just for fun
* refactor: i18n -> translations
* chore: content-collection-references fixture
* chore: bad lockfile
* fix: bad ContentLookupMap import
* chore: revert back to astroContentCollectionEntry
* test: collection references
* fix: bad error code override
* chore: remove unused asset
* test: sync errors
* chore: remove stray console log
* chore: lock
* chore: revert with-markdoc changes
* chore: doc error states, remove bad merge code
* chore: remove bad `as any`
* chore: lint
* chore: inline ContentLookupMap comments
* chore: settings -> config
* fix: put back `defineCollection()`
* fix: entry.slug for get content collection
* chore: update get-entry-type tests
* docs: totally shorten "missing a `type`"
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* docs: truncate share a `schema`
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: add `test:unit` and `test:unit:match`to base
* chore: update changeset
* refactor: cleanup runtime types and inline comments
* nit: [0] instead of shift()
* refactor: `getRelativeEntryPath()` util
* chore: capitalized Collections for test:match
* nit: ?? viteId on split
* nit: separate Params obj
* chore: add try / catch on readFile
* nit: `const data`
* chore: clean up data collection exceptions
* nit: `?? ''` for search params
* chore: remove TODO on hoisted error
---------
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17 11:36:27 -04:00
Erika
dc062f6695
Upgrade to version 1.0.0 of the language server ( #6953 )
2023-05-01 16:41:21 +02:00
Han Yeong-woo
f219e1862b
chore: update dependencies related to changesets ( #6868 )
...
Co-authored-by: bluwy <bjornlu.dev@gmail.com>
2023-04-28 15:04:03 +08:00
Han Yeong-woo
d28cc97179
chore: cleanup root and scripts dependencies ( #6871 )
2023-04-28 14:32:51 +08:00
Bjorn Lu
de5a25f4e9
Fix changeset publish ( #6923 )
2023-04-27 22:55:48 +08:00
Bjorn Lu
ec5f6a07ae
Upgrade turbo ( #6911 )
2023-04-27 11:39:15 +08:00
Erika
500ee802ac
fix: upgrade tooling deps ( #6839 )
2023-04-13 13:08:54 -04:00
Bjorn Lu
5f0efe5490
Update to pnpm 8 ( #6823 )
2023-04-12 23:34:54 +08:00
Erika
1e7d6af412
feat(all): Migrate to TypeScript 5.0 ( #6579 )
2023-03-20 17:02:07 +01:00
Bjorn Lu
00a0af7ed4
Move benchmark package and update changeset config ( #6433 )
2023-03-07 10:52:47 +08:00
Erika
afbbc4d5bf
Update compilation target for Node 16 ( #6213 )
...
* config(esbuild): Update esbuild target to node16
* config(package): Update root package.json node engine
* config(tsconfig): Update all the tsconfigs module and targets
* chore: changeset
* chore: remove unneeded file
2023-03-06 13:57:16 -05:00
Bjorn Lu
f4937949d6
Refactor benchmark script ( #6376 )
...
* Add timer setting
* Setup benchmark code
* Setup memory benchmark
* Add compare function
* Add result preview
* Setup results preview
* Simplify script for CI
* Update CI
* Cleanup
* Temp remove fork guard
* Fix stuff
* Fix again
* Fix quotes
* Fix multiline output
* Simplify title
* Fix memory numbers
* Remove astro bin dir
* Fix gc
* Add repo guards
* Fix wrong call
* Set max space size
* Remove guard
* Bump memory a bit
* Organize neatly
* Update readme
* Try large md
* Try no gc
* Revert markdown and gc changes
* Test sha
* Try ref
* Try 128mb
* Set 256
* Add guard
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Add docs comment
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-01 08:46:06 +00:00
Bjorn Lu
ae8a012a7b
Handle compiler breaking change ( #5803 )
2023-01-12 22:46:56 +08: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
5ec0f6ed55
Content Collections ( #5291 )
...
* feat: port content plugin as-is
* feat: add `fetchContent` to `.astro`
* refactor: move more logic to content-internals
* refactor: move internals -> content dir
* feat: nested dir support
* feat: add with-content playground
* edit: update README
* fix: serialize route pattern for Netlify edge
Co-authored-by: Jackie Macharia <jackiewmacharia>
* wip: add ?astro-asset-ssr flag
* wip: exclude astro-ssr-asset styles from build
* revert: SSR asset flag babel changes
* feat: only load CSS when mdx is rendered!
* fix(vercel): Include all files inside `dist/` instead of only `entry.mjs` (#5175 )
* chore: only-allow pnpm (#5131 )
* [MDX] Support `recmaPlugins` config (#5146 )
* feat: support recma plugins
* chore: add `test:match` to MDX
* chore: changeset
* docs: add recmaPlugins to README
* removes default content-visibility styles from image components (#5180 )
* wip: check renderContent works
* nit: injectDelayedAssetPlugin doesn't need enforce
* feat: render content with generated entries
* feat: renderContent style injection POC
* wip: scrappy renderContent binding
* deps: parse-imports
* feat: only bind renderContent when imported
* feat: new-and-improved render-content
* fix: update example to use render-content
* refactor: extract normalizeFilename helper
* feat: move renderContent to `.astro`
* feat: add `getStaticPaths` demo 👀
* chore: remove console log
* refactor: internals -> internal
* fix: style bleed on dynamic routes
* chore: remove console log
* refactor: move rendercontentmap inside same file
* fix: style bleed in dev!
* feat: clean up example
* refactor: curry generateContent
* nit: add datetime demo
* refactor: rename and move content plugins
* feat: granular content updates in development
* chore: console.log
* refactor: move write logic, fix edge cases
* fix: use z.any() when ~schema is missing
* refactor: clean up logging
* fix: add delayed asset flag to render map
* fix: use new server loader
* chore: import type
* fix: split delayed assets to separate chunks
* chore: bad merge changesets
* feat: rework content map to Vite globs
* fix: formatted errors
* fix: get `renderContent` working with new APIs
* refactor: rename to getCollection, getEntry, renderEntry
* feat: streamline type alias!
* fix: check schema import is an import
* refactor: change ~schema -> index with defineCollection
* feat: auto apply env.d.ts reference
* feat: expose `headings` on `renderEntry`
* refactor: expose zod from astro/zod
* feat: add Collection util type
* refactor: generated types in src/content/
* edit: remove env.d.ts change from with-content
* feat: collectionToPaths utility
* refactor: migrate `examples/blog`
* refactor: simplify [...slug]
* fix: invalid date
* fix: renderEntry
* feat: migrate examples/docs to content!
* refactor: union -> enum
* fix: remove duplicate header
* chore: changeset
* Revert "fix: serialize route pattern for Netlify edge"
This reverts commit ac46a0d323
.
* fix: lint
* fix: include zod in package files
* chore: push type gen for astro check
* feat: move to single defineCollections file
* feat: move examples to new collections model
* chore: type check valid collection names
* fix: ignore collections path in err logs
* refactor: content/index -> content/config
* refactor: defineCollections -> defineCollection
* fix: update docs to defineCollection
* chore: update with-content to new `astro:content` setup
* fix: renderEntry styles
* fix: bad Collection type
* fix: blog types generated
* feat: expose injectedFrontmatter on renderEntry
* chore: `import type`
* chore: add MDX to changeset
* fix: template package file
* fix: unneeded log on content config change
* chore: add `injectedFrontmatter` to generated types
* fix: escape import.meta.env in `body`
* fix: escape import.meta.env in frontmatter
* chore: unused import
* fix: use URL for config pathname
* feat: allow zod async transforms
* deps: devalue
* feat: custom slugs + better type checking
* fix: update types on config added or removed
* chore: add error msg for MDX preview release
* refactor: restore old normalizeFilename
* fix: add loadContentConfig error classes back
* Add initial tests for renderEntry
* add fixture tests
* Use head propagation APIs in renderEntry
* chore: new type gen
* fix: sort content keys before writing
* fix: avoid writing '.' collection with warning
* chore: docs types generated
* fix: generated types only once in build
* fix: use relative path to config for git
* chore: update generated types
* fix: glob pattern on valid exts
* feat: warn on possible collection typos
* chore: better error on bad lazy import
* fix: clear gray-matter cache for rawData
* fix: wait for config file while generating
* test: get collection and get entry basic
* test: multiple collections and entries
* test: add publishedDate test on entry
* tests: getStaticPaths integration
* test: ssr endpoint integration
* chore: consistent test names
* refactor: simplify generates... test
* chore: tests lockfile
* feat: add `experimental` flag
* chore: revert blog and docs examples
* chore: add experimental flag to with-content
* refactor: reuse contentFileExts
* refactor: make contentCollectionCss required
* chore: remove parse-imports dependency
* chore: remove unresolved idea redundancy
* chore: update changeset to minor v
* chore: clean up with-content pass 1
* refactor: de-monolith vite-plugin-content
* chore: remove maximum jank warning (it's acceptable jank)
* refactor: extract types-generator to separate file
* refactor: onEvent -> handleEvent
* edit: change content log to "types generated"
* fix: more experimental checks in prod build
* refactor: 2 jsToTreeNode calls -> 1
* feat: change with-content example to blog example
* fix: Content component type
* Fix use of renderEntry within a slot
* fix: warn for non-underscore _ files, refine logs
* chore: Content type in tests
* fix: types no updating with config changes
* fix: remove `result: SSRResult` type
* chore: entry var shadowing
* fix: bad experimental flag call
* wip: skip render entry tests
* fix: path resolution for .relative on windows
* chore: remove dead code
* wip: log entryPath into
* fix: use URL for entry
* refactor: getEntryInfo normalization
* refactor: move debounce to queueEvent only
* fix: resolve loader on config error
* fix: pathToFileURL -> new URL
* fix: dangerous pathname comparison
* refactor: move rawEvent -> event mapping to queueEvent
* fix: bad type
* wip: remove mkdir call
* wip: log content paths
* fix: more bad paths
* wip: more logs
* fix: correct glob path
* fix: normalize virtual mod path
* fix: content server file paths
* chore: remove render entry test skip
* wip: skip renderEntry tests (windows issues?)
* chore: remove console log
* feat: renderEntry -> render
* chore: add `--experimental-content-collections`
* refactor: only skip renderEntry tests on windows
* refactor: index.ts barrel export
* fix: cli type error
* fix: proper test skip on windows
* refactor: remove collectionToPaths :(
* refactor: use AstroError for frontmatter error
* nit: its schema, .*
* fix: bad isWindows import
* fix: await mod -> mod = await
Co-authored-by: Juan Martín Seery <me@juanm04.com>
Co-authored-by: 花果山大圣 <316783812@qq.com>
Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
Co-authored-by: Matthew Phillips <matthew@skypack.dev>
Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2022-12-16 14:19:53 -05:00
Bjorn Lu
fabd9124bd
Update esbuild dependency ( #5534 )
2022-12-06 22:11:59 +08:00
Erika
0dcdc6fb1e
Update language-server and prettier plugin to latest versions ( #5327 )
...
* Update language-server and prettier plugin to latest versions
* Update lockfile
2022-11-08 14:37:19 -04:00
Tony Sullivan
4e2bd17393
Adds a Hackernews example site ( #5213 )
...
* adds the hackernews example - TODO add readme content
* refactor: moving styles from root.css into components
* chore: add README content
* chore: lint fixes + prettier-plugin-astro@0.4.0
* Update examples/hackernews/README.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* lint: remove unused variable
* nit: adding check command to example
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-11-01 16:20:04 +00:00
Michael Rienstra
13b8e78713
Uninstall only-allow
( #5184 )
2022-10-25 18:09:41 +08:00
花果山大圣
ca94e9ccc1
chore: only-allow pnpm ( #5131 )
2022-10-24 14:17:23 -04:00
花果山大圣
0db9c08a8d
chore: add eslint cache ( #5101 )
2022-10-17 22:32:20 +08:00
Matthew Phillips
9e041f464c
Improved benchmark output ( #5077 )
...
* Improved benchmark output
* Show benchmarking table
2022-10-13 15:22:51 -04:00
Erika
0ea6187f95
Added support for updating tsconfig.json when using astro add ( #4959 )
...
* Added support for updating tsconfig.json when using astro add
* Refactor
* Remove unneeded change
* Fix build failling due to type difference
* Extend changeset description
2022-10-12 15:11:25 -03:00
Erika
f604ef6c69
Run astro check on all examples in CI ( #5022 )
...
* Run astro check on all examples in CI
* Output stderr
* Build Astro before running checks
* Making things faster + colors
* Fix errors inside examples
* Add congrats message
* Revert unentional change to tsconfigs
* Remove more unneeded changes
2022-10-12 09:48:29 -03:00
Matthew Phillips
f93625eafe
Run benchmarks on comment ( #4960 )
...
* Run benchmarks on !bench command
* Re-enable main
2022-10-03 16:11:20 -04:00
Bjorn Lu
812658ad2a
Remove shamefully-hoist ( #4842 )
2022-09-28 23:13:33 +08:00
Michael Rienstra
7481ffda02
create-astro
: always create tsconfig.json
(#4810 )
...
* `create-astro`: always create `tsconfig.json`
Currently, we only make sure `tsconfig.json` exists when `strict` or `strictest` is selected. Both `default` & `optout` are intended to correspond to `base` -- and will do so for all [23 official templates](https://github.com/withastro/astro/tree/main/examples ), but not necessarily for third-party templates.
The [example command for installing a third-party template](https://github.com/withastro/astro/blob/a800bf7/packages/create-astro/README.md?plain=1#L31-L35 ) is (rather conveniently for the sake of this PR!) an example of a template without a `tsconfig.json` file, and installing it with the `default` ("Relaxed") Typescript option results in no `tsconfig.json` file, rather than a `tsconfig.json` file containing `{ "extends": "astro/tsconfigs/base" }` as would be expected.
This PR addresses this scenario.
It also explicitly sets the `tsconfig.json` file to `{ "extends": "astro/tsconfigs/base" }` when `default` (which I renamed to `base`, still presented to the user as "Relaxed") or `optout` is selected (`optout` has always printed a warning about the importance of `tsconfig.json` & `src/env.d.ts` but otherwise behaved identically to `default`). This is necessary in two scenarios:
1. When the `tsconfig.json` file was created by this script.
2. When it either didn't already include `"extends"`, or it extended a different config by default. For example, some third-party templates might default to `strict`, in which case I'm guessing we'd want to respect the user's choice and change that to `base`.
* update `del` 6.1.1 --> 7.0.0
* test: prevent excess writes
(without this it triggers many times)
* test: create-astro typescript prompt
* changeset
* fix: recursive `mkdirSync`
* test: longer timeout for `windows-latest` OS
(see if this fixes failing tests)
* better glob path creation, don't hardcode `/`
* test: longer timeout for windows-latest OS
(since I'm about to trigger another CI run by pushing a commit, might as well try this too)
* create-astro test: show last CLI output on timeout
* drop variable timeout
Typescript tests are slower than directory tests, but they are all usually less than 5000 ms. Less complexity, easier to maintain.
* DRY new error output
* Update lockfile
* Sync lockfile with main
* Update lockfile
Co-authored-by: Princesseuh <princssdev@gmail.com>
2022-09-22 14:37:01 -04:00
Matthew Phillips
5986517b4f
Make React integration work with Deno ( #4679 )
...
* Remove removed packages folder
* fix
* Add a changeset
2022-09-08 12:30:49 -04:00
Bjorn Lu
1be49088cc
Bump pnpm version ( #4488 )
2022-08-26 09:01:58 -04:00
Nate Moore
9f067dca27
Astro 1.0.0 ( #4214 )
...
* chore: remove changesets patch
* chore: add changesets
* chore: version packages
* chore: normalize formatting
* chore: update lockfile
* chore: fix codeblocks
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update packages/astro/CHANGELOG.md
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* chore: fixup code samples
* chore: move v0.25 message out of note
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2022-08-09 11:10:25 -05:00
Erika
24c8e7d853
Add prettier-plugin-astro
to the monorepo ( #4083 )
...
* Add `prettier-plugin-astro` to the monorepo
* Fix issue that prevent formatting Picture component
* Revert "Fix issue that prevent formatting Picture component"
This reverts commit 5536c5122ca01c64e2be6bdbc88aaaa71a690a58.
* Add back CLI parameter
* Update to latest prettier plugin
* Add more ignored files, unfortunately
2022-08-05 21:36:31 -07:00
Nate Moore
c1248e9ed4
Update turbo scripts ( #4177 )
...
* chore: update turbo scripts
* fix: typo
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 16:18:56 -05:00
Fred K. Schott
778a4d2af1
update test coverage to include more Node and Windows tests ( #4144 )
...
* update node test coverage to include v18, more windows tests
* chore(ci): update turbo to account for OS and NODE_VERSION
* chore: disable node@18, add TODO
Co-authored-by: Nate Moore <nate@astro.build>
2022-08-05 15:14:19 -05:00
Nate Moore
27ee8b97ae
Overhaul HMR handling for .astro
files ( #3932 )
...
* feat(hmr): overhaul HMR handling for `.astro` files
* test: remove irrelevant hmr-css test
* fix: ignore HMR logs for monorepo files
* fix: explicitly call import.meta.hot.decline()
* chore: add changeset
* fix: run smoke tests in serial
* chore: bump postcss test timeout
* test: fix undefined `this`
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-22 13:37:20 -05:00
Ben Holmes
aa06fd9f9a
[Smoke] Add docs and astro.build to smoke test ( #3941 )
...
* feat: add docs and astrobuild to checkout
* fix: checkout external repos after main
* wip: build each external repo separately?
* Revert "wip: build each external repo separately?"
This reverts commit 042a3b2a8b33cfcff1622c2002bdfa43a5532ea8.
* fix: move checkout to smoke/
* chore: add react to peer dep ignores for CI
2022-07-18 16:00:00 -04:00
Chris Swithinbank
31f9c0bf02
Roll back supported Node engines ( #3937 )
...
Fixes #3936
2022-07-15 08:15:04 -04:00
Randall
b487679853
Rollback Nodejs Dependancy ( #3914 )
...
* Rollback Nodejs Dependancy
Closes #3908
Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
* Create ninety-apes-talk.md
2022-07-13 17:06:37 -04:00
Nate Moore
93e1020b1e
Fix: reintroduce smoke tests across example projects ( #3669 )
...
* chore: update smoke tests
* chore: bump smoke tests to node@16
* chore: remove gitmodules
* chore(ci): prefer node@14
* wip: remove path from smoke clone step
* feat: run build:examples from test:smoke
* fix: remove no-frozen-lockfile
* fix: checkout monorepo last for pnpm setup
* wip: replace @astrojs/markdown/remark import from md
* fix: remove type defs from generated file
* fix: function order
* chore: remove ssr-utils export
* wip: remove windows from smoke test
* fix: instantiate slugger in snippet
* fix: exclude with-mdx from smoke (for now)
* fix: add quotes on filter flag for safety
* chore: changeset
* wip: try reintroducing windows smoke
* sad chore: remove client: directive from with-mdx
* Revert "wip: try reintroducing windows smoke"
This reverts commit 9529b1a45c
.
Co-authored-by: Nate Moore <nate@astro.build>
Co-authored-by: bholmesdev <hey@bholmes.dev>
2022-07-11 22:51:17 -04:00
Nate Moore
1cc5b78905
fix( #3071 ): update supported node versions ( #3871 )
...
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-11 11:32:53 -05:00
Erika
f9ed77bb0d
Add editor integrations to language integrations ( #3864 )
2022-07-08 17:47:01 -04:00
Nate Moore
0e01e0bb58
Upgrade to pnpm@7.4.1, remove patch-package
( #3747 )
...
* chore: upgrade to pnpm@7.4.0, remove `patch-package`
* chore: update contributing
* chore: pnpm@7.4.1
* chore: bump to pnpm@7.5.0
Co-authored-by: Nate Moore <nate@astro.build>
2022-07-07 12:52:53 -05:00
Nate Moore
f9290b328a
CI: Prefer per-job cache rather than artifact I/O ( #3781 )
...
* chore(ci): prefer per-job cache rather than artifact io
* chore: update cache step
* chore: fix cache key
* chore(ci): build on windows as well
* chore(ci): enable remote cache
* chore: run build on all three platforms
* chore: prefer turbo to custom caching logic
* chore: build AFTER install
* chore: build on node 14
* chore: remove build, parallelize tasks
* chore: update cache
* chore: prime build caches
* chore: fix indentation
* chore(ci): only build on ubuntu
* chore(ci): changelog needs build
* chore(ci): ignore updates to md files
* chore(ci): add 20 min timeout for e2e tests
* chore(ci): enable FORCE_COLOR
* chore: run turbo with `--output-logs=new-only`
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-30 16:26:37 -05:00
Nate Moore
032ad1c047
MDX support ( #3706 )
...
* feat: first pass at MDX support
* fix: move built-in JSX renderer to come first
* chore: remove jsx example
* chore: update lockfile
* chore: cleanup example
* fix: missing deps
* refactor: move component render logic to `renderPage`
* chore: update HMR script
* chore: update MDX example
* refactor: prefer unshit
* refactor: remove TODO comment
* fix: remove duplicate identifier
* refactor: cleanup mdx entrypoint
* fix: better html handling
* fix: add tsconfig to mdx package
* chore: update lockfile
* fix: do not sort plugins unless mdx is enabled
* chore: update compiler
* fix(hmr): maybe render head for non-Astro pages
* fix: set initial pageExtensions
* refactor: cleanup addPageExtension
* refactor: remove addPageExtensions from types
* refactor: expose HookParameters type
* fix: only default to astro for MDX
* test: pick up jsx support in test fixtures
* refactor: simplify mdx entrypoint
* test: add basic MDX tests
* test(e2e): add mdx + framework tests
* chore: update lockfile
* test(e2e): fix preact mdx e2e test
* fix(mdx): disable .md support
* test(e2e): fix vue-component test missing mdx
* test(e2e): fix solid component needing import
* fix: allow `client:only="solid"` as an alias to `solid-js`
* chore: move to with-mdx example
* chore: update MDX readme
* chore: update example readme
* chore: bump astro version
* chore: update lockfile
* Update mod.d.ts
* feat: support `export const components` in MDX pages
* chore: update mdx example
* fix: update jsx-runtime with better slot support
* refactor: remove object style support
* chore: cleanup package exports
* chore: add todo comment
* refactor: improve isPage function, move to utils
* refactor: dry up manual HMR updates
* chore: add dev tests for MDX
* chore: prefer set to array
* chore: add changesets
* fix(hmr): flip public/private route
Co-authored-by: Nate Moore <nate@astro.build>
2022-06-30 13:09:09 -05:00
Fred K. Bot
768c8ed21d
[ci] update lockfile ( #3740 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-28 08:33:13 -05:00
Fred K. Schott
9d78162fd9
Prettier update with caching speedup ( #3710 )
...
* update lockfile on fresh install
* update prettier
2022-06-27 11:24:22 -07:00
Tony Sullivan
b8c6dabfb7
Enables eslint on the full repo and adds a rule for no only()
tests ( #3659 )
...
* enabling eslint on the all packages and tests
* enabling for all packages
* TEMP: adding an only() test to verify it fails CI
* using our eslint config and ignore in CI
* removing the temporary .only() test
* update lock file
* lint: fixing new test with a no-shadow warning
* chore: update lock file
2022-06-22 15:59:49 +00:00
Fred K. Schott
5b06398b7b
format: automatically organize imports and removed unused ( #3499 )
...
* add import formatting
* chore: update lockfile
Co-authored-by: Nate Moore <nate@skypack.dev>
2022-06-06 09:47:28 -07:00
Fred K. Schott
cfb85ee10e
[ci] update lockfile ( #3495 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-06-01 10:39:32 -05:00
Fred K. Schott
c9d8b10a85
[ci] update lockfile ( #3448 )
...
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2022-05-31 11:46:13 -05:00
Fred K. Schott
ffe5cf0312
update typescript ( #3456 )
2022-05-27 14:53:04 -05:00