summaryrefslogtreecommitdiff
path: root/packages/integrations/mdx/test/mdx-namespace.test.js (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2023-05-18Document inlineStylesheets available astro version (#7117)Gravatar Bjorn Lu 1-0/+1
2023-05-18Parallelize rendering of sibling components to avoid async waterfalls (#7071)Gravatar Johannes Spohr 10-3/+210
* Parallelize rendering of sibling components to avoid async waterfalls * Catch and rethrow errors when eagerly rendering children * Catch `Response` in rendering stage and throw error * Add changeset * Fix test error message * Improve unit tests * Start async generators in non-buffered mode, and only start buffering once a component doesn't resolve immediatly * Add more documentation
2023-05-18chore: remove unused `content/internal` export (#7114)Gravatar Ben Holmes 1-1/+0
* chore: remove unused content/internal exp * chore: add back newline --------- Co-authored-by: bholmesdev <bholmesdev@gmail.com>
2023-05-18Fix customClientDirectives config default typo (#7119)Gravatar Bjorn Lu 1-1/+1
2023-05-18[ci] formatGravatar bluwy 1-11/+18
2023-05-18Add errors for unknown experimental keys (#7011)Gravatar Reuben Tier 6-12/+16
2023-05-17Fix: add `headings` to `.mdoc` render type (#7111)Gravatar Ben Holmes 2-0/+6
* fix: add `headings` to `.mdoc` render type * chore: changeset
2023-05-17[ci] formatGravatar bholmesdev 10-42/+41
2023-05-17Data collections and references (#6850)Gravatar Ben Holmes 60-345/+1987
* 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 1b0a8b00c2eca631a1b1005c256509295a414eef. * 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 1c3bfdc6b32450fab56f80cc840193b6a46c8776. * 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-17Fix weird periods in `NoMatchingRenderer` error (#7110)Gravatar Chris Swithinbank 2-3/+8
* Fix weird periods in `NoMatchingRenderer` error * Add changeset
2023-05-17Fix imports using ?raw and ?url not working when `experimental.assets` is ↵Gravatar Erika 4-0/+50
enabled (#7108)
2023-05-17[ci] formatGravatar matthewp 6-20/+32
2023-05-17Prevent removal of nested slots within islands (#7093)Gravatar Matthew Phillips 24-26/+288
* Prevent removal of nested slots within islands * Fix build errors
2023-05-17add warn message when using unsupported file types in pages/ (#6851)Gravatar Timo Zander 2-0/+12
Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-05-17feat: uncomment polymorphic type (#7069)Gravatar Erika 2-3/+23
2023-05-17[ci] formatGravatar matthewp 3-8/+4
2023-05-17HTML minification (#6706)Gravatar wulinsheng123 12-1/+169
* TDD pattern development * add compact property when the user run pnpm run build * add minification for pro * fix yaml file collision * fix yaml collision * fix pageage file * optimize unit test * fix revert code * fix comment * update yaml * fix default value * add test for dev * Update packages/astro/test/astro-minification-html.test.js Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update packages/astro/test/astro-minification-html.test.js Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update packages/astro/test/astro-minification-html.test.js Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update packages/astro/test/astro-minification-html.test.js Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update packages/astro/test/astro-minification-html.test.js Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> * Update the docs to reflect it's opt-in * Add tests for SSR * Document how the tests remove the doctype line * Expand on the changeset * rename for slice -100 * Updates based on PR comments * optimize description * Update packages/astro/src/@types/astro.ts Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> --------- Co-authored-by: wuls <linsheng.wu@beantechs.com> Co-authored-by: Matthew Phillips <matthew@skypack.dev> Co-authored-by: Matthew Phillips <matthew@matthewphillips.info> Co-authored-by: Emanuele Stoppa <my.burning@gmail.com> Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17[ci] formatGravatar matthewp 20-23/+21
2023-05-17feat: hybrid output (#6991)Gravatar Happydev 57-173/+669
* update config schema * adapt default route `prerender` value * adapt error message for hybrid output * core hybrid output support * add JSDocs for hybrid output * dev server hybrid output support * defer hybrid output check * update endpoint request warning * support `output=hybrid` in integrations * put constant variable out of for loop * revert: reapply back ssr plugin in ssr mode * change `prerender` option default * apply `prerender` by default in hybrid mode * simplfy conditional * update config schema * add `isHybridOutput` helper * more readable prerender condition * set default prerender value if no export is found * only add `pagesVirtualModuleId` ro rollup input in `output=static` * don't export vite plugin * remove unneeded check * don't prerender when it shouldn't * extract fallback `prerender` meta Extract the fallback `prerender` module meta out of the `scan` function. It shouldn't be its responsibility to handle that * pass missing argument to function * test: update cloudflare integration tests * test: update tests of vercel integration * test: update tests of node integration * test: update tests of netlify func integration * test: update tests of netlify edge integration * throw when `hybrid` mode is malconfigured * update node integraiton `output` warning * test(WIP): skip node prerendering tests for now * remove non-existant import * test: bring back prerendering tests * remove outdated comments * test: refactor test to support windows paths * remove outdated comments * apply sarah review Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> * docs: `experiment.hybridOutput` jsodcs * test: prevent import from being cached * refactor: extract hybrid output check to function * add `hybrid` to output warning in adapter hooks * chore: changeset * add `.js` extension to import * chore: use spaces instead of tabs for gh formating * resolve merge conflict * chore: move test to another file for consitency --------- Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca> Co-authored-by: Matthew Phillips <matthew@skypack.dev>
2023-05-17adding meta description tag to basics example (#6854)Gravatar Neto Ramalho 1-0/+1
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2023-05-17[ci] formatGravatar bholmesdev 4-8/+9
2023-05-17[Markdoc] `headings` and heading IDs (#7095)Gravatar Ben Holmes 24-60/+542
* deps: markdown-remark * wip: heading-ids function * chore: add `@astrojs/markdoc` to external * feat: `headings` support * fix: allow `render` config on headings * fix: nonexistent `userConfig` * test: headings, toc, astro component render * docs: README * chore: changeset * refactor: expose Markdoc helpers from runtime * fix: bad named exports (commonjsssss) * refactor: defaultNodes -> nodes * deps: github-slugger * fix: reset slugger cache on each render * fix: bad astroNodes import * docs: explain headingSlugger export * docs: add back double stringify comment * chore: bump to minor for internal exports change
2023-05-17Add `edge-light` and `worker` to vercel edge bundling (#7103)Gravatar Bjorn Lu 2-0/+7
2023-05-17[ci] formatGravatar bluwy 4-4/+7
2023-05-17Implement custom client directives (#7074)Gravatar Bjorn Lu 43-86/+765
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-05-17[ci] formatGravatar ematipico 1-3/+7
2023-05-17fix: middleware for API endpoints (#7106)Gravatar Emanuele Stoppa 10-24/+77
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
2023-05-17Add files field to packages (#7104)Gravatar Bjorn Lu 25-2/+116
2023-05-17Build edge/worker runtime with webworker ssr target (#7101)Gravatar Bjorn Lu 7-6/+21
2023-05-16refactor(assets): Move generation logic out of internal.ts (#7102)Gravatar Erika 4-125/+133
2023-05-16Update lockfile CI (#7105)Gravatar Bjorn Lu 1-4/+10
2023-05-16[ci] update lockfile (#7075)Gravatar Houston (Bot) 1-107/+109
Co-authored-by: FredKSchott <FredKSchott@users.noreply.github.com>
2023-05-16[ci] formatGravatar bluwy 2-3/+3
2023-05-16Add `workerd` and `worker` to cloudflare adapter bundling (#7092)Gravatar Johannes Spohr 10-277/+88
2023-05-16Fix e2e flaky tests (#7084)Gravatar Bjorn Lu 12-120/+230
2023-05-15Fix double prepended forward slash in certain cases (#7091)Gravatar Happydev 3-46/+98
* test: add test with no base * fix: don't always prepend a forward slash * chore: changeset * `'/' + base` ------> `prependForwardSlash(base)`
2023-05-15[ci] formatGravatar bluwy 1-1/+4
2023-05-15Escape closing script tag when using define:vars (#7044)Gravatar Steffan 4-3/+15
2023-05-15[ci] formatGravatar bluwy 3-3/+3
2023-05-15Inject analytics env (#6876)Gravatar Nathaniel Blackburn 5-0/+35
2023-05-15[ci] formatGravatar bluwy 2-12/+15
2023-05-15RSS: Fix string validation of pubDate (#7066)Gravatar Reuben Tier 3-1/+19
2023-05-15[ci] release (#7088)create-astro@3.1.5Gravatar Houston (Bot) 3-6/+7
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-15Fix `create-astro` regression (#7086)Gravatar Happydev 2-9/+5
2023-05-12[ci] release (#7077)create-astro@3.1.4@astrojs/node@5.1.3Gravatar Houston (Bot) 6-12/+14
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-12[ci] formatGravatar ematipico 1-1/+1
2023-05-12fix: don't exit the program if dependencies don't install (#7052)Gravatar Emanuele Stoppa 3-7/+25
2023-05-12[ci] formatGravatar matthewp 2-5/+5
2023-05-12Correct handle directory finds when using base in the Node adapter (#7076)Gravatar Matthew Phillips 3-4/+24
2023-05-11[ci] release (#7065)astro@2.4.5@astrojs/image@0.16.8Gravatar Houston (Bot) 16-27/+29
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>