From faea63dff7a929dc221f8a6c92b38b471f6d0cb9 Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 15 Feb 2025 07:36:17 +0800 Subject: [PATCH 1/2] chore: drop @babel/plugin-proposal-class-properties --- examples/swiper-effect/package.json | 2 +- package.json | 2 +- .../__tests__/index.spec.ts | 62 +-- packages/babel-preset-taro/README.md | 18 +- packages/babel-preset-taro/index.js | 23 +- .../templates/default/package.json.tmpl | 5 +- packages/taro-components/babel.config.json | 10 +- packages/taro-framework-react/src/index.ts | 29 +- packages/taro-runtime/package.json | 8 +- packages/taro-runtime/rollup.config.ts | 63 +-- pnpm-lock.yaml | 399 +++++++----------- 11 files changed, 265 insertions(+), 356 deletions(-) diff --git a/examples/swiper-effect/package.json b/examples/swiper-effect/package.json index aaaa69d3dcbc..132ac2760fe8 100644 --- a/examples/swiper-effect/package.json +++ b/examples/swiper-effect/package.json @@ -57,7 +57,7 @@ }, "devDependencies": { "@babel/core": "^7.24.4", - "@babel/plugin-proposal-class-properties": "7.14.5", + "@babel/plugin-transform-class-properties": "7.25.9", "@babel/preset-react": "^7.24.1", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.5", "@tarojs/cli": "4.0.7", diff --git a/package.json b/package.json index 2393af77ea21..b3b532c33ede 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "@babel/core", "@babel/helper-plugin-utils", "@babel/parser", - "@babel/plugin-proposal-class-properties", + "@babel/plugin-transform-class-properties", "@babel/plugin-proposal-decorators", "@babel/plugin-proposal-do-expressions", "@babel/plugin-proposal-object-rest-spread", diff --git a/packages/babel-plugin-transform-taroapi/__tests__/index.spec.ts b/packages/babel-plugin-transform-taroapi/__tests__/index.spec.ts index 834ecdde1d88..7876a0238fe2 100644 --- a/packages/babel-plugin-transform-taroapi/__tests__/index.spec.ts +++ b/packages/babel-plugin-transform-taroapi/__tests__/index.spec.ts @@ -1,10 +1,13 @@ import * as babel from '@babel/core' import * as t from '@babel/types' -import * as definition from '../../taro-platform-h5/dist/definition.json' +import * as definition from '../../taro-platform-h5/definition/definition.json' import plugin from '../src' -type ImportType = babel.types.ImportSpecifier | babel.types.ImportDefaultSpecifier | babel.types.ImportNamespaceSpecifier +type ImportType = + | babel.types.ImportSpecifier + | babel.types.ImportDefaultSpecifier + | babel.types.ImportNamespaceSpecifier; const packageName = '@tarojs/taro-h5' const pluginOptions = [ @@ -12,9 +15,11 @@ const pluginOptions = [ { packageName, definition, - } + }, ] -const getNamedImports = (importSpecifiers: (t.ImportSpecifier | t.ImportDefaultSpecifier | t.ImportNamespaceSpecifier)[]) => { +const getNamedImports = ( + importSpecifiers: (t.ImportSpecifier | t.ImportDefaultSpecifier | t.ImportNamespaceSpecifier)[], +) => { return importSpecifiers.reduce((prev, curr) => { if (t.isImportSpecifier(curr)) { prev.add(((curr as t.ImportSpecifier).imported as babel.types.Identifier).name) @@ -22,10 +27,11 @@ const getNamedImports = (importSpecifiers: (t.ImportSpecifier | t.ImportDefaultS return prev }, new Set()) } -const babelTransform = (code = '') => babel.transform(code, { ast: true, configFile: false, plugins: [pluginOptions] }) +const babelTransform = (code = '') => + babel.transform(code, { ast: true, configFile: false, plugins: [pluginOptions] }) describe('babel-plugin-transform-taroapi', () => { - test('should work!', function () { + test('should work!', () => { const code = ` import Taro, { setStorage, initPxTransform, param } from '${packageName}'; initPxTransform(param) @@ -39,7 +45,7 @@ describe('babel-plugin-transform-taroapi', () => { expect(result?.code).toMatchSnapshot() }) - test('should leave other apis untouched', function () { + test('should leave other apis untouched', () => { const code = ` import Taro from '${packageName}' Taro.noop @@ -51,7 +57,9 @@ describe('babel-plugin-transform-taroapi', () => { const body = ast.program.body as [t.ImportDeclaration, t.ExpressionStatement] expect(t.isImportDeclaration(body[0])).toBeTruthy() expect(t.isExpressionStatement(body[1])).toBeTruthy() - const defaultImport = body[0].specifiers.find(v => t.isImportDefaultSpecifier(v)) as ImportType + const defaultImport = body[0].specifiers.find((v) => + t.isImportDefaultSpecifier(v), + ) as ImportType expect(defaultImport).toBeTruthy() const taroName = defaultImport.local.name @@ -59,16 +67,13 @@ describe('babel-plugin-transform-taroapi', () => { expect(namedImports).toEqual(new Set()) expect(t.isMemberExpression(body[1].expression)).toBeTruthy() - const obj = t.memberExpression( - t.identifier(taroName), - t.identifier('noop'), - ) + const obj = t.memberExpression(t.identifier(taroName), t.identifier('noop')) delete obj.optional - expect((body[1].expression as t.MemberExpression)).toMatchObject(obj) + expect(body[1].expression as t.MemberExpression).toMatchObject(obj) }) - test('should move static apis under "Taro"', function () { + test('should move static apis under "Taro"', () => { const code = ` import { noop } from '${packageName}'; noop; @@ -82,7 +87,7 @@ describe('babel-plugin-transform-taroapi', () => { const body = ast.program.body as [t.ImportDeclaration, t.ExpressionStatement] expect(t.isImportDeclaration(body[0])).toBeTruthy() expect(t.isExpressionStatement(body[1])).toBeTruthy() - const defaultImport = body[0].specifiers.find(v => t.isImportDefaultSpecifier(v)) + const defaultImport = body[0].specifiers.find((v) => t.isImportDefaultSpecifier(v)) expect(defaultImport).toBeTruthy() const taroName = defaultImport!.local.name @@ -90,13 +95,12 @@ describe('babel-plugin-transform-taroapi', () => { if (t.isCallExpression(body[1])) { memberExpression = ((body[1] as t.ExpressionStatement).expression as t.CallExpression).callee } - expect(memberExpression).toMatchObject(t.memberExpression( - t.identifier(taroName), - t.identifier('noop') - )) + expect(memberExpression).toMatchObject( + t.memberExpression(t.identifier(taroName), t.identifier('noop')), + ) }) - test('should not import taro duplicity', function () { + test('should not import taro duplicity', () => { const code = ` import { Component } from '${packageName}'; import Taro from '${packageName}'; @@ -108,13 +112,17 @@ describe('babel-plugin-transform-taroapi', () => { const result = babelTransform(code) expect(result?.code).toMatchSnapshot() const ast = result?.ast as t.File - const body = ast.program.body as [t.ImportDeclaration, t.ExpressionStatement, t.ExpressionStatement] + const body = ast.program.body as [ + t.ImportDeclaration, + t.ExpressionStatement, + t.ExpressionStatement, + ] expect(t.isImportDeclaration(body[0])).toBeTruthy() expect(t.isExpressionStatement(body[1])).toBeTruthy() expect(t.isExpressionStatement(body[2])).toBeTruthy() }) - test('should not go wrong when using an api twice', function () { + test('should not go wrong when using an api twice', () => { const code = ` import Taro from '${packageName}'; const animation = Taro.createAnimation({ @@ -132,7 +140,7 @@ describe('babel-plugin-transform-taroapi', () => { }).not.toThrowError() }) - test('should preserve default imports', function () { + test('should preserve default imports', () => { const code = ` import Taro from '${packageName}' console.log(Taro) @@ -141,7 +149,7 @@ describe('babel-plugin-transform-taroapi', () => { expect(result?.code).toMatchSnapshot() }) - test('should preserve assignments in left hands', function () { + test('should preserve assignments in left hands', () => { const code = ` import Taro from '${packageName}' let animation @@ -159,7 +167,7 @@ describe('babel-plugin-transform-taroapi', () => { expect(result?.code).toMatchSnapshot() }) - test('should support rename of imported names', function () { + test('should support rename of imported names', () => { const code = ` // import { inject as mobxInject, observer as mobxObserver } from '@tarojs/mobx' import { Component as TaroComponent } from '${packageName}'; @@ -169,7 +177,7 @@ describe('babel-plugin-transform-taroapi', () => { expect(result?.code).toMatchSnapshot() }) - test('should canIUse work or skip!', function () { + test('should canIUse work or skip!', () => { const code = ` import Taro from '${packageName}' function canIUse() {} @@ -181,7 +189,7 @@ describe('babel-plugin-transform-taroapi', () => { expect(result?.code).toMatchSnapshot() }) - test('should canIUse support!', function () { + test('should canIUse support!', () => { const code = ` import { canIUse as canUse } from '${packageName}'; // 对象的属性或方法 diff --git a/packages/babel-preset-taro/README.md b/packages/babel-preset-taro/README.md index 33fd18f1d0cf..c57e08b910f7 100644 --- a/packages/babel-preset-taro/README.md +++ b/packages/babel-preset-taro/README.md @@ -30,7 +30,7 @@ module.exports = { - `@babel/plugin-transform-runtime` - `@babel/plugin-proposal-decorators` -- `@babel/plugin-proposal-class-properties` +- `@babel/plugin-transform-class-properties` - `babel-plugin-dynamic-import-node`(小程序环境) #### 2. React @@ -150,7 +150,7 @@ import "core-js/modules/es.string.pad-end"; **默认值**:`false` -同时是 `@babel/preset-env`、`@babel/plugin-proposal-class-properties` 的 `loose` 配置项。 +同时是 `@babel/preset-env`、`@babel/plugin-transform-class-properties` 的 `loose` 配置项。 ### debug @@ -167,23 +167,23 @@ import "core-js/modules/es.string.pad-end"; ### spec `@babel/preset-env` 的 [spec](https://babeljs.io/docs/en/babel-preset-env#spec) 配置项。 - + ### configPath `@babel/preset-env` 的 [configPath](https://babeljs.io/docs/en/babel-preset-env#configpath) 配置项。 - + ### include `@babel/preset-env` 的 [include](https://babeljs.io/docs/en/babel-preset-env#include) 配置项。 - + ### exclude `@babel/preset-env` 的 [exclude](https://babeljs.io/docs/en/babel-preset-env#exclude) 配置项。 - + ### shippedProposals `@babel/preset-env` 的 [shippedProposals](https://babeljs.io/docs/en/babel-preset-env#shippedproposals) 配置项。 - + ### forceAllTransforms `@babel/preset-env` 的 [forceAllTransforms](https://babeljs.io/docs/en/babel-preset-env#forcealltransforms) 配置项。 @@ -203,7 +203,7 @@ import "core-js/modules/es.string.pad-end"; **默认值**:开发者根目录 `node_modules` 中的 `@babel/plugin-transform-runtime` 的路径。 -**类型**:`string` +**类型**:`string` `@babel/plugin-transform-runtime` 的 [absoluteRuntime](https://babeljs.io/docs/en/babel-plugin-transform-runtime#absoluteruntime) 配置项。 @@ -211,6 +211,6 @@ import "core-js/modules/es.string.pad-end"; **默认值**:开发者根目录 `node_modules` 中的 `@babel/plugin-transform-runtime` 的版本号。 -**类型**:`string` +**类型**:`string` `@babel/plugin-transform-runtime` 的 [version](https://babeljs.io/docs/en/babel-plugin-transform-runtime#version) 配置项。 diff --git a/packages/babel-preset-taro/index.js b/packages/babel-preset-taro/index.js index 98c36bb90e6b..55997d80e0c9 100644 --- a/packages/babel-preset-taro/index.js +++ b/packages/babel-preset-taro/index.js @@ -1,4 +1,4 @@ -const path = require('path') +const path = require('node:path') function hasBrowserslist() { const fs = require('@tarojs/helper').fs @@ -30,7 +30,7 @@ module.exports = (_, options = {}) => { const overrides = [] const isVite = options.compiler === 'vite' // vite 不需要 react 的 preset,在内部已经处理了 - const isReact = options.framework === 'react' || options.framework === 'preact' && !isVite + const isReact = options.framework === 'react' || (options.framework === 'preact' && !isVite) // vite 不需要 solid 的 preset,在内部已经处理了 const isSolid = options.framework === 'solid' && !isVite // vite 不需要 vue 的 preset,在内部已经处理了 @@ -50,7 +50,11 @@ module.exports = (_, options = {}) => { ...presetReactConfig, }, ]) - if (process.env.TARO_PLATFORM === 'web' && process.env.NODE_ENV !== 'production' && options.hot !== false) { + if ( + process.env.TARO_PLATFORM === 'web' && + process.env.NODE_ENV !== 'production' && + options.hot !== false + ) { if (options.framework === 'react') { plugins.push([require('react-refresh/babel'), { skipEnvCheck: true }]) } else if (options.framework === 'preact') { @@ -69,10 +73,7 @@ module.exports = (_, options = {}) => { uniqueTransform: true, }) } - presets.push([ - require('babel-plugin-transform-solid-jsx'), - solidOptions, - ]) + presets.push([require('babel-plugin-transform-solid-jsx'), solidOptions]) } if (isVue3) { @@ -159,9 +160,9 @@ module.exports = (_, options = {}) => { forceAllTransforms, } - let transformRuntimeCorejs = false + let transformRuntimeCoreJs = false if (useBuiltIns === 'usage') { - transformRuntimeCorejs = 3 + transformRuntimeCoreJs = true } else { envOptions.useBuiltIns = useBuiltIns if (useBuiltIns === 'entry') { @@ -183,14 +184,14 @@ module.exports = (_, options = {}) => { legacy: decoratorsLegacy !== false, }, ], - [require('@babel/plugin-proposal-class-properties'), { loose }] + [require('@babel/plugin-transform-class-properties'), { loose }], ) plugins.push([ require('@babel/plugin-transform-runtime'), { regenerator: true, - corejs: transformRuntimeCorejs, + corejs: transformRuntimeCoreJs, helpers: true, useESModules: process.env.NODE_ENV !== 'test', absoluteRuntime, diff --git a/packages/taro-cli/templates/default/package.json.tmpl b/packages/taro-cli/templates/default/package.json.tmpl index b33bbb79799f..862177c571e6 100644 --- a/packages/taro-cli/templates/default/package.json.tmpl +++ b/packages/taro-cli/templates/default/package.json.tmpl @@ -76,7 +76,7 @@ "devDependencies": { "@babel/core": "^7.24.4", "@tarojs/cli": "{{ version }}", - "@babel/plugin-proposal-class-properties": "7.14.5", + "@babel/plugin-transform-class-properties": "7.25.9", "@types/webpack-env": "^1.13.6",{{#if (includes "React" "Preact" s=framework)}} "@types/react": "^18.0.0",{{/if}}{{#if (eq compiler "Webpack5") }} "webpack": "5.91.0", @@ -111,7 +111,7 @@ }{{/if}}{{#if (eq compiler "Vite") }} "devDependencies": { "@babel/core": "^7.24.4", - "@babel/plugin-proposal-class-properties": "7.14.5", + "@babel/plugin-transform-class-properties": "7.25.9", "@tarojs/cli": "{{ version }}", "@tarojs/vite-runner": "{{ version }}", "babel-preset-taro": "{{ version }}", @@ -140,4 +140,3 @@ "postcss": "^8.4.38" }{{/if}} } - diff --git a/packages/taro-components/babel.config.json b/packages/taro-components/babel.config.json index fc8de2cceac9..ab98dccb0661 100644 --- a/packages/taro-components/babel.config.json +++ b/packages/taro-components/babel.config.json @@ -1,11 +1,5 @@ { - "presets": [ - "@babel/preset-react", - "power-assert" - ], - "plugins": [ - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread" - ], + "presets": ["@babel/preset-react", "power-assert"], + "plugins": ["@babel/plugin-transform-class-properties", "@babel/plugin-proposal-object-rest-spread"], "babelrcRoots": ["./h5/*"] } diff --git a/packages/taro-framework-react/src/index.ts b/packages/taro-framework-react/src/index.ts index 70f1dabe2bd5..eef4c0291a45 100644 --- a/packages/taro-framework-react/src/index.ts +++ b/packages/taro-framework-react/src/index.ts @@ -13,9 +13,11 @@ import type { IPluginContext } from '@tarojs/service' import type { IProjectConfig } from '@tarojs/taro/types/compile' import type { PluginOption } from 'vite' -export type Frameworks = 'react' | 'preact' +export type Frameworks = 'react' | 'preact'; -export function isReactLike(framework: IProjectConfig['framework'] = 'react'): framework is Frameworks { +export function isReactLike( + framework: IProjectConfig['framework'] = 'react', +): framework is Frameworks { return ['react', 'preact'].includes(framework) } @@ -52,7 +54,12 @@ export default (ctx: IPluginContext) => { const { compiler } = opts if (compiler.type === 'webpack5') { // 提供给 webpack5 依赖预编译收集器的第三方依赖 - const deps = ['react', 'react-dom', 'react/jsx-runtime', '@tarojs/plugin-framework-react/dist/runtime'] + const deps = [ + 'react', + 'react-dom', + 'react/jsx-runtime', + '@tarojs/plugin-framework-react/dist/runtime', + ] compiler.prebundle ||= {} const prebundleOptions = compiler.prebundle prebundleOptions.include ||= [] @@ -63,14 +70,14 @@ export default (ctx: IPluginContext) => { const taroReactPlugin: esbuild.Plugin = { name: 'taroReactPlugin', - setup (build) { + setup(build) { build.onLoad({ filter: REG_TARO_H5 }, ({ path }) => { const content = fs.readFileSync(path).toString() return { contents: require('./api-loader')(content), } }) - } + }, } prebundleOptions.esbuild ||= {} @@ -95,7 +102,7 @@ export default (ctx: IPluginContext) => { }) } -function setAlias (framework: Frameworks, chain) { +function setAlias(framework: Frameworks, chain) { const alias = chain.resolve.alias if (framework === 'preact') { alias.set('react', 'preact/compat') @@ -105,13 +112,13 @@ function setAlias (framework: Frameworks, chain) { } } -function VitePresetPlugin (framework: Frameworks): PluginOption { +function VitePresetPlugin(framework: Frameworks): PluginOption { return framework === 'preact' ? require('@preact/preset-vite').preact({ babel: { plugins: [ ['@babel/plugin-proposal-decorators', { legacy: true }], - ['@babel/plugin-proposal-class-properties', { loose: true }], + ['@babel/plugin-transform-class-properties', { loose: true }], ], }, }) @@ -119,16 +126,16 @@ function VitePresetPlugin (framework: Frameworks): PluginOption { babel: { plugins: [ ['@babel/plugin-proposal-decorators', { legacy: true }], - ['@babel/plugin-proposal-class-properties', { loose: true }], + ['@babel/plugin-transform-class-properties', { loose: true }], ], }, }) } -function viteCommonPlugin (framework: Frameworks): PluginOption { +function viteCommonPlugin(framework: Frameworks): PluginOption { return { name: 'taro-react:common', - config () { + config() { const alias = framework === 'preact' ? [ diff --git a/packages/taro-runtime/package.json b/packages/taro-runtime/package.json index ad6d2bd2096d..c96ddcb58431 100644 --- a/packages/taro-runtime/package.json +++ b/packages/taro-runtime/package.json @@ -31,14 +31,14 @@ "node": ">= 18" }, "dependencies": { - "tslib": "^2.6.2", - "@tarojs/shared": "workspace:*" + "@tarojs/shared": "workspace:*", + "tslib": "^2.6.2" }, "devDependencies": { + "@rollup/plugin-typescript": "^12.1.2", "@types/react": "^18.2.79", "@vue/runtime-core": "^3.4.23", "lodash": "^4.17.21", - "react": "^18.2.0", - "rollup-plugin-ts": "^3.4.5" + "react": "^18.2.0" } } diff --git a/packages/taro-runtime/rollup.config.ts b/packages/taro-runtime/rollup.config.ts index a330cb4b4fce..2d8ff7c53866 100644 --- a/packages/taro-runtime/rollup.config.ts +++ b/packages/taro-runtime/rollup.config.ts @@ -1,7 +1,7 @@ +import ts from '@rollup/plugin-typescript' import _ from 'lodash' import { defineConfig } from 'rollup' import externals from 'rollup-plugin-node-externals' -import ts from 'rollup-plugin-ts' import type { RollupOptions } from 'rollup' @@ -9,40 +9,43 @@ const baseConfig = { input: 'src/index.ts', output: { sourcemap: true, - exports: 'named' + exports: 'named', }, - plugins: [ - externals(), - ts(), - ] + plugins: [externals(), ts()], } -const variesConfig: RollupOptions[] = [{ - output: { - dir: 'dist', - preserveModules: true, - preserveModulesRoot: 'src', +const variesConfig: RollupOptions[] = [ + { + output: { + dir: 'dist', + preserveModules: true, + preserveModulesRoot: 'src', + }, }, -}, { - output: { - file: 'dist/index.cjs.js', - format: 'cjs', + { + output: { + file: 'dist/index.cjs.js', + format: 'cjs', + }, }, -}, { - output: { - file: 'dist/runtime.esm.js', - format: 'es', + { + output: { + file: 'dist/runtime.esm.js', + format: 'es', + }, }, -}] +] -export default defineConfig(variesConfig.map(v => { - const customizer = function (objValue, srcValue) { - if (Array.isArray(objValue)) { - return objValue.concat(srcValue) - } - if (typeof objValue === 'object') { - return _.mergeWith({}, objValue, srcValue, customizer) +export default defineConfig( + variesConfig.map((v) => { + const customizer = (objValue, srcValue) => { + if (Array.isArray(objValue)) { + return objValue.concat(srcValue) + } + if (typeof objValue === 'object') { + return _.mergeWith({}, objValue, srcValue, customizer) + } } - } - return _.mergeWith({}, baseConfig, v, customizer) -})) + return _.mergeWith({}, baseConfig, v, customizer) + }), +) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59b33af96261..c38a770558dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,9 +7,9 @@ settings: overrides: browserslist: ^4.23.0 -packageExtensionsChecksum: ffdb8f7be1e672e0c076ce17ace599e8 +packageExtensionsChecksum: sha256-iKU0hkhWK/NG/KIaaCQKpLJizIsxCs1Ckrqk+8GTYMM= -pnpmfileChecksum: veqnxkzp44tooqnzzbrnqoluee +pnpmfileChecksum: sha256-mYI6bRZewNyF23ild9F+kBHOlbRFqubVkmPGMgBlHj8= importers: @@ -35,7 +35,7 @@ importers: version: 17.8.1 '@rollup/plugin-alias': specifier: ^5.1.0 - version: https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.1.0.tgz(rollup@4.18.0) + version: 5.1.0(rollup@4.18.0) '@rollup/plugin-babel': specifier: ^6.0.4 version: 6.0.4(@babel/core@7.24.4)(@types/babel__core@7.20.5)(rollup@4.18.0) @@ -273,6 +273,13 @@ importers: '@napi-rs/triples': specifier: 1.2.0 version: 1.2.0 + devDependencies: + '@napi-rs/cli': + specifier: 3.0.0-alpha.5 + version: 3.0.0-alpha.5 + ava: + specifier: 5.3.1 + version: 5.3.1 optionalDependencies: '@tarojs/binding-darwin-arm64': specifier: workspace:* @@ -286,13 +293,6 @@ importers: '@tarojs/binding-win32-x64-msvc': specifier: workspace:* version: link:../../npm/win32-x64-msvc - devDependencies: - '@napi-rs/cli': - specifier: 3.0.0-alpha.5 - version: 3.0.0-alpha.5 - ava: - specifier: 5.3.1 - version: 5.3.1 npm/darwin-arm64: {} @@ -1033,8 +1033,6 @@ importers: specifier: 13.6.4 version: 13.6.4(react-native@0.73.10(@babel/core@7.24.4)(@babel/preset-env@7.24.6(@babel/core@7.24.4))(react@18.3.1))(react@18.3.1) - packages/taro-components/loader: {} - packages/taro-extend: devDependencies: '@tarojs/runtime': @@ -2273,6 +2271,9 @@ importers: specifier: ^2.6.2 version: 2.6.2 devDependencies: + '@rollup/plugin-typescript': + specifier: ^12.1.2 + version: 12.1.2(tslib@2.6.2) '@types/react': specifier: ^18.2.79 version: 18.3.3 @@ -2285,9 +2286,6 @@ importers: react: specifier: ^18.2.0 version: 18.3.1 - rollup-plugin-ts: - specifier: ^3.4.5 - version: 3.4.5(@babel/core@7.24.4)(@babel/plugin-transform-runtime@7.24.6(@babel/core@7.24.4))(@babel/preset-env@7.24.6(@babel/core@7.24.4))(@babel/preset-typescript@7.24.6(@babel/core@7.24.4))(@babel/runtime@7.24.6)(@swc/core@1.3.96)(rollup@4.18.0)(typescript@5.4.5) packages/taro-runtime-rn: dependencies: @@ -4548,6 +4546,7 @@ packages: '@humanwhocodes/config-array@0.11.14': resolution: {integrity: sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg==, tarball: https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.14.tgz} engines: {node: '>=10.10.0'} + deprecated: Use @eslint/config-array instead '@humanwhocodes/module-importer@1.0.1': resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==, tarball: https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz} @@ -4555,6 +4554,7 @@ packages: '@humanwhocodes/object-schema@2.0.3': resolution: {integrity: sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==, tarball: https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz} + deprecated: Use @eslint/object-schema instead '@hutson/parse-repository-url@3.0.2': resolution: {integrity: sha512-H9XAx3hc0BQHY6l+IFSWHDySypcXsvsuLhgYLUGywmJ5pswRVQJUHpOsobnLYp2ZUaUlKiKDrgWWhosOwAEM8Q==, tarball: https://registry.npmjs.org/@hutson/parse-repository-url/-/parse-repository-url-3.0.2.tgz} @@ -5325,9 +5325,8 @@ packages: '@rnx-kit/tools-react-native@1.3.5': resolution: {integrity: sha512-fc+3hxdlicW3GEhI0Umjj+rnVLSLuxVJoGvUBwWvcaCnlNaaTssBjhd7xSvlfLDrgtuXxhBruA76wdDdZI8tiQ==, tarball: https://registry.npmjs.org/@rnx-kit/tools-react-native/-/tools-react-native-1.3.5.tgz} - '@rollup/plugin-alias@https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.1.0.tgz': + '@rollup/plugin-alias@5.1.0': resolution: {integrity: sha512-lpA3RZ9PdIG7qqhEfv79tBffNaoDuukFDrmhLqg9ifv99u/ehn+lOg30x2zmhf8AQqQUZaMk/B9fZraQ6/acDQ==, tarball: https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.1.0.tgz} - version: 5.1.0 engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 @@ -5420,6 +5419,19 @@ packages: tslib: optional: true + '@rollup/plugin-typescript@12.1.2': + resolution: {integrity: sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==, tarball: https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-12.1.2.tgz} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.14.0||^3.0.0||^4.0.0 + tslib: '*' + typescript: '>=3.7.0' + peerDependenciesMeta: + rollup: + optional: true + tslib: + optional: true + '@rollup/pluginutils@3.1.0': resolution: {integrity: sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==, tarball: https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz} engines: {node: '>= 8.0.0'} @@ -5801,7 +5813,7 @@ packages: os: [win32] '@tarojs/parse-css-to-stylesheet@0.0.69': - resolution: {integrity: sha512-v9P3vEhAcbBqfv1d/tTLn8fYQzxjqHo4MckbrBksN2MNIaKxaeTWOsFudzOVcFrkPuqBatsCoPXevePDwKLXrw==} + resolution: {integrity: sha512-v9P3vEhAcbBqfv1d/tTLn8fYQzxjqHo4MckbrBksN2MNIaKxaeTWOsFudzOVcFrkPuqBatsCoPXevePDwKLXrw==, tarball: https://registry.npmjs.org/@tarojs/parse-css-to-stylesheet/-/parse-css-to-stylesheet-0.0.69.tgz} engines: {node: '>= 10'} '@tarojs/plugin-doctor-darwin-arm64@0.0.13': @@ -5864,7 +5876,7 @@ packages: os: [win32] '@tarojs/plugin-doctor@0.0.13': - resolution: {integrity: sha512-X4aq/VS9Xr5UYkiZv5T0vSx1OycuzjYgbJDFs4YPWwJDaY1LOzn8Nlzb/rQchkBlxDPHmqUQQvejL0o6+REgbw==} + resolution: {integrity: sha512-X4aq/VS9Xr5UYkiZv5T0vSx1OycuzjYgbJDFs4YPWwJDaY1LOzn8Nlzb/rQchkBlxDPHmqUQQvejL0o6+REgbw==, tarball: https://registry.npmjs.org/@tarojs/plugin-doctor/-/plugin-doctor-0.0.13.tgz} engines: {node: '>= 10'} '@testing-library/jest-dom@5.17.0': @@ -5873,6 +5885,11 @@ packages: '@testing-library/jest-native@5.4.3': resolution: {integrity: sha512-/sSDGaOuE+PJ1Z9Kp4u7PQScSVVXGud59I/qsBFFJvIbcn4P6yYw6cBnBmbPF+X9aRIsTJRDl6gzw5ZkJNm66w==, tarball: https://registry.npmjs.org/@testing-library/jest-native/-/jest-native-5.4.3.tgz} + deprecated: |- + DEPRECATED: This package is no longer maintained. + Please use the built-in Jest matchers available in @testing-library/react-native v12.4+. + + See migration guide: https://callstack.github.io/react-native-testing-library/docs/migration/jest-matchers peerDependencies: react: '>=16.0.0' react-native: '>=0.59' @@ -6536,6 +6553,7 @@ packages: '@xmldom/xmldom@0.7.13': resolution: {integrity: sha512-lm2GW5PkosIzccsaZIz7tp8cPADSIlIHWDFTR1N0SzfinhhYgeIQjFMz4rYzanCScr3DqQLeomUDArp6MWKm+g==, tarball: https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.7.13.tgz} engines: {node: '>=10.0.0'} + deprecated: this version is no longer supported, please update to at least 0.8.* '@xmldom/xmldom@0.8.10': resolution: {integrity: sha512-2WALfTl4xo2SkGCYRt6rDTFfk9R1czmBvUQy12gK2KuRKIpWEhcbbzy8EZXtz/jkRqHX8bFEc6FC1HjX4TUWYw==, tarball: https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.10.tgz} @@ -6577,6 +6595,7 @@ packages: acorn-import-assertions@1.9.0: resolution: {integrity: sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==, tarball: https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz} + deprecated: package has been renamed to acorn-import-attributes peerDependencies: acorn: ^8 @@ -6691,6 +6710,10 @@ packages: engines: {'0': node >= 0.8.0} hasBin: true + ansi-regex@3.0.1: + resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==, tarball: https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz} + engines: {node: '>=4'} + ansi-regex@4.1.1: resolution: {integrity: sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==, tarball: https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz} engines: {node: '>=6'} @@ -6703,11 +6726,6 @@ packages: resolution: {integrity: sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==, tarball: https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz} engines: {node: '>=12'} - ansi-regex@https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz: - resolution: {integrity: sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==, tarball: https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz} - version: 3.0.1 - engines: {node: '>=4'} - ansi-styles@3.2.1: resolution: {integrity: sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==, tarball: https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz} engines: {node: '>=4'} @@ -7095,10 +7113,6 @@ packages: balanced-match@2.0.0: resolution: {integrity: sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA==, tarball: https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz} - balanced-match@https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz: - resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==, tarball: https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz} - version: 1.0.2 - base64-arraybuffer@0.1.4: resolution: {integrity: sha512-a1eIFi4R9ySrbiMuyTGx5e92uRH5tQY6kArNcFaKBUleIoLjdjBg7Zxm3Mqm3Kmkf27HLR/1fnxX9q8GQ7Iavg==, tarball: https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-0.1.4.tgz} engines: {node: '>= 0.6.0'} @@ -7162,6 +7176,7 @@ packages: boolean@3.2.0: resolution: {integrity: sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==, tarball: https://registry.npmjs.org/boolean/-/boolean-3.2.0.tgz} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. boxen@1.3.0: resolution: {integrity: sha512-TNPjfTr432qx7yOjQyaXm3dSR0MH9vXp7eT1BFSl/C51g+EFnOR9hTg1IreahGBmDNCehscshe45f+C1TBZbLw==, tarball: https://registry.npmjs.org/boxen/-/boxen-1.3.0.tgz} @@ -7184,14 +7199,6 @@ packages: brace-expansion@2.0.1: resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==, tarball: https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz} - brace-expansion@https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz: - resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==, tarball: https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz} - version: 1.1.11 - - brace-expansion@https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==, tarball: https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz} - version: 2.0.1 - braces@2.3.2: resolution: {integrity: sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==, tarball: https://registry.npmjs.org/braces/-/braces-2.3.2.tgz} engines: {node: '>=0.10.0'} @@ -7669,10 +7676,6 @@ packages: concat-map@0.0.1: resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, tarball: https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz} - concat-map@https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz: - resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==, tarball: https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz} - version: 0.0.1 - concat-stream@1.6.2: resolution: {integrity: sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==, tarball: https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz} engines: {'0': node >= 0.8} @@ -8891,11 +8894,13 @@ packages: eslint@8.41.0: resolution: {integrity: sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==, tarball: https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==, tarball: https://registry.npmjs.org/eslint/-/eslint-8.57.0.tgz} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true espower-location-detector@1.0.0: @@ -9389,10 +9394,6 @@ packages: fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, tarball: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz} - fs.realpath@https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz: - resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==, tarball: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz} - version: 1.0.0 - fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==, tarball: https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -9547,11 +9548,6 @@ packages: engines: {node: '>=12'} deprecated: Glob versions prior to v9 are no longer supported - glob@https://registry.npmjs.org/glob/-/glob-7.2.3.tgz: - resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==, tarball: https://registry.npmjs.org/glob/-/glob-7.2.3.tgz} - version: 7.2.3 - deprecated: Glob versions prior to v9 are no longer supported - global-agent@3.0.0: resolution: {integrity: sha512-PT6XReJ+D07JvGoxQMkT6qji/jVNfX/h364XHZOWeRzy64sSFr+xJ5OX7LI3b4MPQzdL4H8Y8M0xzPpsVMwA8Q==, tarball: https://registry.npmjs.org/global-agent/-/global-agent-3.0.0.tgz} engines: {node: '>=10.0'} @@ -10006,21 +10002,11 @@ packages: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, tarball: https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - inflight@https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz: - resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==, tarball: https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz} - version: 1.0.6 - deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. - - inherits@2.0.4: - resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, tarball: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz} - - inherits@https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz: + inherits@2.0.3: resolution: {integrity: sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==, tarball: https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz} - version: 2.0.3 - inherits@https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz: + inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==, tarball: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz} - version: 2.0.4 ini@1.3.8: resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==, tarball: https://registry.npmjs.org/ini/-/ini-1.3.8.tgz} @@ -10185,11 +10171,6 @@ packages: resolution: {integrity: sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ==, tarball: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz} engines: {node: '>=12'} - is-fullwidth-code-point@https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz: - resolution: {integrity: sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==, tarball: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz} - version: 2.0.0 - engines: {node: '>=4'} - is-function@1.0.2: resolution: {integrity: sha512-lw7DUp0aWXYg+CBCN+JKkcE0Q2RayZnSvnZBlwgxHBQhqt5pZNVy4Ri7H9GmmXkdu7LUthszM+Tor1u/2iBcpQ==, tarball: https://registry.npmjs.org/is-function/-/is-function-1.0.2.tgz} @@ -11681,10 +11662,6 @@ packages: resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==, tarball: https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz} engines: {node: '>=16 || 14 >=14.17'} - minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz: - resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==, tarball: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz} - version: 3.1.2 - minimist-options@4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==, tarball: https://registry.npmjs.org/minimist-options/-/minimist-options-4.1.0.tgz} engines: {node: '>= 6'} @@ -12041,10 +12018,6 @@ packages: once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, tarball: https://registry.npmjs.org/once/-/once-1.4.0.tgz} - once@https://registry.npmjs.org/once/-/once-1.4.0.tgz: - resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==, tarball: https://registry.npmjs.org/once/-/once-1.4.0.tgz} - version: 1.4.0 - onetime@2.0.1: resolution: {integrity: sha512-oyyPpiMaKARvvcgip+JV+7zci5L8D1W9RZIz2l1o08AM3pfspitVWnPt3mzHcBPp12oYMTy0pqrFs/C+m3EwsQ==, tarball: https://registry.npmjs.org/onetime/-/onetime-2.0.1.tgz} engines: {node: '>=4'} @@ -12312,11 +12285,6 @@ packages: resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, tarball: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz} engines: {node: '>=0.10.0'} - path-is-absolute@https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz: - resolution: {integrity: sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==, tarball: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz} - version: 1.0.1 - engines: {node: '>=0.10.0'} - path-is-inside@1.0.2: resolution: {integrity: sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w==, tarball: https://registry.npmjs.org/path-is-inside/-/path-is-inside-1.0.2.tgz} @@ -13123,7 +13091,7 @@ packages: puppeteer@19.11.1: resolution: {integrity: sha512-39olGaX2djYUdhaQQHDZ0T0GwEp+5f9UB9HmEP0qHfdQHIq0xGQZuAZ5TLnJIc/88SrPLpEflPC+xUqOTv3c5g==, tarball: https://registry.npmjs.org/puppeteer/-/puppeteer-19.11.1.tgz} - deprecated: < 22.5.0 is no longer supported + deprecated: < 22.8.2 is no longer supported pure-rand@6.1.0: resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==, tarball: https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz} @@ -13131,6 +13099,10 @@ packages: q@1.5.1: resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==, tarball: https://registry.npmjs.org/q/-/q-1.5.1.tgz} engines: {node: '>=0.6.0', teleport: '>=0.2.0'} + deprecated: |- + You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. + + (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) qrcode-terminal@0.11.0: resolution: {integrity: sha512-Uu7ii+FQy4Qf82G4xu7ShHhjhGahEpCWc3x8UavY3CTcWV+ufmmCtwkr7ZKsX42jdL0kr1B5FKUeqJvAn51jzQ==, tarball: https://registry.npmjs.org/qrcode-terminal/-/qrcode-terminal-0.11.0.tgz} @@ -13647,6 +13619,7 @@ packages: rollup-plugin-ts@3.4.5: resolution: {integrity: sha512-9iCstRJpEZXSRQuXitlSZAzcGlrqTbJg1pE4CMbEi6xYldxVncdPyzA2I+j6vnh73wBymZckerS+Q/iEE/M3Ow==, tarball: https://registry.npmjs.org/rollup-plugin-ts/-/rollup-plugin-ts-3.4.5.tgz} engines: {node: '>=16.15.1', npm: '>=7.0.0', pnpm: '>=3.2.0', yarn: '>=1.13'} + deprecated: please use @rollup/plugin-typescript and rollup-plugin-dts instead peerDependencies: '@babel/core': '>=7.x' '@babel/plugin-transform-runtime': '>=7.x' @@ -13979,19 +13952,8 @@ packages: resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==, tarball: https://registry.npmjs.org/slash/-/slash-4.0.0.tgz} engines: {node: '>=12'} - slash@https://registry.npmjs.org/slash/-/slash-3.0.0.tgz: - resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==, tarball: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz} - version: 3.0.0 - engines: {node: '>=8'} - - slash@https://registry.npmjs.org/slash/-/slash-4.0.0.tgz: - resolution: {integrity: sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==, tarball: https://registry.npmjs.org/slash/-/slash-4.0.0.tgz} - version: 4.0.0 - engines: {node: '>=12'} - - slash@https://registry.npmjs.org/slash/-/slash-5.1.0.tgz: + slash@5.1.0: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==, tarball: https://registry.npmjs.org/slash/-/slash-5.1.0.tgz} - version: 5.1.0 engines: {node: '>=14.16'} slice-ansi@2.1.0: @@ -14244,11 +14206,6 @@ packages: resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==, tarball: https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz} engines: {node: '>=12'} - string-width@https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz: - resolution: {integrity: sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==, tarball: https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz} - version: 2.1.1 - engines: {node: '>=4'} - string.fromcodepoint@0.2.1: resolution: {integrity: sha512-n69H31OnxSGSZyZbgBlvYIXlrMhJQ0dQAX1js1QDhpaUH6zmU3QYlj07bCwCNlPOu3oRXIubGPl2gDGnHsiCqg==, tarball: https://registry.npmjs.org/string.fromcodepoint/-/string.fromcodepoint-0.2.1.tgz} @@ -14280,6 +14237,10 @@ packages: stringifier@1.4.1: resolution: {integrity: sha512-7TGia2tzGIfw+Nki9r6kVxdP0vWeQ7oVZtyMnGxWsAJYe0XYV6VSGrfzUXm7r+icYfvpFlGNrwB+PYwFg+hfag==, tarball: https://registry.npmjs.org/stringifier/-/stringifier-1.4.1.tgz} + strip-ansi@4.0.0: + resolution: {integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==, tarball: https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz} + engines: {node: '>=4'} + strip-ansi@5.2.0: resolution: {integrity: sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==, tarball: https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz} engines: {node: '>=6'} @@ -14292,11 +14253,6 @@ packages: resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==, tarball: https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz} engines: {node: '>=12'} - strip-ansi@https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz: - resolution: {integrity: sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==, tarball: https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz} - version: 4.0.0 - engines: {node: '>=4'} - strip-bom@3.0.0: resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==, tarball: https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz} engines: {node: '>=4'} @@ -14442,12 +14398,15 @@ packages: sudo-prompt@8.2.5: resolution: {integrity: sha512-rlBo3HU/1zAJUrkY6jNxDOC9eVYliG6nS4JA8u8KAshITd07tafMc/Br7xQwCSseXwJ2iCcHCE8SNWX3q8Z+kw==, tarball: https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-8.2.5.tgz} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. sudo-prompt@9.1.1: resolution: {integrity: sha512-es33J1g2HjMpyAhz8lOR+ICmXXAqTuKbuXuUWLhOLew20oN9oUCgCJx615U/v7aioZg7IX5lIh9x34vwneu4pA==, tarball: https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.1.1.tgz} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. sudo-prompt@9.2.1: resolution: {integrity: sha512-Mu7R0g4ig9TUuGSxJavny5Rv0egCEtpZRNMrZaYS1vxkiIxGiGUwoezU3LazIQ+KE04hTrTfNPgxU5gzi7F5Pw==, tarball: https://registry.npmjs.org/sudo-prompt/-/sudo-prompt-9.2.1.tgz} + deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. sumchecker@3.0.1: resolution: {integrity: sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==, tarball: https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz} @@ -15524,9 +15483,8 @@ packages: resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==, tarball: https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz} engines: {node: '>=12'} - wrappy@https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz: + wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==, tarball: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz} - version: 1.0.2 write-file-atomic@2.4.3: resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==, tarball: https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.4.3.tgz} @@ -17419,7 +17377,7 @@ snapshots: glob: 7.1.6 resolve-from: 5.0.0 semver: 7.6.2 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 slugify: 1.6.6 xcode: 3.0.1 xml2js: 0.6.0 @@ -17711,7 +17669,7 @@ snapshots: chalk: 4.1.2 jest-message-util: 27.5.1 jest-util: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 '@jest/console@29.7.0': dependencies: @@ -17720,7 +17678,7 @@ snapshots: chalk: 4.1.2 jest-message-util: 29.7.0 jest-util: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 '@jest/console@30.0.0-alpha.5': dependencies: @@ -17729,7 +17687,7 @@ snapshots: chalk: 4.1.2 jest-message-util: 30.0.0-alpha.5 jest-util: 30.0.0-alpha.5 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 '@jest/core@27.5.1(ts-node@10.9.2(@swc/core@1.3.96)(@types/node@20.5.1)(typescript@5.4.5))': dependencies: @@ -17759,7 +17717,7 @@ snapshots: jest-watcher: 27.5.1 micromatch: 4.0.7 rimraf: 3.0.2 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: - bufferutil @@ -17796,7 +17754,7 @@ snapshots: jest-watcher: 29.7.0 micromatch: 4.0.7 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: - babel-plugin-macros @@ -17831,7 +17789,7 @@ snapshots: jest-watcher: 29.7.0 micromatch: 4.0.7 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-ansi: 6.0.1 transitivePeerDependencies: - babel-plugin-macros @@ -17963,7 +17921,7 @@ snapshots: jest-resolve: 27.5.1 jest-util: 27.5.1 jest-worker: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 source-map: 0.6.1 string-length: 4.0.2 terminal-link: 2.1.1 @@ -17993,7 +17951,7 @@ snapshots: jest-message-util: 29.7.0 jest-util: 29.7.0 jest-worker: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 string-length: 4.0.2 strip-ansi: 6.0.1 v8-to-istanbul: 9.2.0 @@ -18084,7 +18042,7 @@ snapshots: jest-util: 27.5.1 micromatch: 4.0.7 pirates: 4.0.6 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 source-map: 0.6.1 write-file-atomic: 3.0.3 transitivePeerDependencies: @@ -18105,7 +18063,7 @@ snapshots: jest-util: 29.7.0 micromatch: 4.0.7 pirates: 4.0.6 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 write-file-atomic: 4.0.2 transitivePeerDependencies: - supports-color @@ -18125,7 +18083,7 @@ snapshots: jest-util: 30.0.0-alpha.5 micromatch: 4.0.7 pirates: 4.0.6 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 write-file-atomic: 5.0.1 transitivePeerDependencies: - supports-color @@ -18515,7 +18473,7 @@ snapshots: dependencies: '@octokit/types': 13.5.0 deprecation: 2.3.1 - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz + once: 1.4.0 '@octokit/request@8.4.0': dependencies: @@ -18872,7 +18830,7 @@ snapshots: '@babel/parser': 7.24.6 '@babel/preset-env': 7.24.6(@babel/core@7.24.4) flow-parser: 0.206.0 - glob: https://registry.npmjs.org/glob/-/glob-7.2.3.tgz + glob: 7.2.3 invariant: 2.2.4 jscodeshift: 0.14.0(@babel/preset-env@7.24.6(@babel/core@7.24.4)) mkdirp: 0.5.6 @@ -19049,9 +19007,9 @@ snapshots: dependencies: '@rnx-kit/tools-node': 2.1.1 - '@rollup/plugin-alias@https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.1.0.tgz(rollup@4.18.0)': + '@rollup/plugin-alias@5.1.0(rollup@4.18.0)': dependencies: - slash: https://registry.npmjs.org/slash/-/slash-4.0.0.tgz + slash: 4.0.0 optionalDependencies: rollup: 4.18.0 @@ -19176,6 +19134,13 @@ snapshots: rollup: 4.18.0 tslib: 2.6.2 + '@rollup/plugin-typescript@12.1.2(tslib@2.6.2)': + dependencies: + '@rollup/pluginutils': 5.1.0 + resolve: 1.22.8 + optionalDependencies: + tslib: 2.6.2 + '@rollup/pluginutils@3.1.0(rollup@4.18.0)': dependencies: '@types/estree': 0.0.39 @@ -19183,6 +19148,12 @@ snapshots: picomatch: 2.3.1 rollup: 4.18.0 + '@rollup/pluginutils@5.1.0': + dependencies: + '@types/estree': 1.0.5 + estree-walker: 2.0.2 + picomatch: 2.3.1 + '@rollup/pluginutils@5.1.0(rollup@3.29.4)': dependencies: '@types/estree': 1.0.5 @@ -20587,7 +20558,7 @@ snapshots: ansi-align@2.0.0: dependencies: - string-width: https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz + string-width: 2.1.1 ansi-colors@4.1.3: {} @@ -20609,14 +20580,14 @@ snapshots: ansi-html-community@0.0.8: {} + ansi-regex@3.0.1: {} + ansi-regex@4.1.1: {} ansi-regex@5.0.1: {} ansi-regex@6.0.1: {} - ansi-regex@https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz: {} - ansi-styles@3.2.1: dependencies: color-convert: 1.9.3 @@ -20892,7 +20863,7 @@ snapshots: babel-preset-jest: 27.5.1(@babel/core@7.24.4) chalk: 4.1.2 graceful-fs: 4.2.11 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 transitivePeerDependencies: - supports-color @@ -21178,8 +21149,6 @@ snapshots: balanced-match@2.0.0: {} - balanced-match@https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz: {} - base64-arraybuffer@0.1.4: {} base64-js@1.5.1: {} @@ -21282,15 +21251,6 @@ snapshots: concat-map: 0.0.1 brace-expansion@2.0.1: - dependencies: - balanced-match: https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz - - brace-expansion@https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz: - dependencies: - balanced-match: https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz - concat-map: https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz - - brace-expansion@https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz: dependencies: balanced-match: 1.0.2 @@ -21831,8 +21791,6 @@ snapshots: concat-map@0.0.1: {} - concat-map@https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz: {} - concat-stream@1.6.2: dependencies: buffer-from: 1.1.2 @@ -22870,7 +22828,7 @@ snapshots: end-of-stream@1.4.4: dependencies: - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz + once: 1.4.0 engine.io-client@3.5.3: dependencies: @@ -23334,7 +23292,7 @@ snapshots: eslint-plugin-es: 3.0.1(eslint@8.57.0) eslint-utils: 2.1.0 ignore: 5.3.1 - minimatch: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz + minimatch: 3.1.2 resolve: 1.22.8 semver: 6.3.1 @@ -23514,7 +23472,7 @@ snapshots: espower-location-detector@1.0.0: dependencies: is-url: 1.2.4 - path-is-absolute: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz + path-is-absolute: 1.0.1 source-map: 0.5.7 xtend: 4.0.2 @@ -24199,7 +24157,7 @@ snapshots: from2@2.3.0: dependencies: - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 readable-stream: 2.3.8 fs-constants@1.0.0: {} @@ -24240,8 +24198,6 @@ snapshots: fs.realpath@1.0.0: {} - fs.realpath@https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz: {} - fsevents@2.3.3: optional: true @@ -24390,12 +24346,12 @@ snapshots: glob@7.1.6: dependencies: - fs.realpath: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz - inflight: https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz - minimatch: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz - path-is-absolute: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz + fs.realpath: 1.0.0 + inflight: 1.0.6 + inherits: 2.0.4 + minimatch: 3.1.2 + once: 1.4.0 + path-is-absolute: 1.0.1 glob@7.2.3: dependencies: @@ -24414,15 +24370,6 @@ snapshots: minimatch: 5.1.6 once: 1.4.0 - glob@https://registry.npmjs.org/glob/-/glob-7.2.3.tgz: - dependencies: - fs.realpath: https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz - inflight: https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz - minimatch: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz - path-is-absolute: https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz - global-agent@3.0.0: dependencies: boolean: 3.2.0 @@ -24478,7 +24425,7 @@ snapshots: fast-glob: 3.3.2 ignore: 5.3.1 merge2: 1.4.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 globby@12.2.0: dependencies: @@ -24495,7 +24442,7 @@ snapshots: fast-glob: 3.3.2 ignore: 5.3.1 merge2: 1.4.1 - slash: https://registry.npmjs.org/slash/-/slash-4.0.0.tgz + slash: 4.0.0 globby@14.0.1: dependencies: @@ -24503,7 +24450,7 @@ snapshots: fast-glob: 3.3.2 ignore: 5.3.1 path-type: 5.0.0 - slash: https://registry.npmjs.org/slash/-/slash-5.1.0.tgz + slash: 5.1.0 unicorn-magic: 0.1.0 globjoin@0.1.4: {} @@ -24710,7 +24657,7 @@ snapshots: hpack.js@2.1.6: dependencies: - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 obuf: 1.1.2 readable-stream: 2.3.8 wbuf: 1.7.3 @@ -24793,14 +24740,14 @@ snapshots: http-errors@1.6.3: dependencies: depd: 1.1.2 - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz + inherits: 2.0.3 setprototypeof: 1.1.0 statuses: 1.5.0 http-errors@2.0.0: dependencies: depd: 2.0.0 - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 setprototypeof: 1.2.0 statuses: 2.0.1 toidentifier: 1.0.1 @@ -24960,20 +24907,13 @@ snapshots: inflight@1.0.6: dependencies: - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz - wrappy: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz + once: 1.4.0 + wrappy: 1.0.2 - inflight@https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz: - dependencies: - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz - wrappy: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz + inherits@2.0.3: {} inherits@2.0.4: {} - inherits@https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz: {} - - inherits@https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz: {} - ini@1.3.8: {} inquirer@8.2.6: @@ -25143,8 +25083,6 @@ snapshots: is-fullwidth-code-point@4.0.0: {} - is-fullwidth-code-point@https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz: {} - is-function@1.0.2: {} is-generator-fn@2.1.0: {} @@ -25435,7 +25373,7 @@ snapshots: jest-snapshot: 27.5.1 jest-util: 27.5.1 pretty-format: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 throat: 6.0.2 transitivePeerDependencies: @@ -25461,7 +25399,7 @@ snapshots: p-limit: 3.1.0 pretty-format: 29.7.0 pure-rand: 6.1.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 transitivePeerDependencies: - babel-plugin-macros @@ -25487,7 +25425,7 @@ snapshots: p-limit: 3.1.0 pretty-format: 30.0.0-alpha.5 pure-rand: 6.1.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 transitivePeerDependencies: - babel-plugin-macros @@ -25576,7 +25514,7 @@ snapshots: micromatch: 4.0.7 parse-json: 5.2.0 pretty-format: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: ts-node: 10.9.2(@swc/core@1.3.96)(@types/node@20.5.1)(typescript@5.4.5) @@ -25608,7 +25546,7 @@ snapshots: micromatch: 4.0.7 parse-json: 5.2.0 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 18.19.33 @@ -25639,7 +25577,7 @@ snapshots: micromatch: 4.0.7 parse-json: 5.2.0 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 18.19.33 @@ -25670,7 +25608,7 @@ snapshots: micromatch: 4.0.7 parse-json: 5.2.0 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-json-comments: 3.1.1 optionalDependencies: '@types/node': 20.5.1 @@ -25963,7 +25901,7 @@ snapshots: graceful-fs: 4.2.11 micromatch: 4.0.7 pretty-format: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 jest-message-util@29.7.0: @@ -25975,7 +25913,7 @@ snapshots: graceful-fs: 4.2.11 micromatch: 4.0.7 pretty-format: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 jest-message-util@30.0.0-alpha.5: @@ -25987,7 +25925,7 @@ snapshots: graceful-fs: 4.2.11 micromatch: 4.0.7 pretty-format: 30.0.0-alpha.5 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 stack-utils: 2.0.6 jest-mock-console@1.3.0(jest@29.7.0(@types/node@20.5.1)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.3.96)(@types/node@20.5.1)(typescript@5.4.5))): @@ -26059,7 +25997,7 @@ snapshots: jest-validate: 27.5.1 resolve: 1.22.8 resolve.exports: 1.1.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 jest-resolve@29.7.0: dependencies: @@ -26083,7 +26021,7 @@ snapshots: jest-validate: 30.0.0-alpha.5 resolve: 1.22.8 resolve.exports: 2.0.2 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 jest-runner@27.5.1: dependencies: @@ -26162,7 +26100,7 @@ snapshots: jest-resolve: 27.5.1 jest-snapshot: 27.5.1 jest-util: 27.5.1 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color @@ -26189,7 +26127,7 @@ snapshots: jest-resolve: 29.7.0 jest-snapshot: 29.7.0 jest-util: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color @@ -26216,7 +26154,7 @@ snapshots: jest-resolve: 30.0.0-alpha.5 jest-snapshot: 30.0.0-alpha.5(supports-color@9.4.0) jest-util: 30.0.0-alpha.5 - slash: https://registry.npmjs.org/slash/-/slash-3.0.0.tgz + slash: 3.0.0 strip-bom: 4.0.0 transitivePeerDependencies: - supports-color @@ -26382,7 +26320,7 @@ snapshots: jest: 29.7.0(@types/node@18.19.33)(babel-plugin-macros@3.1.0)(ts-node@10.9.2(@swc/core@1.3.96)(@types/node@18.19.33)(typescript@5.4.5)) jest-regex-util: 29.6.3 jest-watcher: 29.7.0 - slash: https://registry.npmjs.org/slash/-/slash-5.1.0.tgz + slash: 5.1.0 string-length: 5.0.1 strip-ansi: 7.1.0 @@ -27467,7 +27405,7 @@ snapshots: minimatch@5.1.6: dependencies: - brace-expansion: https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz + brace-expansion: 2.0.1 minimatch@9.0.3: dependencies: @@ -27475,11 +27413,7 @@ snapshots: minimatch@9.0.4: dependencies: - brace-expansion: https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz - - minimatch@https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz: - dependencies: - brace-expansion: https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz + brace-expansion: 2.0.1 minimist-options@4.1.0: dependencies: @@ -27651,7 +27585,7 @@ snapshots: node-dir@0.1.17: dependencies: - minimatch: https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz + minimatch: 3.1.2 node-fetch@2.6.7: dependencies: @@ -27828,11 +27762,7 @@ snapshots: once@1.4.0: dependencies: - wrappy: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz - - once@https://registry.npmjs.org/once/-/once-1.4.0.tgz: - dependencies: - wrappy: https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz + wrappy: 1.0.2 onetime@2.0.1: dependencies: @@ -28101,8 +28031,6 @@ snapshots: path-is-absolute@1.0.1: {} - path-is-absolute@https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz: {} - path-is-inside@1.0.2: {} path-key@2.0.1: {} @@ -28826,7 +28754,7 @@ snapshots: pump@3.0.0: dependencies: end-of-stream: 1.4.4 - once: https://registry.npmjs.org/once/-/once-1.4.0.tgz + once: 1.4.0 punycode@2.3.1: {} @@ -28908,7 +28836,7 @@ snapshots: queue@6.0.2: dependencies: - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 quick-lru@4.0.1: {} @@ -29201,7 +29129,7 @@ snapshots: readable-stream@2.3.8: dependencies: core-util-is: 1.0.3 - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 isarray: 1.0.0 process-nextick-args: 2.0.1 safe-buffer: 5.1.2 @@ -29210,7 +29138,7 @@ snapshots: readable-stream@3.6.2: dependencies: - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 @@ -29509,28 +29437,6 @@ snapshots: '@babel/runtime': 7.24.6 '@swc/core': 1.3.96 - rollup-plugin-ts@3.4.5(@babel/core@7.24.4)(@babel/plugin-transform-runtime@7.24.6(@babel/core@7.24.4))(@babel/preset-env@7.24.6(@babel/core@7.24.4))(@babel/preset-typescript@7.24.6(@babel/core@7.24.4))(@babel/runtime@7.24.6)(@swc/core@1.3.96)(rollup@4.18.0)(typescript@5.4.5): - dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.18.0) - '@wessberg/stringutil': 1.0.19 - ansi-colors: 4.1.3 - browserslist: 4.23.0 - browserslist-generator: 2.1.0 - compatfactory: 3.0.0(typescript@5.4.5) - crosspath: 2.0.0 - magic-string: 0.30.10 - rollup: 4.18.0 - ts-clone-node: 3.0.0(typescript@5.4.5) - tslib: 2.6.2 - typescript: 5.4.5 - optionalDependencies: - '@babel/core': 7.24.4(supports-color@9.4.0) - '@babel/plugin-transform-runtime': 7.24.6(@babel/core@7.24.4) - '@babel/preset-env': 7.24.6(@babel/core@7.24.4) - '@babel/preset-typescript': 7.24.6(@babel/core@7.24.4) - '@babel/runtime': 7.24.6 - '@swc/core': 1.3.96 - rollup-pluginutils@2.8.2: dependencies: estree-walker: 0.6.1 @@ -29872,11 +29778,7 @@ snapshots: slash@4.0.0: {} - slash@https://registry.npmjs.org/slash/-/slash-3.0.0.tgz: {} - - slash@https://registry.npmjs.org/slash/-/slash-4.0.0.tgz: {} - - slash@https://registry.npmjs.org/slash/-/slash-5.1.0.tgz: {} + slash@5.1.0: {} slice-ansi@2.1.0: dependencies: @@ -30168,8 +30070,8 @@ snapshots: string-width@2.1.1: dependencies: - is-fullwidth-code-point: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz - strip-ansi: https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz + is-fullwidth-code-point: 2.0.0 + strip-ansi: 4.0.0 string-width@4.2.3: dependencies: @@ -30183,11 +30085,6 @@ snapshots: emoji-regex: 9.2.2 strip-ansi: 7.1.0 - string-width@https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz: - dependencies: - is-fullwidth-code-point: https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz - strip-ansi: https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz - string.fromcodepoint@0.2.1: {} string.prototype.matchall@4.0.11: @@ -30245,6 +30142,10 @@ snapshots: traverse: 0.6.9 type-name: 2.0.2 + strip-ansi@4.0.0: + dependencies: + ansi-regex: 3.0.1 + strip-ansi@5.2.0: dependencies: ansi-regex: 4.1.1 @@ -30257,10 +30158,6 @@ snapshots: dependencies: ansi-regex: 6.0.1 - strip-ansi@https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz: - dependencies: - ansi-regex: https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz - strip-bom@3.0.0: {} strip-bom@4.0.0: {} @@ -30549,7 +30446,7 @@ snapshots: bl: 4.1.0 end-of-stream: 1.4.4 fs-constants: 1.0.0 - inherits: https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz + inherits: 2.0.4 readable-stream: 3.6.2 tar@6.2.1: @@ -31665,7 +31562,7 @@ snapshots: widest-line@2.0.1: dependencies: - string-width: https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz + string-width: 2.1.1 wildcard@2.0.1: {} @@ -31693,7 +31590,7 @@ snapshots: string-width: 5.1.2 strip-ansi: 7.1.0 - wrappy@https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz: {} + wrappy@1.0.2: {} write-file-atomic@2.4.3: dependencies: From 00cbea176dad796077ccbb2fb7890700ce85fb7a Mon Sep 17 00:00:00 2001 From: Yiheng Date: Thu, 27 Feb 2025 15:43:16 +0800 Subject: [PATCH 2/2] transformRuntimeCoreJs 3 --- packages/babel-preset-taro/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-preset-taro/index.js b/packages/babel-preset-taro/index.js index 55997d80e0c9..361ad4cad76a 100644 --- a/packages/babel-preset-taro/index.js +++ b/packages/babel-preset-taro/index.js @@ -162,7 +162,7 @@ module.exports = (_, options = {}) => { let transformRuntimeCoreJs = false if (useBuiltIns === 'usage') { - transformRuntimeCoreJs = true + transformRuntimeCoreJs = 3 } else { envOptions.useBuiltIns = useBuiltIns if (useBuiltIns === 'entry') {