summaryrefslogtreecommitdiff
path: root/examples/with-markdown-plugins/add-classes.mjs (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2024-08-19ci: use docs's 5.0 beta branch for smoke testsGravatar Princesseuh 1-0/+1
2024-08-19Remove functionPerRoute option (#11714)Gravatar Matthew Phillips 24-543/+40
* Remove functionPerRoute option * Remove more code * Remove unused test util * Linting * Update tests to reflect new structure * Add a changeset * Update plugin * Remove unused import
2024-08-19Remove @astrojs/lit (#11680)Gravatar Matthew Phillips 56-2196/+3
* Remove @astrojs/lit This removes the Lit integration as an official integration. The reasons for doing so in 5.0: - Only 1% of Astro users use this integration. - SSR support in Lit is at a lower-level of support due to be a Labs project: https://lit.dev/docs/libraries/labs/, and has been in this state since we added support a couple of years ago. - The maintenance cost of fixing bugs in this integration is too high given the low usage. Some PRs for upgrading Lit versions have taken quite a long time. We can't justify the core team being responsible for this going forward. - There used to be community contributions to fix bugs but this has fallen off for various reasons. Given that, this PR removes the integration as one that is officially supported by the Astro core team. Interested community members are encouraged to fork the integration and continue the development in another repository. * Remove e2e tests and examples * Update lockfile * Remove ssr-lit.test.js * Remove error for no client entrypoint * Remove auto selection of the Lit renderer * Remove lit package.json * Remove lit fixture
2024-08-19Fix create-astro initial git commit (#11766)Gravatar Bjorn Lu 2-1/+6
2024-08-19fix(deps): update all non-major dependencies (#11765)Gravatar renovate[bot] 95-1264/+1249
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-16Reduce prerender dynamic value warning false positives (#11745)Gravatar Bjorn Lu 2-1/+6
2024-08-16Update `test:vite-ci` script (#11740)Gravatar Bjorn Lu 1-1/+1
2024-08-16[ci] formatGravatar Matthew Phillips 1-1/+1
2024-08-16Deprecate the functionPerRoute option (#11728)Gravatar Matthew Phillips 2-1/+29
* Deprecate the functionPerRoute option * Update .changeset/weak-dancers-beam.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-16Refactor/types (#11715)Gravatar Erika 216-2097/+2074
* refactor: types * feat: refactor types * chore: organize imports * fix: remaining references * docs: types * refactor: small changes * chore: changeset
2024-08-16[ci] formatGravatar Florian Lefebvre 1-1/+1
2024-08-16feat: simplifies sync paths (#11730)Gravatar Florian Lefebvre 4-14/+12
2024-08-16Fix MDX stack trace location with frontmatter (#11717)Gravatar Bjorn Lu 2-2/+8
2024-08-15Reset the preview release branchGravatar Matthew Phillips 1-1/+1
2024-08-15Allow snapshot releases against nextGravatar Matthew Phillips 1-1/+1
2024-08-16[ci] release (#11734)create-astro@4.8.3astro@4.14.2@astrojs/upgrade@0.3.3@astrojs/db@0.13.1Gravatar Houston (Bot) 41-78/+91
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-16Fix astro upgrade changeset (#11735)Gravatar Bjorn Lu 1-1/+1
2024-08-16Revert parseArgs change (#11733)Gravatar Bjorn Lu 20-132/+131
2024-08-15[ci] release (#11719)astro@4.14.1Gravatar Houston (Bot) 36-78/+73
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-15[ci] formatGravatar Florian Lefebvre 10-11/+11
2024-08-15refactor: enforce node prefix (#11723)Gravatar Florian Lefebvre 14-22/+30
2024-08-15fix: content types sync in dev (#11727)Gravatar Florian Lefebvre 3-6/+10
Co-authored-by: Princesseuh <3019731+Princesseuh@users.noreply.github.com>
2024-08-15fix: separate data store into mutable and immutable versions (#11725)Gravatar Matt Kane 8-376/+410
* fix: separate data store into mutable and immutable versions * Add jsdoc
2024-08-15[ci] formatGravatar Emanuele Stoppa 1-1/+1
2024-08-15chore: updates the supported features of test adapter (#11724)Gravatar Emanuele Stoppa 1-0/+4
2024-08-15chore(readme): adds the netlify adapter (#11726)Gravatar Emanuele Stoppa 1-1/+2
2024-08-15[ci] formatGravatar Matthew Phillips 1-1/+4
2024-08-15Prevent errant HTML from crashing server islands (#11692)Gravatar Matthew Phillips 5-3/+30
2024-08-15[docs] updates experimental.contentLayer with Expressive Code (#11718)Gravatar Sarah Rainsberger 1-12/+12
Co-authored-by: Matt Kane <m@mk.gg>
2024-08-15[ci] release (#11699)create-astro@4.8.2astro@4.14.0@astrojs/web-vitals@2.0.0@astrojs/upgrade@0.3.2@astrojs/db@0.13.0Gravatar Houston (Bot) 52-338/+333
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-15fix: content types sync in dev (#11716)Gravatar Florian Lefebvre 2-2/+15
* fix: content types sync in dev * fix: test
2024-08-15Server Islands - Handle base + trailingSlash ignore (#11712)Gravatar Matthew Phillips 4-2/+28
* Server Islands - Handle base + trailingSlash ignore * Add a changeset
2024-08-15Upgrade to turbo v2 (#11705)Gravatar Bjorn Lu 3-77/+96
2024-08-14Small wording/nit improvements to 4.14 release types docs (#11710)Gravatar Yan 1-4/+4
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-08-14Fix typos in 4.14 error references (#11711)Gravatar Yan 1-2/+2
2024-08-14[ci] formatGravatar Matthew Phillips 2-4/+7
2024-08-14Prevent externalized adapters from breaking build (#11709)Gravatar Matthew Phillips 3-14/+46
* Prevent externalized adapters from breaking build * Add a changeset * Implement in both types of build plugins * linting :(
2024-08-14[docs] updates link in Content Layer API (#11706)Gravatar Sarah Rainsberger 1-1/+1
2024-08-14[ci] formatGravatar Florian Lefebvre 5-11/+9
2024-08-14chore: optimize check (#11704)Gravatar Florian Lefebvre 1-1/+1
2024-08-14Content Layer (#11360)Gravatar Matt Kane 155-573/+5274
* Empty commit * Changeset * feat: add Content Layer loader (#11334) * wip * wip * wip * Update demo * Add meta * wip * Add file loader * Add schema validation * Remove log * Changeset * Format * Lockfile * Fix type * Handle loading for data store JSON * Use rollup util to import JSON * Fix types * Format * Add tests * Changes from review * fix: sync content layer in dev (#11365) * wip * wip * wip * Update demo * Add meta * wip * Add file loader * Add schema validation * Remove log * Changeset * Format * Lockfile * Fix type * Handle loading for data store JSON * Use rollup util to import JSON * Fix types * Format * Add tests * Changes from review * Sync content layer in dev * feat: add typegen for loaders (#11358) * fix: watch for content layer changes (#11371) * fix: watch for content layer changes * Add test * feat: adds simple loader (#11386) * wip * Add simple loader * Fix type guard * Tighten loader schema * Add loader function to type * Reinstall vitest * feat: add glob loader (#11398) * feat: add glob loader * Enable watching and fix paths * Store the full entry object, not just data * Add generateId support * Fix test * Rename loaders to sync * Refacctor imports * Use getEntry * Format * Fix import * Remove type from output * Windows path * Add test for absolute path * Update lockfile * Debugging windows * Allow file URL for base dir * Reset time limit * feat: add markdown rendering to content layer (#11440) * feat: add glob loader * Enable watching and fix paths * Store the full entry object, not just data * Add generateId support * Fix test * Rename loaders to sync * Refacctor imports * Use getEntry * Format * Fix import * Remove type from output * Windows path * Add test for absolute path * Update lockfile * Debugging windows * Allow file URL for base dir * Reset time limit * wip: add markdown rendering to content layer * use cached entries * CLean up types * Instrument more of the build * Add digest helper * Add comments * Make image extraction work * feat: image support for content layer (#11469) * wip * wip * Add image to benchmark * Stub assets if missing * Resolve assets in data * Ignore virtual module * Format * rm log * Handle images when using cached data * Fix CCC * Add a comment * Changes from review * Format * Use relative paths for asset files * Pass all md props to getImage * Ensure dotastro dir exists * Fix tests * Changes from review * Don't use temp array in getcollection * Add error handling * Format * Handle paths that are already relative * Dedupe sync runs * Fix syncing in dev * Changes from review * Windows paths ftw * feat(content-layer): support references in content layer (#11494) * Support references in content layer * Fix utf8 rendering * Warn for invalid entries * Fix test * lol windows paths * Remove assertion * chore: fix content layer types (#11527) * Add experimental_content type * Fix import * Make data store methods generic * fix loader types * Lockfile * Clean content layer with `--force` (#11541) * Clearn content layer with `--force` * Add tests * Document --force flag * Fixes to content layer render types (#11558) * Lockfile * feat: use devalue to serialize content layer data (#11562) * feat: use devalue to serialize content layer data * Fix import * Use devalue stringify * Unused import * Propagate error messages correctly * Support --force flag in sync and dev (#11581) * Support --force flag in sync and dev * Fix test * Separate render function and merge content layer types (#11579) * Separate render function and merge content layer types * Changes from review * fix: clear content layer cache if config has changed (#11591) * fix: clear content layer cache if config has changed * Add test * Watch config * Change from review * fix: skip glob files in content dir (#11622) * fix: skip glob files in content dir * Changes from review * Log pattern * Refactor content layer into shared instance (#11625) * Refactor content layer into shared instance * Clean up when testing * Handle cleanup * fix: support filters in content layer getCollection (#11631) * Throw when using deprecated getEntryByX functions with content layer (#11637) * Updates to content layer types and jsdocs (#11643) * Add hot key to reload content layer (#11626) * Add hot key to reload content layer * Fix filename * Remove cli message * Update example * Change key to "s" * feat: handle simple mdx rendering (#11633) * feat: handle simple mdx rendering * cleanup * feedback * fix regression * remove log * flip condition * update tests * log collections to understand the error * let's try this alternative * try parallel test to understand the issue * chore: use a new fixture to fix tests * rebase and docs * fix regressions * remove old code * address feedback * rename param * log error * rebase * chore: try a different cache dir to solve the error test * fix invalidation of the module when there's no store available * address suggestion * run formatter * update lock file * Lint * Add experimental content layer flag (#11652) * Add experimental content layer flag * Syntax and format * Aside * Format * Reset content config between runs * Update fixture * Update terminology * Lint * wut * Normalize render function return value (#11663) * Add markdoc support to content layer (#11664) * Add markdoc support to content layer * Switch test to cheerio * Update benchmarks * update lock file * Update content layer flag docs (#11682) * Update content layer flag docs * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * More markdoc * Typo * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Add changeset for content layer experimental release (#11644) * Add changeset for content layer experimental release * Update changeset * Update .changeset/smooth-chicken-wash.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * feat: injectTypes (#11551) * feat: make inline config 1st arg * fix: run config done in sync * feat: start working on injectTypes * feat: write files * feat: adapt core features * feat: migrate db to injectTypes * feat: special db handling * feat: update settings instead of workarounds * fix: create dotAstroDir * feat: refactor sync tests * fix: path * fix: paths * chore: add comments * feat: overwrite content file if exists * chore: remove unused db env related code * feat: use dotAstroDir for settings * chore: simplify astro env sync * feat: use dotAstroDir for preferences * feat: handle db in integration api * chore: reorganize * feat: format * feat: add test * Discard changes to examples/basics/astro.config.mjs * Discard changes to examples/basics/package.json * Discard changes to pnpm-lock.yaml * chore: remove test files * feat: update examples dts * fix: dts * chore: changesets * fix: indentation * Apply suggestions from code review Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * Apply suggestions from code review Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> * chore: format * Update packages/astro/src/integrations/hooks.ts * Update .changeset/mean-horses-kiss.md * feat: remove formatting * feat: handle fs errors * feat: remove astro:db special path handling * feat: add fs error * Update packages/astro/src/content/types-generator.ts * Update .changeset/mean-horses-kiss.md * Update errors-data.ts * Update .changeset/mean-horses-kiss.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/mean-horses-kiss.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> * Add file generation and flag for content intellisense (#11639) * feat: add type to infer input type of collection * refactor: * feat: generate json schema for content too * feat: generate a manifest of all the collections * refactor: unnecessary type * fix: only add content collections to manifest * chore: changeset * fix: generate file URLs * fix: flag it properly * fix: save in lower case * docs: add jsdoc to experimental option * nit: move function out * fix: match vscode flag name * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update serious-pumas-run.md * test: add tests * Add content layer support * Apply suggestions from code review * fix: test * Update .changeset/serious-pumas-run.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Apply suggestions from code review * Remove check for json --------- Co-authored-by: Matt Kane <m@mk.gg> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * nit: use same filesystem error as injectTypes * fix: code component was missing support for meta string (#11605) * fix: code component was missing support for meta string Fixed #11604 * Create odd-buttons-pay.md * <Code>: add reference link for meta prop * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/odd-buttons-pay.md * Update .changeset/odd-buttons-pay.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Deprecates exporting prerender with dynamic values (#11657) * wip * done i think * Add changeset * Use hook instead * Reorder hooks [skip ci] * Update .changeset/eleven-pens-glow.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Fix run * Fix link * Add link Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com> * More accurate migration [skip ci] --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com> * Use node parseArgs instead of yargs-parser and arg (#11645) * wip * done * Add changeset * Format * Update * Fix houston * Fix test * Fix test * [ci] format * resolve conflict --------- Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> Co-authored-by: Chris Swithinbank <swithinbank@gmail.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Julien Cayzac <jcayzac@users.noreply.github.com> Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com> Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com> Co-authored-by: Bjorn Lu <ematipico@users.noreply.github.com>
2024-08-14[ci] formatGravatar Bjorn Lu 1-1/+1
2024-08-14Use node parseArgs instead of yargs-parser and arg (#11645)Gravatar Bjorn Lu 35-216/+224
* wip * done * Add changeset * Format * Update * Fix houston * Fix test * Fix test
2024-08-14Deprecates exporting prerender with dynamic values (#11657)Gravatar Bjorn Lu 8-9/+212
* wip * done i think * Add changeset * Use hook instead * Reorder hooks [skip ci] * Update .changeset/eleven-pens-glow.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Fix run * Fix link * Add link Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com> * More accurate migration [skip ci] --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Sarah Rainsberger <sarah11918@users.noreply.github.com>
2024-08-14fix: code component was missing support for meta string (#11605)Gravatar Julien Cayzac 2-0/+31
* fix: code component was missing support for meta string Fixed #11604 * Create odd-buttons-pay.md * <Code>: add reference link for meta prop * Apply suggestions from code review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * Update .changeset/odd-buttons-pay.md * Update .changeset/odd-buttons-pay.md Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
2024-08-14nit: typo in changelog (#11696)Gravatar Erika 1-2/+2
2024-08-14[ci] release (#11686)astro@4.13.4@astrojs/node@8.3.3Gravatar Houston (Bot) 40-105/+98
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-08-13[ci] formatGravatar Emanuele Stoppa 1-9/+10
2024-08-13fix(actions): save error stack trace in memory (#11689)Gravatar Emanuele Stoppa 2-3/+31
2024-08-13Fix attribute rendering for boolean values (take 2) (#11660)Gravatar Bjorn Lu 5-36/+112
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Armand Philippot <59021693+ArmandPhilippot@users.noreply.github.com>