Compare commits
3 commits
main
...
feat/chang
Author | SHA1 | Date | |
---|---|---|---|
|
096281db93 | ||
|
e635660a87 | ||
|
5a31724d60 |
70 changed files with 255 additions and 173 deletions
32
.changeset/afraid-dots-whisper.md
Normal file
32
.changeset/afraid-dots-whisper.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
'@astrojs/cloudflare': major
|
||||
'@astrojs/partytown': major
|
||||
'@astrojs/tailwind': major
|
||||
'@astrojs/netlify': major
|
||||
'@astrojs/sitemap': major
|
||||
'@astrojs/preact': major
|
||||
'@astrojs/svelte': major
|
||||
'@astrojs/vercel': major
|
||||
'@astrojs/react': major
|
||||
'@astrojs/solid-js': major
|
||||
'@astrojs/deno': major
|
||||
'@astrojs/node': major
|
||||
'@astrojs/lit': major
|
||||
'@astrojs/vue': major
|
||||
'create-astro': major
|
||||
'@astrojs/prism': major
|
||||
'@astrojs/rss': major
|
||||
'@astrojs/telemetry': major
|
||||
'@astrojs/webapi': major
|
||||
'astro': major
|
||||
'@astrojs/turbolinks': minor
|
||||
'@astrojs/alpinejs': minor
|
||||
'@astrojs/prefetch': minor
|
||||
'@astrojs/markdoc': minor
|
||||
'@astrojs/underscore-redirects': minor
|
||||
'@astrojs/image': minor
|
||||
'@astrojs/mdx': minor
|
||||
'@astrojs/internal-helpers': minor
|
||||
---
|
||||
|
||||
Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.
|
20
.changeset/twelve-baboons-obey.md
Normal file
20
.changeset/twelve-baboons-obey.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
'astro': minor
|
||||
---
|
||||
|
||||
Astro integrations now accept a logger. The logger is available to all hooks as
|
||||
an additional parameter:
|
||||
|
||||
```js
|
||||
// integration.js
|
||||
export function myIntegration(): AstroIntegration {
|
||||
return {
|
||||
name: "my-integration",
|
||||
hooks: {
|
||||
"astro:config:done": (options, { logger }) => {
|
||||
logger.info("Configure integration...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
2
.github/ISSUE_TEMPLATE/---01-bug-report.yml
vendored
|
@ -10,7 +10,7 @@ body:
|
|||
Thank you for taking the time to file a bug report! Please fill out this form as completely as possible.
|
||||
|
||||
✅ I am using the **latest version of Astro** and all plugins.
|
||||
✅ I am using a version of Node that supports ESM (`v14.18.0+`, or `v16.12.0+`)
|
||||
✅ I am using a version of Node that Astro supports (`>=18.14.1`)
|
||||
- type: input
|
||||
id: astro-version
|
||||
attributes:
|
||||
|
|
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
|
@ -33,7 +33,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
fail-fast: true
|
||||
steps:
|
||||
# Disable crlf so all OS can share the same Turbo cache
|
||||
|
@ -85,7 +85,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
@ -108,12 +108,12 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest]
|
||||
NODE_VERSION: [16, 18]
|
||||
NODE_VERSION: [18, 20]
|
||||
include:
|
||||
- os: macos-latest
|
||||
NODE_VERSION: 16
|
||||
NODE_VERSION: 18
|
||||
- os: windows-latest
|
||||
NODE_VERSION: 16
|
||||
NODE_VERSION: 18
|
||||
fail-fast: false
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
|
@ -155,7 +155,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
fail-fast: false
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
|
@ -192,7 +192,7 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
OS: [ubuntu-latest, windows-latest]
|
||||
NODE_VERSION: [16]
|
||||
NODE_VERSION: [18]
|
||||
env:
|
||||
NODE_VERSION: ${{ matrix.NODE_VERSION }}
|
||||
steps:
|
||||
|
|
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -38,7 +38,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -29,7 +29,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/scripts.yml
vendored
2
.github/workflows/scripts.yml
vendored
|
@ -37,7 +37,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
cache: "pnpm"
|
||||
|
||||
- name: Install dependencies
|
||||
|
|
2
.github/workflows/snapshot-release.yml
vendored
2
.github/workflows/snapshot-release.yml
vendored
|
@ -58,7 +58,7 @@ jobs:
|
|||
- name: Setup Node
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
node-version: 18
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
cache: "pnpm"
|
||||
|
||||
|
|
2
.nvmrc
2
.nvmrc
|
@ -1 +1 @@
|
|||
16.19.0
|
||||
18.14.1
|
||||
|
|
|
@ -10,7 +10,7 @@ We welcome contributions of any size and skill level. As an open source project,
|
|||
### Prerequisites
|
||||
|
||||
```shell
|
||||
node: "^>=16.12.0"
|
||||
node: "^>=18.14.1"
|
||||
pnpm: "^8.6.2"
|
||||
# otherwise, your build will fail
|
||||
```
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"module": "ES2020",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2020"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
"packages/*"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=16.12.0",
|
||||
"node": ">=18.14.1",
|
||||
"pnpm": ">=8.6.2"
|
||||
},
|
||||
"packageManager": "pnpm@8.6.2",
|
||||
|
@ -82,7 +82,7 @@
|
|||
"@types/node": "^18.16.18",
|
||||
"@typescript-eslint/eslint-plugin": "6.0.0",
|
||||
"@typescript-eslint/parser": "6.0.0",
|
||||
"esbuild": "^0.17.19",
|
||||
"esbuild": "^0.18.16",
|
||||
"eslint": "^8.43.0",
|
||||
"eslint-config-prettier": "^8.8.0",
|
||||
"eslint-plugin-no-only-tests": "^2.6.0",
|
||||
|
@ -93,6 +93,6 @@
|
|||
"prettier-plugin-astro": "^0.10.0",
|
||||
"tiny-glob": "^0.2.9",
|
||||
"turbo": "^1.10.3",
|
||||
"typescript": "~5.0.2"
|
||||
"typescript": "~5.1.6"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"homepage": "https://docs.astro.build/en/reference/api-reference/#prism-",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"build": "astro-scripts build \"src/**/*.ts\" && tsc",
|
||||
"build": "astro-scripts build \"src/**/*.ts\" && tsc -p ./tsconfig.json",
|
||||
"build:ci": "astro-scripts build \"src/**/*.ts\"",
|
||||
"dev": "astro-scripts dev \"src/**/*.ts\""
|
||||
},
|
||||
|
@ -39,6 +39,6 @@
|
|||
"astro-scripts": "workspace:*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist"
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"strictNullChecks": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,8 +13,8 @@ const CI_INSTRUCTIONS = {
|
|||
};
|
||||
|
||||
// Hardcode supported Node.js version so we don't have to read differently in CJS & ESM.
|
||||
const engines = '>=16.12.0';
|
||||
const skipSemverCheckIfAbove = 16;
|
||||
const engines = '>=18.14.1';
|
||||
const skipSemverCheckIfAbove = 19;
|
||||
|
||||
/** `astro *` */
|
||||
async function main() {
|
||||
|
|
|
@ -141,8 +141,8 @@
|
|||
"devalue": "^4.3.2",
|
||||
"diff": "^5.1.0",
|
||||
"es-module-lexer": "^1.3.0",
|
||||
"esbuild": "^0.17.19",
|
||||
"estree-walker": "3.0.0",
|
||||
"esbuild": "^0.18.16",
|
||||
"estree-walker": "^3.0.3",
|
||||
"execa": "^6.1.0",
|
||||
"fast-glob": "^3.2.12",
|
||||
"github-slugger": "^2.0.0",
|
||||
|
@ -224,7 +224,7 @@
|
|||
}
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0",
|
||||
"node": ">=18.14.1",
|
||||
"npm": ">=6.14.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import type { Node as ESTreeNode } from 'estree-walker';
|
||||
import type { ModuleInfo, PluginContext } from 'rollup';
|
||||
import type { Plugin as VitePlugin } from 'vite';
|
||||
import type { PluginMetadata as AstroPluginMetadata } from '../../../vite-plugin-astro/types';
|
||||
|
@ -36,7 +37,7 @@ async function doesParentImportChild(
|
|||
|
||||
const imports: Array<ImportDeclaration> = [];
|
||||
const exports: Array<ExportNamedDeclaration | ExportDefaultDeclaration> = [];
|
||||
walk(parentInfo.ast, {
|
||||
walk(parentInfo.ast as ESTreeNode, {
|
||||
enter(node) {
|
||||
if (node.type === 'ImportDeclaration') {
|
||||
imports.push(node as ImportDeclaration);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { parse } from 'acorn';
|
||||
import type { Node as ESTreeNode } from 'estree-walker';
|
||||
import { walk } from 'estree-walker';
|
||||
import MagicString from 'magic-string';
|
||||
import type { Plugin } from 'vite';
|
||||
|
@ -28,7 +29,7 @@ export default function astro(): Plugin {
|
|||
sourceType: 'module',
|
||||
});
|
||||
|
||||
walk(ast, {
|
||||
walk(ast as ESTreeNode, {
|
||||
enter(node: any) {
|
||||
// Transform `Astro.glob("./pages/*.astro")` to `Astro.glob(import.meta.glob("./pages/*.astro"), () => "./pages/*.astro")`
|
||||
// Also handle for `Astro2.glob()`
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
"declarationDir": "./dist",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"jsx": "preserve",
|
||||
"types": ["@types/dom-view-transitions", "network-information-types"]
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@
|
|||
"strip-json-comments": "^5.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"allowJs": true,
|
||||
"emitDeclarationOnly": false,
|
||||
"noEmit": true,
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"declarationDir": "./dist/types"
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/underscore-redirects": "^0.2.0",
|
||||
"@cloudflare/workers-types": "^4.20230518.0",
|
||||
"esbuild": "^0.17.19",
|
||||
"esbuild": "^0.18.16",
|
||||
"tiny-glob": "^0.2.9"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022",
|
||||
// TODO: Due to the shim for Deno imports in `server.ts`, we can't use moduleResolution: 'bundler' or the types get very weird.
|
||||
"moduleResolution": "Node"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"typeRoots": ["node_modules/@types", "node_modules/@netlify"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@
|
|||
"@astrojs/internal-helpers": "^0.1.0",
|
||||
"@astrojs/prism": "^2.1.2",
|
||||
"@markdoc/markdoc": "^0.3.0",
|
||||
"esbuild": "^0.17.19",
|
||||
"esbuild": "^0.18.16",
|
||||
"github-slugger": "^2.0.0",
|
||||
"gray-matter": "^4.0.3",
|
||||
"htmlparser2": "^9.0.0",
|
||||
|
@ -93,6 +93,6 @@
|
|||
"vite": "^4.4.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,14 +3,13 @@ import Markdoc from '@markdoc/markdoc';
|
|||
import type { AstroConfig, ContentEntryType } from 'astro';
|
||||
import matter from 'gray-matter';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import type * as rollup from 'rollup';
|
||||
import type { ErrorPayload as ViteErrorPayload } from 'vite';
|
||||
import type { ComponentConfig } from './config.js';
|
||||
import { MarkdocError, isComponentConfig, isValidUrl, prependForwardSlash } from './utils.js';
|
||||
// @ts-expect-error Cannot get the types here without `moduleResolution: 'nodenext'`
|
||||
import { emitESMImage } from 'astro/assets/utils';
|
||||
import path from 'node:path';
|
||||
import type * as rollup from 'rollup';
|
||||
import { htmlTokenTransform } from './html/transform/html-token-transform.js';
|
||||
import type { MarkdocConfigResult } from './load-config.js';
|
||||
import type { MarkdocIntegrationOptions } from './options.js';
|
||||
|
@ -198,8 +197,7 @@ async function emitOptimizedImages(
|
|||
const src = await emitESMImage(
|
||||
resolved.id,
|
||||
ctx.pluginContext.meta.watchMode,
|
||||
ctx.pluginContext.emitFile,
|
||||
{ config: ctx.astroConfig }
|
||||
ctx.pluginContext.emitFile
|
||||
);
|
||||
node.attributes.__optimizedSrc = src;
|
||||
} else {
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
// leave space, so organize imports doesn't mess up comments
|
||||
// @ts-expect-error Cannot find module 'astro/runtime/server/index.js' or its corresponding type declarations.
|
||||
import { unescapeHTML } from 'astro/runtime/server/index.js';
|
||||
|
||||
import { runHighlighterWithAstro } from '@astrojs/prism/dist/highlighter';
|
||||
import { unescapeHTML } from 'astro/runtime/server/index.js';
|
||||
import { Markdoc, type AstroMarkdocConfig } from '../config.js';
|
||||
|
||||
export default function prism(): AstroMarkdocConfig {
|
||||
|
@ -16,7 +13,7 @@ export default function prism(): AstroMarkdocConfig {
|
|||
// Use `unescapeHTML` to return `HTMLString` for Astro renderer to inline as HTML
|
||||
return unescapeHTML(
|
||||
`<pre class="${classLanguage}"><code class="${classLanguage}">${html}</code></pre>`
|
||||
);
|
||||
) as any;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -1,9 +1,6 @@
|
|||
// leave space, so organize imports doesn't mess up comments
|
||||
// @ts-expect-error Cannot find module 'astro/runtime/server/index.js' or its corresponding type declarations.
|
||||
import { unescapeHTML } from 'astro/runtime/server/index.js';
|
||||
|
||||
import Markdoc from '@markdoc/markdoc';
|
||||
import type { ShikiConfig } from 'astro';
|
||||
import { unescapeHTML } from 'astro/runtime/server/index.js';
|
||||
import type * as shikiTypes from 'shiki';
|
||||
import { getHighlighter } from 'shiki';
|
||||
import type { AstroMarkdocConfig } from '../config.js';
|
||||
|
@ -123,7 +120,7 @@ export default async function shiki({
|
|||
}
|
||||
|
||||
// Use `unescapeHTML` to return `HTMLString` for Astro renderer to inline as HTML
|
||||
return unescapeHTML(html);
|
||||
return unescapeHTML(html) as any;
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -6,7 +6,6 @@ import Markdoc, {
|
|||
type RenderableTreeNode,
|
||||
} from '@markdoc/markdoc';
|
||||
import type { AstroInstance } from 'astro';
|
||||
// @ts-expect-error Cannot find module 'astro/runtime/server/index.js' or its corresponding type declarations.
|
||||
import { createComponent, renderComponent } from 'astro/runtime/server/index.js';
|
||||
import type { AstroMarkdocConfig } from './config.js';
|
||||
import { setupHeadingConfig } from './heading-ids.js';
|
||||
|
@ -204,7 +203,7 @@ export function createContentComponent(
|
|||
return renderComponent(result, Renderer.name, Renderer, { stringifiedAst, config }, {});
|
||||
},
|
||||
propagation: 'self',
|
||||
});
|
||||
} as any);
|
||||
}
|
||||
|
||||
// statically define a partial MarkdocConfig which registers the required "html-tag" Markdoc tag when the "allowHTML" feature is enabled
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"module": "ES2020",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2020"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,6 +78,6 @@
|
|||
"vite": "^4.4.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { MarkdownVFile } from '@astrojs/markdown-remark';
|
||||
import { type Image, type Parent } from 'mdast';
|
||||
import type { Image, Parent } from 'mdast';
|
||||
import type { MdxJsxFlowElement, MdxjsEsm } from 'mdast-util-mdx';
|
||||
import { visit } from 'unist-util-visit';
|
||||
import { jsToTreeNode } from './utils.js';
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
"@astrojs/underscore-redirects": "^0.2.0",
|
||||
"@astrojs/webapi": "^2.2.0",
|
||||
"@netlify/functions": "^1.6.0",
|
||||
"esbuild": "^0.15.18"
|
||||
"esbuild": "^0.18.16"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"astro": "workspace:^2.9.2"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"typeRoots": ["node_modules/@types", "node_modules/@netlify"],
|
||||
"allowImportingTsExtensions": true
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,6 +50,6 @@
|
|||
"preact": "^10.6.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -62,6 +62,6 @@
|
|||
"react-dom": "^17.0.2 || ^18.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@
|
|||
"solid-js": "^1.4.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,6 +52,6 @@
|
|||
"svelte": "^3.55.0 || ^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
"@astrojs/webapi": "^2.2.0",
|
||||
"@vercel/analytics": "^0.1.11",
|
||||
"@vercel/nft": "^0.22.6",
|
||||
"esbuild": "^0.17.19",
|
||||
"esbuild": "^0.18.16",
|
||||
"fast-glob": "^3.2.12",
|
||||
"set-cookie-parser": "^2.6.0",
|
||||
"web-vitals": "^3.3.2"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import type { LocalImageService } from 'astro';
|
||||
// @ts-expect-error
|
||||
import squooshService from 'astro/assets/services/squoosh';
|
||||
import { sharedValidateOptions } from './shared';
|
||||
|
||||
|
@ -14,7 +13,9 @@ const service: LocalImageService = {
|
|||
props.width = inputtedWidth;
|
||||
}
|
||||
|
||||
return squooshService.getHTMLAttributes(props, serviceOptions);
|
||||
return squooshService.getHTMLAttributes
|
||||
? squooshService.getHTMLAttributes(props, serviceOptions)
|
||||
: {};
|
||||
},
|
||||
getURL(options) {
|
||||
const fileSrc = typeof options.src === 'string' ? options.src : options.src.src;
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -60,6 +60,6 @@
|
|||
"vue": "^3.2.30"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,6 +5,6 @@
|
|||
"allowJs": true,
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"target": "ES2021"
|
||||
"target": "ES2022"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist"
|
||||
}
|
||||
|
|
|
@ -13,7 +13,10 @@
|
|||
"bugs": "https://github.com/withastro/astro/issues",
|
||||
"homepage": "https://astro.build",
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
".": {
|
||||
"types": "./dist/types/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -45,6 +48,6 @@
|
|||
"mocha": "^9.2.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.12.0"
|
||||
"node": ">=18.14.1"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import dget from 'dlv';
|
||||
// @ts-expect-error `dset` is mispackaged: https://publint.dev/dset@3.1.2
|
||||
import { dset } from 'dset';
|
||||
import fs from 'node:fs';
|
||||
import os from 'node:os';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist",
|
||||
"declarationDir": "./dist/types"
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"include": ["src"],
|
||||
"compilerOptions": {
|
||||
"allowJs": true,
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"outDir": "./dist"
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
"mocha": "^9.2.2",
|
||||
"rollup": "^2.79.1",
|
||||
"tslib": "^2.5.3",
|
||||
"typescript": "~5.0.2",
|
||||
"typescript": "~5.1.6",
|
||||
"urlpattern-polyfill": "^1.0.0-rc5"
|
||||
},
|
||||
"scripts": {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"include": ["src/*"],
|
||||
"exclude": ["node_modules"],
|
||||
"compilerOptions": {
|
||||
"target": "ES2021",
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "node",
|
||||
"esModuleInterop": true,
|
||||
|
|
183
pnpm-lock.yaml
183
pnpm-lock.yaml
|
@ -32,13 +32,13 @@ importers:
|
|||
version: 18.16.18
|
||||
'@typescript-eslint/eslint-plugin':
|
||||
specifier: 6.0.0
|
||||
version: 6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.43.0)(typescript@5.0.2)
|
||||
version: 6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.43.0)(typescript@5.1.6)
|
||||
'@typescript-eslint/parser':
|
||||
specifier: 6.0.0
|
||||
version: 6.0.0(eslint@8.43.0)(typescript@5.0.2)
|
||||
version: 6.0.0(eslint@8.43.0)(typescript@5.1.6)
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
eslint:
|
||||
specifier: ^8.43.0
|
||||
version: 8.43.0
|
||||
|
@ -70,8 +70,8 @@ importers:
|
|||
specifier: ^1.10.3
|
||||
version: 1.10.3
|
||||
typescript:
|
||||
specifier: ~5.0.2
|
||||
version: 5.0.2
|
||||
specifier: ~5.1.6
|
||||
version: 5.1.6
|
||||
|
||||
benchmark:
|
||||
dependencies:
|
||||
|
@ -564,11 +564,11 @@ importers:
|
|||
specifier: ^1.3.0
|
||||
version: 1.3.0
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
estree-walker:
|
||||
specifier: 3.0.0
|
||||
version: 3.0.0
|
||||
specifier: ^3.0.3
|
||||
version: 3.0.3
|
||||
execa:
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0
|
||||
|
@ -3645,8 +3645,8 @@ importers:
|
|||
specifier: ^4.20230518.0
|
||||
version: 4.20230518.0
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
tiny-glob:
|
||||
specifier: ^0.2.9
|
||||
version: 0.2.9
|
||||
|
@ -4021,8 +4021,8 @@ importers:
|
|||
specifier: ^0.3.0
|
||||
version: 0.3.0
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
github-slugger:
|
||||
specifier: ^2.0.0
|
||||
version: 2.0.0
|
||||
|
@ -4301,7 +4301,7 @@ importers:
|
|||
version: 10.1.0
|
||||
remark-shiki-twoslash:
|
||||
specifier: ^3.1.3
|
||||
version: 3.1.3(typescript@5.0.2)
|
||||
version: 3.1.3(typescript@5.1.6)
|
||||
remark-toc:
|
||||
specifier: ^8.0.1
|
||||
version: 8.0.1
|
||||
|
@ -4450,8 +4450,8 @@ importers:
|
|||
specifier: ^1.6.0
|
||||
version: 1.6.0
|
||||
esbuild:
|
||||
specifier: ^0.15.18
|
||||
version: 0.15.18
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
devDependencies:
|
||||
'@netlify/edge-functions':
|
||||
specifier: ^2.0.0
|
||||
|
@ -4864,7 +4864,7 @@ importers:
|
|||
version: 2.4.2(svelte@3.59.1)(vite@4.4.6)
|
||||
svelte2tsx:
|
||||
specifier: ^0.6.15
|
||||
version: 0.6.15(svelte@3.59.1)(typescript@5.0.2)
|
||||
version: 0.6.15(svelte@3.59.1)(typescript@5.1.6)
|
||||
devDependencies:
|
||||
astro:
|
||||
specifier: workspace:*
|
||||
|
@ -4932,8 +4932,8 @@ importers:
|
|||
specifier: ^0.22.6
|
||||
version: 0.22.6
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
fast-glob:
|
||||
specifier: ^3.2.12
|
||||
version: 3.2.12
|
||||
|
@ -5409,7 +5409,7 @@ importers:
|
|||
version: 13.3.0(rollup@2.79.1)
|
||||
'@rollup/plugin-typescript':
|
||||
specifier: ^8.5.0
|
||||
version: 8.5.0(rollup@2.79.1)(tslib@2.5.3)(typescript@5.0.2)
|
||||
version: 8.5.0(rollup@2.79.1)(tslib@2.5.3)(typescript@5.1.6)
|
||||
'@types/chai':
|
||||
specifier: ^4.3.5
|
||||
version: 4.3.5
|
||||
|
@ -5441,8 +5441,8 @@ importers:
|
|||
specifier: ^2.5.3
|
||||
version: 2.5.3
|
||||
typescript:
|
||||
specifier: ~5.0.2
|
||||
version: 5.0.2
|
||||
specifier: ~5.1.6
|
||||
version: 5.1.6
|
||||
urlpattern-polyfill:
|
||||
specifier: ^1.0.0-rc5
|
||||
version: 1.0.0-rc5
|
||||
|
@ -5456,8 +5456,8 @@ importers:
|
|||
specifier: ^5.0.2
|
||||
version: 5.0.2
|
||||
esbuild:
|
||||
specifier: ^0.17.19
|
||||
version: 0.17.19
|
||||
specifier: ^0.18.16
|
||||
version: 0.18.16
|
||||
globby:
|
||||
specifier: ^12.2.0
|
||||
version: 12.2.0
|
||||
|
@ -5482,7 +5482,7 @@ importers:
|
|||
version: 7.0.0
|
||||
esbuild-plugin-copy:
|
||||
specifier: ^2.1.1
|
||||
version: 2.1.1(esbuild@0.17.19)
|
||||
version: 2.1.1(esbuild@0.18.16)
|
||||
execa:
|
||||
specifier: ^6.1.0
|
||||
version: 6.1.0
|
||||
|
@ -7553,6 +7553,7 @@ packages:
|
|||
cpu: [arm64]
|
||||
os: [android]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/android-arm64@0.18.16:
|
||||
|
@ -7578,6 +7579,7 @@ packages:
|
|||
cpu: [arm]
|
||||
os: [android]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/android-arm@0.18.16:
|
||||
|
@ -7594,6 +7596,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [android]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/android-x64@0.18.16:
|
||||
|
@ -7610,6 +7613,7 @@ packages:
|
|||
cpu: [arm64]
|
||||
os: [darwin]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/darwin-arm64@0.18.16:
|
||||
|
@ -7626,6 +7630,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [darwin]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/darwin-x64@0.18.16:
|
||||
|
@ -7642,6 +7647,7 @@ packages:
|
|||
cpu: [arm64]
|
||||
os: [freebsd]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/freebsd-arm64@0.18.16:
|
||||
|
@ -7658,6 +7664,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [freebsd]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/freebsd-x64@0.18.16:
|
||||
|
@ -7674,6 +7681,7 @@ packages:
|
|||
cpu: [arm64]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-arm64@0.18.16:
|
||||
|
@ -7690,6 +7698,7 @@ packages:
|
|||
cpu: [arm]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-arm@0.18.16:
|
||||
|
@ -7706,6 +7715,7 @@ packages:
|
|||
cpu: [ia32]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-ia32@0.18.16:
|
||||
|
@ -7731,6 +7741,7 @@ packages:
|
|||
cpu: [loong64]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-loong64@0.18.16:
|
||||
|
@ -7747,6 +7758,7 @@ packages:
|
|||
cpu: [mips64el]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-mips64el@0.18.16:
|
||||
|
@ -7763,6 +7775,7 @@ packages:
|
|||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-ppc64@0.18.16:
|
||||
|
@ -7779,6 +7792,7 @@ packages:
|
|||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-riscv64@0.18.16:
|
||||
|
@ -7795,6 +7809,7 @@ packages:
|
|||
cpu: [s390x]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-s390x@0.18.16:
|
||||
|
@ -7811,6 +7826,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [linux]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/linux-x64@0.18.16:
|
||||
|
@ -7827,6 +7843,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [netbsd]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/netbsd-x64@0.18.16:
|
||||
|
@ -7843,6 +7860,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [openbsd]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/openbsd-x64@0.18.16:
|
||||
|
@ -7859,6 +7877,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [sunos]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/sunos-x64@0.18.16:
|
||||
|
@ -7875,6 +7894,7 @@ packages:
|
|||
cpu: [arm64]
|
||||
os: [win32]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/win32-arm64@0.18.16:
|
||||
|
@ -7891,6 +7911,7 @@ packages:
|
|||
cpu: [ia32]
|
||||
os: [win32]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/win32-ia32@0.18.16:
|
||||
|
@ -7907,6 +7928,7 @@ packages:
|
|||
cpu: [x64]
|
||||
os: [win32]
|
||||
requiresBuild: true
|
||||
dev: false
|
||||
optional: true
|
||||
|
||||
/@esbuild/win32-x64@0.18.16:
|
||||
|
@ -8119,7 +8141,7 @@ packages:
|
|||
estree-util-build-jsx: 2.2.2
|
||||
estree-util-is-identifier-name: 2.1.0
|
||||
estree-util-to-js: 1.2.0
|
||||
estree-walker: 3.0.0
|
||||
estree-walker: 3.0.3
|
||||
hast-util-to-estree: 2.3.2
|
||||
markdown-extensions: 1.1.1
|
||||
periscopic: 3.1.0
|
||||
|
@ -8642,7 +8664,7 @@ packages:
|
|||
rollup: 3.20.1
|
||||
dev: false
|
||||
|
||||
/@rollup/plugin-typescript@8.5.0(rollup@2.79.1)(tslib@2.5.3)(typescript@5.0.2):
|
||||
/@rollup/plugin-typescript@8.5.0(rollup@2.79.1)(tslib@2.5.3)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-wMv1/scv0m/rXx21wD2IsBbJFba8wGF3ErJIr6IKRfRj49S85Lszbxb4DCo8iILpluTjk2GAAu9CoZt4G3ppgQ==}
|
||||
engines: {node: '>=8.0.0'}
|
||||
peerDependencies:
|
||||
|
@ -8659,7 +8681,7 @@ packages:
|
|||
resolve: 1.22.2
|
||||
rollup: 2.79.1
|
||||
tslib: 2.5.3
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
dev: true
|
||||
|
||||
/@rollup/pluginutils@3.1.0(rollup@2.79.1):
|
||||
|
@ -9161,7 +9183,7 @@ packages:
|
|||
/@types/yargs-parser@21.0.0:
|
||||
resolution: {integrity: sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==}
|
||||
|
||||
/@typescript-eslint/eslint-plugin@6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.43.0)(typescript@5.0.2):
|
||||
/@typescript-eslint/eslint-plugin@6.0.0(@typescript-eslint/parser@6.0.0)(eslint@8.43.0)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-xuv6ghKGoiq856Bww/yVYnXGsKa588kY3M0XK7uUW/3fJNNULKRfZfSBkMTSpqGG/8ZCXCadfh8G/z/B4aqS/A==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
|
@ -9173,10 +9195,10 @@ packages:
|
|||
optional: true
|
||||
dependencies:
|
||||
'@eslint-community/regexpp': 4.5.1
|
||||
'@typescript-eslint/parser': 6.0.0(eslint@8.43.0)(typescript@5.0.2)
|
||||
'@typescript-eslint/parser': 6.0.0(eslint@8.43.0)(typescript@5.1.6)
|
||||
'@typescript-eslint/scope-manager': 6.0.0
|
||||
'@typescript-eslint/type-utils': 6.0.0(eslint@8.43.0)(typescript@5.0.2)
|
||||
'@typescript-eslint/utils': 6.0.0(eslint@8.43.0)(typescript@5.0.2)
|
||||
'@typescript-eslint/type-utils': 6.0.0(eslint@8.43.0)(typescript@5.1.6)
|
||||
'@typescript-eslint/utils': 6.0.0(eslint@8.43.0)(typescript@5.1.6)
|
||||
'@typescript-eslint/visitor-keys': 6.0.0
|
||||
debug: 4.3.4
|
||||
eslint: 8.43.0
|
||||
|
@ -9186,13 +9208,13 @@ packages:
|
|||
natural-compare: 1.4.0
|
||||
natural-compare-lite: 1.4.0
|
||||
semver: 7.5.3
|
||||
ts-api-utils: 1.0.1(typescript@5.0.2)
|
||||
typescript: 5.0.2
|
||||
ts-api-utils: 1.0.1(typescript@5.1.6)
|
||||
typescript: 5.1.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/parser@6.0.0(eslint@8.43.0)(typescript@5.0.2):
|
||||
/@typescript-eslint/parser@6.0.0(eslint@8.43.0)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-TNaufYSPrr1U8n+3xN+Yp9g31vQDJqhXzzPSHfQDLcaO4tU+mCfODPxCwf4H530zo7aUBE3QIdxCXamEnG04Tg==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
|
@ -9204,11 +9226,11 @@ packages:
|
|||
dependencies:
|
||||
'@typescript-eslint/scope-manager': 6.0.0
|
||||
'@typescript-eslint/types': 6.0.0
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.0.2)
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6)
|
||||
'@typescript-eslint/visitor-keys': 6.0.0
|
||||
debug: 4.3.4
|
||||
eslint: 8.43.0
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -9221,7 +9243,7 @@ packages:
|
|||
'@typescript-eslint/visitor-keys': 6.0.0
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/type-utils@6.0.0(eslint@8.43.0)(typescript@5.0.2):
|
||||
/@typescript-eslint/type-utils@6.0.0(eslint@8.43.0)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-ah6LJvLgkoZ/pyJ9GAdFkzeuMZ8goV6BH7eC9FPmojrnX9yNCIsfjB+zYcnex28YO3RFvBkV6rMV6WpIqkPvoQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
|
@ -9231,12 +9253,12 @@ packages:
|
|||
typescript:
|
||||
optional: true
|
||||
dependencies:
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.0.2)
|
||||
'@typescript-eslint/utils': 6.0.0(eslint@8.43.0)(typescript@5.0.2)
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6)
|
||||
'@typescript-eslint/utils': 6.0.0(eslint@8.43.0)(typescript@5.1.6)
|
||||
debug: 4.3.4
|
||||
eslint: 8.43.0
|
||||
ts-api-utils: 1.0.1(typescript@5.0.2)
|
||||
typescript: 5.0.2
|
||||
ts-api-utils: 1.0.1(typescript@5.1.6)
|
||||
typescript: 5.1.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -9246,7 +9268,7 @@ packages:
|
|||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/typescript-estree@6.0.0(typescript@5.0.2):
|
||||
/@typescript-eslint/typescript-estree@6.0.0(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-2zq4O7P6YCQADfmJ5OTDQTP3ktajnXIRrYAtHM9ofto/CJZV3QfJ89GEaM2BNGeSr1KgmBuLhEkz5FBkS2RQhQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
|
@ -9261,13 +9283,13 @@ packages:
|
|||
globby: 11.1.0
|
||||
is-glob: 4.0.3
|
||||
semver: 7.5.4
|
||||
ts-api-utils: 1.0.1(typescript@5.0.2)
|
||||
typescript: 5.0.2
|
||||
ts-api-utils: 1.0.1(typescript@5.1.6)
|
||||
typescript: 5.1.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
||||
/@typescript-eslint/utils@6.0.0(eslint@8.43.0)(typescript@5.0.2):
|
||||
/@typescript-eslint/utils@6.0.0(eslint@8.43.0)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-SOr6l4NB6HE4H/ktz0JVVWNXqCJTOo/mHnvIte1ZhBQ0Cvd04x5uKZa3zT6tiodL06zf5xxdK8COiDvPnQ27JQ==}
|
||||
engines: {node: ^16.0.0 || >=18.0.0}
|
||||
peerDependencies:
|
||||
|
@ -9278,7 +9300,7 @@ packages:
|
|||
'@types/semver': 7.5.0
|
||||
'@typescript-eslint/scope-manager': 6.0.0
|
||||
'@typescript-eslint/types': 6.0.0
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.0.2)
|
||||
'@typescript-eslint/typescript-estree': 6.0.0(typescript@5.1.6)
|
||||
eslint: 8.43.0
|
||||
eslint-scope: 5.1.1
|
||||
semver: 7.5.4
|
||||
|
@ -11449,14 +11471,14 @@ packages:
|
|||
dev: false
|
||||
optional: true
|
||||
|
||||
/esbuild-plugin-copy@2.1.1(esbuild@0.17.19):
|
||||
/esbuild-plugin-copy@2.1.1(esbuild@0.18.16):
|
||||
resolution: {integrity: sha512-Bk66jpevTcV8KMFzZI1P7MZKZ+uDcrZm2G2egZ2jNIvVnivDpodZI+/KnpL3Jnap0PBdIHU7HwFGB8r+vV5CVw==}
|
||||
peerDependencies:
|
||||
esbuild: '>= 0.14.0'
|
||||
dependencies:
|
||||
chalk: 4.1.2
|
||||
chokidar: 3.5.3
|
||||
esbuild: 0.17.19
|
||||
esbuild: 0.18.16
|
||||
fs-extra: 10.1.0
|
||||
globby: 11.1.0
|
||||
dev: true
|
||||
|
@ -11619,6 +11641,7 @@ packages:
|
|||
'@esbuild/win32-arm64': 0.17.19
|
||||
'@esbuild/win32-ia32': 0.17.19
|
||||
'@esbuild/win32-x64': 0.17.19
|
||||
dev: false
|
||||
|
||||
/esbuild@0.18.16:
|
||||
resolution: {integrity: sha512-1xLsOXrDqwdHxyXb/x/SOyg59jpf/SH7YMvU5RNSU7z3TInaASNJWNFJ6iRvLvLETZMasF3d1DdZLg7sgRimRQ==}
|
||||
|
@ -11849,7 +11872,7 @@ packages:
|
|||
dependencies:
|
||||
'@types/estree-jsx': 1.0.0
|
||||
estree-util-is-identifier-name: 2.1.0
|
||||
estree-walker: 3.0.0
|
||||
estree-walker: 3.0.3
|
||||
dev: false
|
||||
|
||||
/estree-util-is-identifier-name@2.1.0:
|
||||
|
@ -11881,8 +11904,10 @@ packages:
|
|||
/estree-walker@2.0.2:
|
||||
resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
|
||||
|
||||
/estree-walker@3.0.0:
|
||||
resolution: {integrity: sha512-s6ceX0NFiU/vKPiKvFdR83U1Zffu7upwZsGwpoqfg5rbbq1l50WQ5hCeIvM6E6oD4shUHCYMsiFPns4Jk0YfMQ==}
|
||||
/estree-walker@3.0.3:
|
||||
resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
|
||||
dependencies:
|
||||
'@types/estree': 1.0.1
|
||||
dev: false
|
||||
|
||||
/esutils@2.0.3:
|
||||
|
@ -14575,12 +14600,12 @@ packages:
|
|||
typescript: 5.0.2
|
||||
dev: false
|
||||
|
||||
/network-information-types@0.1.1(typescript@5.0.4):
|
||||
/network-information-types@0.1.1(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-mLXNafJYOkiJB6IlF727YWssTRpXitR+tKSLyA5VAdBi3SOvLf5gtizHgxf241YHPWocnAO/fAhVrB/68tPHDw==}
|
||||
peerDependencies:
|
||||
typescript: '>= 3.0.0'
|
||||
dependencies:
|
||||
typescript: 5.0.4
|
||||
typescript: 5.1.6
|
||||
dev: false
|
||||
|
||||
/nice-try@1.0.5:
|
||||
|
@ -15123,7 +15148,7 @@ packages:
|
|||
resolution: {integrity: sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==}
|
||||
dependencies:
|
||||
'@types/estree': 1.0.1
|
||||
estree-walker: 3.0.0
|
||||
estree-walker: 3.0.3
|
||||
is-reference: 3.0.1
|
||||
dev: false
|
||||
|
||||
|
@ -16129,7 +16154,7 @@ packages:
|
|||
mdast-util-to-hast: 12.3.0
|
||||
unified: 10.1.2
|
||||
|
||||
/remark-shiki-twoslash@3.1.3(typescript@5.0.2):
|
||||
/remark-shiki-twoslash@3.1.3(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-4e8OH3ySOCw5wUbDcPszokOKjKuebOqlP2WlySvC7ITBOq27BiGsFlq+FNWhxppZ+JzhTWah4gQrnMjX3KDbAQ==}
|
||||
peerDependencies:
|
||||
typescript: '>3'
|
||||
|
@ -16140,9 +16165,9 @@ packages:
|
|||
fenceparser: 1.1.1
|
||||
regenerator-runtime: 0.13.11
|
||||
shiki: 0.10.1
|
||||
shiki-twoslash: 3.1.2(typescript@5.0.2)
|
||||
shiki-twoslash: 3.1.2(typescript@5.1.6)
|
||||
tslib: 2.1.0
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
unist-util-visit: 2.0.3
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
|
@ -16547,7 +16572,7 @@ packages:
|
|||
resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==}
|
||||
dev: true
|
||||
|
||||
/shiki-twoslash@3.1.2(typescript@5.0.2):
|
||||
/shiki-twoslash@3.1.2(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-JBcRIIizi+exIA/OUhYkV6jtyeZco0ykCkIRd5sgwIt1Pm4pz+maoaRZpm6SkhPwvif4fCA7xOtJOykhpIV64Q==}
|
||||
peerDependencies:
|
||||
typescript: '>3'
|
||||
|
@ -16556,7 +16581,7 @@ packages:
|
|||
'@typescript/vfs': 1.3.4
|
||||
fenceparser: 1.1.1
|
||||
shiki: 0.10.1
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
transitivePeerDependencies:
|
||||
- supports-color
|
||||
dev: true
|
||||
|
@ -17011,7 +17036,7 @@ packages:
|
|||
svelte: 3.59.1
|
||||
dev: false
|
||||
|
||||
/svelte2tsx@0.6.15(svelte@3.59.1)(typescript@5.0.2):
|
||||
/svelte2tsx@0.6.15(svelte@3.59.1)(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-+j6RmA3g5pPs1DHa/rdzJjjhZuCfWx0IbNPaR99A2bvOSPPY6BlVkBGU0urI+DGcWHhYEG28Flo942KqlAkpEQ==}
|
||||
peerDependencies:
|
||||
svelte: ^3.55 || ^4.0
|
||||
|
@ -17023,7 +17048,7 @@ packages:
|
|||
dedent-js: 1.0.1
|
||||
pascal-case: 3.1.2
|
||||
svelte: 3.59.1
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
dev: false
|
||||
|
||||
/svelte@3.59.1:
|
||||
|
@ -17268,13 +17293,13 @@ packages:
|
|||
/trough@2.1.0:
|
||||
resolution: {integrity: sha512-AqTiAOLcj85xS7vQ8QkAV41hPDIJ71XJB4RCUrzo/1GM2CQwhkJGaf9Hgr7BOugMRpgGUrqRg/DrBDl4H40+8g==}
|
||||
|
||||
/ts-api-utils@1.0.1(typescript@5.0.2):
|
||||
/ts-api-utils@1.0.1(typescript@5.1.6):
|
||||
resolution: {integrity: sha512-lC/RGlPmwdrIBFTX59wwNzqh7aR2otPNPR/5brHZm/XKFYKsfqxihXUe9pU3JI+3vGkl+vyCoNNnPhJn3aLK1A==}
|
||||
engines: {node: '>=16.13.0'}
|
||||
peerDependencies:
|
||||
typescript: '>=4.2.0'
|
||||
dependencies:
|
||||
typescript: 5.0.2
|
||||
typescript: 5.1.6
|
||||
dev: true
|
||||
|
||||
/ts-interface-checker@0.1.13:
|
||||
|
@ -17473,13 +17498,13 @@ packages:
|
|||
resolution: {integrity: sha512-wVORMBGO/FAs/++blGNeAVdbNKtIh1rbBL2EyQ1+J9lClJ93KiiKe8PmFIVdXhHcyv44SL9oglmfeSsndo0jRw==}
|
||||
engines: {node: '>=12.20'}
|
||||
hasBin: true
|
||||
|
||||
/typescript@5.0.4:
|
||||
resolution: {integrity: sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==}
|
||||
engines: {node: '>=12.20'}
|
||||
hasBin: true
|
||||
dev: false
|
||||
|
||||
/typescript@5.1.6:
|
||||
resolution: {integrity: sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==}
|
||||
engines: {node: '>=14.17'}
|
||||
hasBin: true
|
||||
|
||||
/ufo@1.1.2:
|
||||
resolution: {integrity: sha512-TrY6DsjTQQgyS3E3dBaOXf0TpPD8u9FVrVYmKVegJuFw51n/YB9XPt+U6ydzFG5ZIN7+DIjPbNmXoBj9esYhgQ==}
|
||||
dev: false
|
||||
|
@ -18667,7 +18692,7 @@ packages:
|
|||
id: file:packages/astro
|
||||
name: astro
|
||||
version: 2.9.2
|
||||
engines: {node: '>=16.12.0', npm: '>=6.14.0'}
|
||||
engines: {node: '>=18.14.1', npm: '>=6.14.0'}
|
||||
hasBin: true
|
||||
peerDependencies:
|
||||
sharp: '>=0.31.0'
|
||||
|
@ -18701,8 +18726,8 @@ packages:
|
|||
devalue: 4.3.2
|
||||
diff: 5.1.0
|
||||
es-module-lexer: 1.3.0
|
||||
esbuild: 0.17.19
|
||||
estree-walker: 3.0.0
|
||||
esbuild: 0.18.16
|
||||
estree-walker: 3.0.3
|
||||
execa: 6.1.0
|
||||
fast-glob: 3.2.12
|
||||
github-slugger: 2.0.0
|
||||
|
@ -18712,7 +18737,7 @@ packages:
|
|||
kleur: 4.1.5
|
||||
magic-string: 0.27.0
|
||||
mime: 3.0.0
|
||||
network-information-types: 0.1.1(typescript@5.0.4)
|
||||
network-information-types: 0.1.1(typescript@5.1.6)
|
||||
ora: 6.3.1
|
||||
p-limit: 4.0.0
|
||||
path-to-regexp: 6.2.1
|
||||
|
@ -18725,7 +18750,7 @@ packages:
|
|||
string-width: 5.1.2
|
||||
strip-ansi: 7.1.0
|
||||
tsconfig-resolver: 3.0.1
|
||||
typescript: 5.0.4
|
||||
typescript: 5.1.6
|
||||
unist-util-visit: 4.1.2
|
||||
vfile: 5.3.7
|
||||
vite: 4.4.6(@types/node@18.16.18)(sass@1.63.4)
|
||||
|
@ -18752,21 +18777,25 @@ packages:
|
|||
file:packages/astro/test/fixtures/css-assets/packages/font-awesome:
|
||||
resolution: {directory: packages/astro/test/fixtures/css-assets/packages/font-awesome, type: directory}
|
||||
name: '@test/astro-font-awesome-package'
|
||||
version: 0.0.1
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/multiple-renderers/renderers/one:
|
||||
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/one, type: directory}
|
||||
name: '@test/astro-renderer-one'
|
||||
version: 1.0.0
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/multiple-renderers/renderers/two:
|
||||
resolution: {directory: packages/astro/test/fixtures/multiple-renderers/renderers/two, type: directory}
|
||||
name: '@test/astro-renderer-two'
|
||||
version: 1.0.0
|
||||
dev: false
|
||||
|
||||
file:packages/astro/test/fixtures/solid-component/deps/solid-jsx-component:
|
||||
resolution: {directory: packages/astro/test/fixtures/solid-component/deps/solid-jsx-component, type: directory}
|
||||
name: '@test/solid-jsx-component'
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
solid-js: 1.7.6
|
||||
dev: false
|
||||
|
@ -18783,7 +18812,7 @@ packages:
|
|||
'@astrojs/webapi': 2.2.0
|
||||
'@netlify/functions': 1.6.0
|
||||
astro: file:packages/astro(@types/node@18.16.18)
|
||||
esbuild: 0.15.18
|
||||
esbuild: 0.18.16
|
||||
dev: false
|
||||
|
||||
file:packages/integrations/vercel(astro@2.9.2):
|
||||
|
@ -18799,7 +18828,7 @@ packages:
|
|||
'@vercel/analytics': 0.1.11
|
||||
'@vercel/nft': 0.22.6
|
||||
astro: file:packages/astro(@types/node@18.16.18)
|
||||
esbuild: 0.17.19
|
||||
esbuild: 0.18.16
|
||||
fast-glob: 3.2.12
|
||||
set-cookie-parser: 2.6.0
|
||||
web-vitals: 3.3.2
|
||||
|
|
|
@ -12,7 +12,7 @@ const defaultConfig = {
|
|||
minify: false,
|
||||
format: 'esm',
|
||||
platform: 'node',
|
||||
target: 'node16',
|
||||
target: 'node18',
|
||||
sourcemap: false,
|
||||
sourcesContent: false,
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"dependencies": {
|
||||
"@astrojs/webapi": "workspace:*",
|
||||
"arg": "^5.0.2",
|
||||
"esbuild": "^0.17.19",
|
||||
"esbuild": "^0.18.16",
|
||||
"globby": "^12.2.0",
|
||||
"kleur": "^4.1.4",
|
||||
"p-limit": "^4.0.0",
|
||||
|
|
|
@ -3,7 +3,8 @@
|
|||
"declaration": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
// All packages are built with ESBuild, so we can use `moduleResolution: 'bundler'`
|
||||
"moduleResolution": "Bundler",
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"verbatimModuleSyntax": true
|
||||
|
|
Loading…
Reference in a new issue