From aff268fb79c5284b2f106b67b4d2e2f2c7621208 Mon Sep 17 00:00:00 2001 From: Marty Nelson Date: Fri, 29 Mar 2024 08:29:43 -0700 Subject: [PATCH] fix code gen issues due to new BIND CHILD and COMPONENT enums both need compose --- package.json | 2 +- .../thoth/transform/template-generators.js | 17 +-- .../transform/template-generators.test.js | 40 ++++--- packages/vite-plugin/index.test.js | 62 ++++++++-- packages/vite-plugin/pnpm-lock.yaml | 105 +++++++++-------- pnpm-lock.yaml | 38 +++---- sandbox/package.json | 2 +- sandbox/pnpm-lock.yaml | 107 ++++++++++-------- vite-test/expected-out/index.html | 6 +- vite-test/expected-out/index.js | 29 +++-- vite-test/out/index.html | 6 +- vite-test/out/index.js | 29 +++-- vite-test/package.json | 2 +- vite-test/pnpm-lock.yaml | 24 ++-- 14 files changed, 277 insertions(+), 192 deletions(-) diff --git a/package.json b/package.json index 1f9eaee..0728e24 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "eslint": "^8.57.0", "globals": "^14.0.0", "happy-dom": "^13.10.1", - "vite": "^5.2.6", + "vite": "^5.2.7", "vite-plugin-inspect": "^0.8.3", "vitest": "^1.4.0" }, diff --git a/packages/thoth/transform/template-generators.js b/packages/thoth/transform/template-generators.js index 3a587e0..5417a0f 100644 --- a/packages/thoth/transform/template-generators.js +++ b/packages/thoth/transform/template-generators.js @@ -6,13 +6,16 @@ export function makeTargets(template) { const { length: elLength } = boundElements; if(isStatic) return 'null'; - const values = bindings.map(({ element, type, index }) => { - const { isRoot, queryIndex } = element; - const target = isRoot ? 'r' : `${'t'}[${queryIndex}]`; - return type === BIND.CHILD ? `${target}.childNodes[${index}]` : target; - }); + const values = bindings + .map(({ element, type, index }) => { + const { isRoot, queryIndex } = element; + const target = isRoot ? 'r' : `${'t'}[${queryIndex}]`; + const isComposed = type === BIND.CHILD || type === BIND.COMPONENT; + return isComposed ? `${target}.childNodes[${index}]` : target; + }) + .join(','); - return elLength ? `(r,t) => [${values.join()}]` : `r => [${values.join()}]`; + return elLength ? `(r,t) => [${values}]` : `r => [${values}]`; } export function makeRenderer({ isEmpty, id, targetKey, tMap, bindKey, bMap, isDomFragment, html }, options) { @@ -22,7 +25,7 @@ export function makeRenderer({ isEmpty, id, targetKey, tMap, bindKey, bMap, isDo const target = targetKey ? `g${targetKey}` : `null`; const bind = bindKey ? `b${bindKey}` : `null`; let renderer = `__renderer(`; - renderer += `"${id}", /* ${JSON.stringify(tMap)} */ ${target}, /* ${JSON.stringify(bMap)} */ ${bind}, ${isDomFragment}`; + renderer += `"${id}", ${target}, ${bind}, ${isDomFragment}`; if(content) renderer += ', `' + `${html}` + '`'; renderer += `)`; diff --git a/packages/thoth/transform/template-generators.test.js b/packages/thoth/transform/template-generators.test.js index 955c4ea..2998614 100644 --- a/packages/thoth/transform/template-generators.test.js +++ b/packages/thoth/transform/template-generators.test.js @@ -3,42 +3,50 @@ import { makeTargets, makeRenderer, makeBind } from './template-generators.js'; import { parse, generate as _generate } from '../compiler.js'; import { describe, test, beforeEach } from 'vitest'; -function preParse(input, expect) { +function preParse(input) { + return preParseAll(input)[0]; +} + +function preParseAll(input) { const ast = parse(input); const initial = _generate(ast); - const template = initial.templates[0]; - expect(template.node.type).toBe('JSXElement'); - return template; + return initial.templates; } describe('targets generator', () => { beforeEach(context => { context.compile = code => { - const template = preParse(code, context.expect); + const template = preParse(code); return makeTargets(template); }; + context.compileAll = code => { + return preParseAll(code).map(makeTargets); + }; }); - test('simple', ({ compile, expect }) => { - const code = compile(`name =>

{name}

`); - expect(code).toMatchInlineSnapshot(`"r => [r.childNodes[0]]"`); + test('composes', ({ compile, expect }) => { + const code = compile(`name =>

hello {name}

`); + expect(code).toMatchInlineSnapshot( + `"r => [r.childNodes[1],r.childNodes[3]]"` + ); }); - test('edge case', ({ expect }) => { - const input = ` + test('fragment composes', ({ compile, expect }) => { + const code = compile(`name => <>

hello

`); + expect(code).toMatchInlineSnapshot(`"r => [r.childNodes[1]]"`); + }); + + test('edge case', ({ compileAll, expect }) => { + const code = compileAll(` export const Loading = () =>

loading...

; export const Cat = ({ name }) =>

{name}

; export const CatList = cats => ; export const CatCount = cats =>

{cats.length} cats

; export const CatName = (name) =>
  • {name}
  • ; export const CatNames = cats => ; - `; - - const ast = parse(input); - const initial = _generate(ast); - const mapped = initial.templates.map(makeTargets); - expect(mapped).toMatchInlineSnapshot(` + `); + expect(code).toMatchInlineSnapshot(` [ "null", "r => [r.childNodes[0]]", diff --git a/packages/vite-plugin/index.test.js b/packages/vite-plugin/index.test.js index 340fbcb..10bef1d 100644 --- a/packages/vite-plugin/index.test.js +++ b/packages/vite-plugin/index.test.js @@ -1,10 +1,22 @@ import { test } from 'vitest'; import plugin from './index.js'; -const [jsx] = plugin(); +function run(code) { + const [jsx] = plugin(); + const out = jsx.transform(code, 'test.jsx'); + const { bindings, node, bMap, tMap, boundElements, ...rest } = [...jsx.templates.values()][0]; + const template = { + bMap: JSON.stringify(bMap), + tMap: JSON.stringify(tMap), + ...rest + }; + // jsx.load() + + return { code: out.code, template }; +} test('basic plugin', ({ expect }) => { - const code = `
    + const { code, template } = run`

    Hello {world}

    @@ -12,20 +24,15 @@ test('basic plugin', ({ expect }) => {

    {name} slottable!

    `; - const out = jsx.transform(code, 'test.jsx'); - expect(out.code) + + expect(code) .toMatchInlineSnapshot(` "import { tf89f8a98, tb550bd5b } from 'virtual:azoth-templates?id=f89f8a98&id=b550bd5b'; tf89f8a98(status,spread,world,[Component, { prop1: prop1, ...obj, option: "static", }, tb550bd5b(name)]); " `); - const { bindings, node, bMap, tMap, boundElements, ...rest } = [...jsx.templates.values()][0]; - const template = { - bMap: JSON.stringify(bMap), - tMap: JSON.stringify(tMap), - ...rest - }; + expect(template).toMatchInlineSnapshot(` { "bMap": "[0,4,1,2]", @@ -48,4 +55,39 @@ test('basic plugin', ({ expect }) => { "targetKey": "88185d12", } `); +}); + +test('fragment w/ component', ({ expect }) => { + const { code, template } = run`<> +

    Hello Sandbox

    +
    + + </div> + </>`; + + expect(code).toMatchInlineSnapshot(` + "import { tafdcadae } from 'virtual:azoth-templates?id=afdcadae'; + + tafdcadae([Title]); + " + `); + + expect(template).toMatchInlineSnapshot(` + { + "bMap": "[2]", + "bindKey": "dbc1b4c9", + "html": "<h1>Hello Sandbox</h1> + <div data-bind> + <!--0--> + </div>", + "id": "afdcadae", + "imports": [], + "isDomFragment": true, + "isEmpty": false, + "isStatic": false, + "propertyNames": null, + "tMap": "[[0,1]]", + "targetKey": "6e340b9c", + } + `); }); \ No newline at end of file diff --git a/packages/vite-plugin/pnpm-lock.yaml b/packages/vite-plugin/pnpm-lock.yaml index d81ba55..c4a1c79 100644 --- a/packages/vite-plugin/pnpm-lock.yaml +++ b/packages/vite-plugin/pnpm-lock.yaml @@ -16,7 +16,7 @@ dependencies: version: 0.7.4 vite: specifier: ^5.0.12 - version: 5.2.6 + version: 5.2.7 packages: @@ -241,112 +241,120 @@ packages: picomatch: 2.3.1 dev: false - /@rollup/rollup-android-arm-eabi@4.13.1: - resolution: {integrity: sha512-4C4UERETjXpC4WpBXDbkgNVgHyWfG3B/NKY46e7w5H134UDOFqUJKpsLm0UYmuupW+aJmRgeScrDNfvZ5WV80A==} + /@rollup/rollup-android-arm-eabi@4.13.2: + resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==} cpu: [arm] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-android-arm64@4.13.1: - resolution: {integrity: sha512-TrTaFJ9pXgfXEiJKQ3yQRelpQFqgRzVR9it8DbeRzG0RX7mKUy0bqhCFsgevwXLJepQKTnLl95TnPGf9T9AMOA==} + /@rollup/rollup-android-arm64@4.13.2: + resolution: {integrity: sha512-GdxxXbAuM7Y/YQM9/TwwP+L0omeE/lJAR1J+olu36c3LqqZEBdsIWeQ91KBe6nxwOnb06Xh7JS2U5ooWU5/LgQ==} cpu: [arm64] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-arm64@4.13.1: - resolution: {integrity: sha512-fz7jN6ahTI3cKzDO2otQuybts5cyu0feymg0bjvYCBrZQ8tSgE8pc0sSNEuGvifrQJWiwx9F05BowihmLxeQKw==} + /@rollup/rollup-darwin-arm64@4.13.2: + resolution: {integrity: sha512-mCMlpzlBgOTdaFs83I4XRr8wNPveJiJX1RLfv4hggyIVhfB5mJfN4P8Z6yKh+oE4Luz+qq1P3kVdWrCKcMYrrA==} cpu: [arm64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-x64@4.13.1: - resolution: {integrity: sha512-WTvdz7SLMlJpektdrnWRUN9C0N2qNHwNbWpNo0a3Tod3gb9leX+yrYdCeB7VV36OtoyiPAivl7/xZ3G1z5h20g==} + /@rollup/rollup-darwin-x64@4.13.2: + resolution: {integrity: sha512-yUoEvnH0FBef/NbB1u6d3HNGyruAKnN74LrPAfDQL3O32e3k3OSfLrPgSJmgb3PJrBZWfPyt6m4ZhAFa2nZp2A==} cpu: [x64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.13.1: - resolution: {integrity: sha512-dBHQl+7wZzBYcIF6o4k2XkAfwP2ks1mYW2q/Gzv9n39uDcDiAGDqEyml08OdY0BIct0yLSPkDTqn4i6czpBLLw==} + /@rollup/rollup-linux-arm-gnueabihf@4.13.2: + resolution: {integrity: sha512-GYbLs5ErswU/Xs7aGXqzc3RrdEjKdmoCrgzhJWyFL0r5fL3qd1NPcDKDowDnmcoSiGJeU68/Vy+OMUluRxPiLQ==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-gnu@4.13.1: - resolution: {integrity: sha512-bur4JOxvYxfrAmocRJIW0SADs3QdEYK6TQ7dTNz6Z4/lySeu3Z1H/+tl0a4qDYv0bCdBpUYM0sYa/X+9ZqgfSQ==} + /@rollup/rollup-linux-arm64-gnu@4.13.2: + resolution: {integrity: sha512-L1+D8/wqGnKQIlh4Zre9i4R4b4noxzH5DDciyahX4oOz62CphY7WDWqJoQ66zNR4oScLNOqQJfNSIAe/6TPUmQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-musl@4.13.1: - resolution: {integrity: sha512-ssp77SjcDIUSoUyj7DU7/5iwM4ZEluY+N8umtCT9nBRs3u045t0KkW02LTyHouHDomnMXaXSZcCSr2bdMK63kA==} + /@rollup/rollup-linux-arm64-musl@4.13.2: + resolution: {integrity: sha512-tK5eoKFkXdz6vjfkSTCupUzCo40xueTOiOO6PeEIadlNBkadH1wNOH8ILCPIl8by/Gmb5AGAeQOFeLev7iZDOA==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-riscv64-gnu@4.13.1: - resolution: {integrity: sha512-Jv1DkIvwEPAb+v25/Unrnnq9BO3F5cbFPT821n3S5litkz+O5NuXuNhqtPx5KtcwOTtaqkTsO+IVzJOsxd11aQ==} + /@rollup/rollup-linux-powerpc64le-gnu@4.13.2: + resolution: {integrity: sha512-zvXvAUGGEYi6tYhcDmb9wlOckVbuD+7z3mzInCSTACJ4DQrdSLPNUeDIcAQW39M3q6PDquqLWu7pnO39uSMRzQ==} + cpu: [ppc64le] + os: [linux] + requiresBuild: true + dev: false + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.13.2: + resolution: {integrity: sha512-C3GSKvMtdudHCN5HdmAMSRYR2kkhgdOfye4w0xzyii7lebVr4riCgmM6lRiSCnJn2w1Xz7ZZzHKuLrjx5620kw==} cpu: [riscv64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-s390x-gnu@4.13.1: - resolution: {integrity: sha512-U564BrhEfaNChdATQaEODtquCC7Ez+8Hxz1h5MAdMYj0AqD0GA9rHCpElajb/sQcaFL6NXmHc5O+7FXpWMa73Q==} + /@rollup/rollup-linux-s390x-gnu@4.13.2: + resolution: {integrity: sha512-l4U0KDFwzD36j7HdfJ5/TveEQ1fUTjFFQP5qIt9gBqBgu1G8/kCaq5Ok05kd5TG9F8Lltf3MoYsUMw3rNlJ0Yg==} cpu: [s390x] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-gnu@4.13.1: - resolution: {integrity: sha512-zGRDulLTeDemR8DFYyFIQ8kMP02xpUsX4IBikc7lwL9PrwR3gWmX2NopqiGlI2ZVWMl15qZeUjumTwpv18N7sQ==} + /@rollup/rollup-linux-x64-gnu@4.13.2: + resolution: {integrity: sha512-xXMLUAMzrtsvh3cZ448vbXqlUa7ZL8z0MwHp63K2IIID2+DeP5iWIT6g1SN7hg1VxPzqx0xZdiDM9l4n9LRU1A==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-musl@4.13.1: - resolution: {integrity: sha512-VTk/MveyPdMFkYJJPCkYBw07KcTkGU2hLEyqYMsU4NjiOfzoaDTW9PWGRsNwiOA3qI0k/JQPjkl/4FCK1smskQ==} + /@rollup/rollup-linux-x64-musl@4.13.2: + resolution: {integrity: sha512-M/JYAWickafUijWPai4ehrjzVPKRCyDb1SLuO+ZyPfoXgeCEAlgPkNXewFZx0zcnoIe3ay4UjXIMdXQXOZXWqA==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-arm64-msvc@4.13.1: - resolution: {integrity: sha512-L+hX8Dtibb02r/OYCsp4sQQIi3ldZkFI0EUkMTDwRfFykXBPptoz/tuuGqEd3bThBSLRWPR6wsixDSgOx/U3Zw==} + /@rollup/rollup-win32-arm64-msvc@4.13.2: + resolution: {integrity: sha512-2YWwoVg9KRkIKaXSh0mz3NmfurpmYoBBTAXA9qt7VXk0Xy12PoOP40EFuau+ajgALbbhi4uTj3tSG3tVseCjuA==} cpu: [arm64] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-ia32-msvc@4.13.1: - resolution: {integrity: sha512-+dI2jVPfM5A8zme8riEoNC7UKk0Lzc7jCj/U89cQIrOjrZTCWZl/+IXUeRT2rEZ5j25lnSA9G9H1Ob9azaF/KQ==} + /@rollup/rollup-win32-ia32-msvc@4.13.2: + resolution: {integrity: sha512-2FSsE9aQ6OWD20E498NYKEQLneShWes0NGMPQwxWOdws35qQXH+FplabOSP5zEe1pVjurSDOGEVCE2agFwSEsw==} cpu: [ia32] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-x64-msvc@4.13.1: - resolution: {integrity: sha512-YY1Exxo2viZ/O2dMHuwQvimJ0SqvL+OAWQLLY6rvXavgQKjhQUzn7nc1Dd29gjB5Fqi00nrBWctJBOyfVMIVxw==} + /@rollup/rollup-win32-x64-msvc@4.13.2: + resolution: {integrity: sha512-7h7J2nokcdPePdKykd8wtc8QqqkqxIrUz7MHj6aNr8waBRU//NLDVnNjQnqQO6fqtjrtCdftpbTuOKAyrAQETQ==} cpu: [x64] os: [win32] requiresBuild: true @@ -424,27 +432,28 @@ packages: source-map-js: 1.2.0 dev: false - /rollup@4.13.1: - resolution: {integrity: sha512-hFi+fU132IvJ2ZuihN56dwgpltpmLZHZWsx27rMCTZ2sYwrqlgL5sECGy1eeV2lAihD8EzChBVVhsXci0wD4Tg==} + /rollup@4.13.2: + resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.13.1 - '@rollup/rollup-android-arm64': 4.13.1 - '@rollup/rollup-darwin-arm64': 4.13.1 - '@rollup/rollup-darwin-x64': 4.13.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.13.1 - '@rollup/rollup-linux-arm64-gnu': 4.13.1 - '@rollup/rollup-linux-arm64-musl': 4.13.1 - '@rollup/rollup-linux-riscv64-gnu': 4.13.1 - '@rollup/rollup-linux-s390x-gnu': 4.13.1 - '@rollup/rollup-linux-x64-gnu': 4.13.1 - '@rollup/rollup-linux-x64-musl': 4.13.1 - '@rollup/rollup-win32-arm64-msvc': 4.13.1 - '@rollup/rollup-win32-ia32-msvc': 4.13.1 - '@rollup/rollup-win32-x64-msvc': 4.13.1 + '@rollup/rollup-android-arm-eabi': 4.13.2 + '@rollup/rollup-android-arm64': 4.13.2 + '@rollup/rollup-darwin-arm64': 4.13.2 + '@rollup/rollup-darwin-x64': 4.13.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.13.2 + '@rollup/rollup-linux-arm64-gnu': 4.13.2 + '@rollup/rollup-linux-arm64-musl': 4.13.2 + '@rollup/rollup-linux-powerpc64le-gnu': 4.13.2 + '@rollup/rollup-linux-riscv64-gnu': 4.13.2 + '@rollup/rollup-linux-s390x-gnu': 4.13.2 + '@rollup/rollup-linux-x64-gnu': 4.13.2 + '@rollup/rollup-linux-x64-musl': 4.13.2 + '@rollup/rollup-win32-arm64-msvc': 4.13.2 + '@rollup/rollup-win32-ia32-msvc': 4.13.2 + '@rollup/rollup-win32-x64-msvc': 4.13.2 fsevents: 2.3.3 dev: false @@ -458,8 +467,8 @@ packages: engines: {node: '>= 8'} dev: false - /vite@5.2.6: - resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==} + /vite@5.2.7: + resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -488,7 +497,7 @@ packages: dependencies: esbuild: 0.20.2 postcss: 8.4.38 - rollup: 4.13.1 + rollup: 4.13.2 optionalDependencies: fsevents: 2.3.3 dev: false diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2bc08b1..24b34f8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,11 +32,11 @@ devDependencies: specifier: ^13.10.1 version: 13.10.1 vite: - specifier: ^5.2.6 - version: 5.2.6 + specifier: ^5.2.7 + version: 5.2.7 vite-plugin-inspect: specifier: ^0.8.3 - version: 0.8.3(vite@5.2.6) + version: 0.8.3(vite@5.2.7) vitest: specifier: ^1.4.0 version: 1.4.0(@vitest/browser@1.4.0)(happy-dom@13.10.1) @@ -2370,7 +2370,7 @@ packages: dependencies: foreground-child: 3.1.1 jackspeak: 2.3.6 - minimatch: 9.0.3 + minimatch: 9.0.4 minipass: 7.0.4 path-scurry: 1.10.2 @@ -2845,8 +2845,8 @@ packages: resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} dev: true - /js-tokens@8.0.3: - resolution: {integrity: sha512-UfJMcSJc+SEXEl9lH/VLHSZbThQyLpw1vLO1Lb+j4RWDvG3N2f7yj3PVQA3cmkTBNldJ9eFnM+xEXxHIXrYiJw==} + /js-tokens@9.0.0: + resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} dev: true /js-yaml@3.14.1: @@ -3119,8 +3119,8 @@ packages: dependencies: brace-expansion: 2.0.1 - /minimatch@9.0.3: - resolution: {integrity: sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==} + /minimatch@9.0.4: + resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==} engines: {node: '>=16 || 14 >=14.17'} dependencies: brace-expansion: 2.0.1 @@ -4156,10 +4156,10 @@ packages: engines: {node: '>=8'} dev: true - /strip-literal@2.0.0: - resolution: {integrity: sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==} + /strip-literal@2.1.0: + resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} dependencies: - js-tokens: 8.0.3 + js-tokens: 9.0.0 dev: true /supports-color@5.5.0: @@ -4434,7 +4434,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.6 + vite: 5.2.7 transitivePeerDependencies: - '@types/node' - less @@ -4446,7 +4446,7 @@ packages: - terser dev: true - /vite-plugin-inspect@0.8.3(vite@5.2.6): + /vite-plugin-inspect@0.8.3(vite@5.2.7): resolution: {integrity: sha512-SBVzOIdP/kwe6hjkt7LSW4D0+REqqe58AumcnCfRNw4Kt3mbS9pEBkch+nupu2PBxv2tQi69EQHQ1ZA1vgB/Og==} engines: {node: '>=14'} peerDependencies: @@ -4465,14 +4465,14 @@ packages: perfect-debounce: 1.0.0 picocolors: 1.0.0 sirv: 2.0.4 - vite: 5.2.6 + vite: 5.2.7 transitivePeerDependencies: - rollup - supports-color dev: true - /vite@5.2.6: - resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==} + /vite@5.2.7: + resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -4547,10 +4547,10 @@ packages: pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 - strip-literal: 2.0.0 + strip-literal: 2.1.0 tinybench: 2.6.0 tinypool: 0.8.3 - vite: 5.2.6 + vite: 5.2.7 vite-node: 1.4.0 why-is-node-running: 2.2.2 transitivePeerDependencies: @@ -4630,7 +4630,7 @@ packages: is-plain-obj: 4.1.0 lodash.clonedeep: 4.5.0 lodash.zip: 4.2.0 - minimatch: 9.0.3 + minimatch: 9.0.4 puppeteer-core: 20.9.0 query-selector-shadow-dom: 1.0.1 resq: 1.11.0 diff --git a/sandbox/package.json b/sandbox/package.json index 0834808..690d298 100644 --- a/sandbox/package.json +++ b/sandbox/package.json @@ -16,6 +16,6 @@ "jsonic": "workspace:*" }, "devDependencies": { - "vite": "^5.2.6" + "vite": "^5.2.7" } } \ No newline at end of file diff --git a/sandbox/pnpm-lock.yaml b/sandbox/pnpm-lock.yaml index 2287aea..5dfbba1 100644 --- a/sandbox/pnpm-lock.yaml +++ b/sandbox/pnpm-lock.yaml @@ -14,8 +14,8 @@ dependencies: devDependencies: vite: - specifier: ^5.2.6 - version: 5.2.6 + specifier: ^5.2.7 + version: 5.2.7 packages: @@ -226,112 +226,120 @@ packages: dev: true optional: true - /@rollup/rollup-android-arm-eabi@4.13.1: - resolution: {integrity: sha512-4C4UERETjXpC4WpBXDbkgNVgHyWfG3B/NKY46e7w5H134UDOFqUJKpsLm0UYmuupW+aJmRgeScrDNfvZ5WV80A==} + /@rollup/rollup-android-arm-eabi@4.13.2: + resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==} cpu: [arm] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-android-arm64@4.13.1: - resolution: {integrity: sha512-TrTaFJ9pXgfXEiJKQ3yQRelpQFqgRzVR9it8DbeRzG0RX7mKUy0bqhCFsgevwXLJepQKTnLl95TnPGf9T9AMOA==} + /@rollup/rollup-android-arm64@4.13.2: + resolution: {integrity: sha512-GdxxXbAuM7Y/YQM9/TwwP+L0omeE/lJAR1J+olu36c3LqqZEBdsIWeQ91KBe6nxwOnb06Xh7JS2U5ooWU5/LgQ==} cpu: [arm64] os: [android] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-arm64@4.13.1: - resolution: {integrity: sha512-fz7jN6ahTI3cKzDO2otQuybts5cyu0feymg0bjvYCBrZQ8tSgE8pc0sSNEuGvifrQJWiwx9F05BowihmLxeQKw==} + /@rollup/rollup-darwin-arm64@4.13.2: + resolution: {integrity: sha512-mCMlpzlBgOTdaFs83I4XRr8wNPveJiJX1RLfv4hggyIVhfB5mJfN4P8Z6yKh+oE4Luz+qq1P3kVdWrCKcMYrrA==} cpu: [arm64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-darwin-x64@4.13.1: - resolution: {integrity: sha512-WTvdz7SLMlJpektdrnWRUN9C0N2qNHwNbWpNo0a3Tod3gb9leX+yrYdCeB7VV36OtoyiPAivl7/xZ3G1z5h20g==} + /@rollup/rollup-darwin-x64@4.13.2: + resolution: {integrity: sha512-yUoEvnH0FBef/NbB1u6d3HNGyruAKnN74LrPAfDQL3O32e3k3OSfLrPgSJmgb3PJrBZWfPyt6m4ZhAFa2nZp2A==} cpu: [x64] os: [darwin] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.13.1: - resolution: {integrity: sha512-dBHQl+7wZzBYcIF6o4k2XkAfwP2ks1mYW2q/Gzv9n39uDcDiAGDqEyml08OdY0BIct0yLSPkDTqn4i6czpBLLw==} + /@rollup/rollup-linux-arm-gnueabihf@4.13.2: + resolution: {integrity: sha512-GYbLs5ErswU/Xs7aGXqzc3RrdEjKdmoCrgzhJWyFL0r5fL3qd1NPcDKDowDnmcoSiGJeU68/Vy+OMUluRxPiLQ==} cpu: [arm] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-gnu@4.13.1: - resolution: {integrity: sha512-bur4JOxvYxfrAmocRJIW0SADs3QdEYK6TQ7dTNz6Z4/lySeu3Z1H/+tl0a4qDYv0bCdBpUYM0sYa/X+9ZqgfSQ==} + /@rollup/rollup-linux-arm64-gnu@4.13.2: + resolution: {integrity: sha512-L1+D8/wqGnKQIlh4Zre9i4R4b4noxzH5DDciyahX4oOz62CphY7WDWqJoQ66zNR4oScLNOqQJfNSIAe/6TPUmQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-arm64-musl@4.13.1: - resolution: {integrity: sha512-ssp77SjcDIUSoUyj7DU7/5iwM4ZEluY+N8umtCT9nBRs3u045t0KkW02LTyHouHDomnMXaXSZcCSr2bdMK63kA==} + /@rollup/rollup-linux-arm64-musl@4.13.2: + resolution: {integrity: sha512-tK5eoKFkXdz6vjfkSTCupUzCo40xueTOiOO6PeEIadlNBkadH1wNOH8ILCPIl8by/Gmb5AGAeQOFeLev7iZDOA==} cpu: [arm64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-riscv64-gnu@4.13.1: - resolution: {integrity: sha512-Jv1DkIvwEPAb+v25/Unrnnq9BO3F5cbFPT821n3S5litkz+O5NuXuNhqtPx5KtcwOTtaqkTsO+IVzJOsxd11aQ==} + /@rollup/rollup-linux-powerpc64le-gnu@4.13.2: + resolution: {integrity: sha512-zvXvAUGGEYi6tYhcDmb9wlOckVbuD+7z3mzInCSTACJ4DQrdSLPNUeDIcAQW39M3q6PDquqLWu7pnO39uSMRzQ==} + cpu: [ppc64le] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@rollup/rollup-linux-riscv64-gnu@4.13.2: + resolution: {integrity: sha512-C3GSKvMtdudHCN5HdmAMSRYR2kkhgdOfye4w0xzyii7lebVr4riCgmM6lRiSCnJn2w1Xz7ZZzHKuLrjx5620kw==} cpu: [riscv64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-s390x-gnu@4.13.1: - resolution: {integrity: sha512-U564BrhEfaNChdATQaEODtquCC7Ez+8Hxz1h5MAdMYj0AqD0GA9rHCpElajb/sQcaFL6NXmHc5O+7FXpWMa73Q==} + /@rollup/rollup-linux-s390x-gnu@4.13.2: + resolution: {integrity: sha512-l4U0KDFwzD36j7HdfJ5/TveEQ1fUTjFFQP5qIt9gBqBgu1G8/kCaq5Ok05kd5TG9F8Lltf3MoYsUMw3rNlJ0Yg==} cpu: [s390x] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-gnu@4.13.1: - resolution: {integrity: sha512-zGRDulLTeDemR8DFYyFIQ8kMP02xpUsX4IBikc7lwL9PrwR3gWmX2NopqiGlI2ZVWMl15qZeUjumTwpv18N7sQ==} + /@rollup/rollup-linux-x64-gnu@4.13.2: + resolution: {integrity: sha512-xXMLUAMzrtsvh3cZ448vbXqlUa7ZL8z0MwHp63K2IIID2+DeP5iWIT6g1SN7hg1VxPzqx0xZdiDM9l4n9LRU1A==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-linux-x64-musl@4.13.1: - resolution: {integrity: sha512-VTk/MveyPdMFkYJJPCkYBw07KcTkGU2hLEyqYMsU4NjiOfzoaDTW9PWGRsNwiOA3qI0k/JQPjkl/4FCK1smskQ==} + /@rollup/rollup-linux-x64-musl@4.13.2: + resolution: {integrity: sha512-M/JYAWickafUijWPai4ehrjzVPKRCyDb1SLuO+ZyPfoXgeCEAlgPkNXewFZx0zcnoIe3ay4UjXIMdXQXOZXWqA==} cpu: [x64] os: [linux] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-arm64-msvc@4.13.1: - resolution: {integrity: sha512-L+hX8Dtibb02r/OYCsp4sQQIi3ldZkFI0EUkMTDwRfFykXBPptoz/tuuGqEd3bThBSLRWPR6wsixDSgOx/U3Zw==} + /@rollup/rollup-win32-arm64-msvc@4.13.2: + resolution: {integrity: sha512-2YWwoVg9KRkIKaXSh0mz3NmfurpmYoBBTAXA9qt7VXk0Xy12PoOP40EFuau+ajgALbbhi4uTj3tSG3tVseCjuA==} cpu: [arm64] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-ia32-msvc@4.13.1: - resolution: {integrity: sha512-+dI2jVPfM5A8zme8riEoNC7UKk0Lzc7jCj/U89cQIrOjrZTCWZl/+IXUeRT2rEZ5j25lnSA9G9H1Ob9azaF/KQ==} + /@rollup/rollup-win32-ia32-msvc@4.13.2: + resolution: {integrity: sha512-2FSsE9aQ6OWD20E498NYKEQLneShWes0NGMPQwxWOdws35qQXH+FplabOSP5zEe1pVjurSDOGEVCE2agFwSEsw==} cpu: [ia32] os: [win32] requiresBuild: true dev: true optional: true - /@rollup/rollup-win32-x64-msvc@4.13.1: - resolution: {integrity: sha512-YY1Exxo2viZ/O2dMHuwQvimJ0SqvL+OAWQLLY6rvXavgQKjhQUzn7nc1Dd29gjB5Fqi00nrBWctJBOyfVMIVxw==} + /@rollup/rollup-win32-x64-msvc@4.13.2: + resolution: {integrity: sha512-7h7J2nokcdPePdKykd8wtc8QqqkqxIrUz7MHj6aNr8waBRU//NLDVnNjQnqQO6fqtjrtCdftpbTuOKAyrAQETQ==} cpu: [x64] os: [win32] requiresBuild: true @@ -400,27 +408,28 @@ packages: source-map-js: 1.2.0 dev: true - /rollup@4.13.1: - resolution: {integrity: sha512-hFi+fU132IvJ2ZuihN56dwgpltpmLZHZWsx27rMCTZ2sYwrqlgL5sECGy1eeV2lAihD8EzChBVVhsXci0wD4Tg==} + /rollup@4.13.2: + resolution: {integrity: sha512-MIlLgsdMprDBXC+4hsPgzWUasLO9CE4zOkj/u6j+Z6j5A4zRY+CtiXAdJyPtgCsc42g658Aeh1DlrdVEJhsL2g==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.13.1 - '@rollup/rollup-android-arm64': 4.13.1 - '@rollup/rollup-darwin-arm64': 4.13.1 - '@rollup/rollup-darwin-x64': 4.13.1 - '@rollup/rollup-linux-arm-gnueabihf': 4.13.1 - '@rollup/rollup-linux-arm64-gnu': 4.13.1 - '@rollup/rollup-linux-arm64-musl': 4.13.1 - '@rollup/rollup-linux-riscv64-gnu': 4.13.1 - '@rollup/rollup-linux-s390x-gnu': 4.13.1 - '@rollup/rollup-linux-x64-gnu': 4.13.1 - '@rollup/rollup-linux-x64-musl': 4.13.1 - '@rollup/rollup-win32-arm64-msvc': 4.13.1 - '@rollup/rollup-win32-ia32-msvc': 4.13.1 - '@rollup/rollup-win32-x64-msvc': 4.13.1 + '@rollup/rollup-android-arm-eabi': 4.13.2 + '@rollup/rollup-android-arm64': 4.13.2 + '@rollup/rollup-darwin-arm64': 4.13.2 + '@rollup/rollup-darwin-x64': 4.13.2 + '@rollup/rollup-linux-arm-gnueabihf': 4.13.2 + '@rollup/rollup-linux-arm64-gnu': 4.13.2 + '@rollup/rollup-linux-arm64-musl': 4.13.2 + '@rollup/rollup-linux-powerpc64le-gnu': 4.13.2 + '@rollup/rollup-linux-riscv64-gnu': 4.13.2 + '@rollup/rollup-linux-s390x-gnu': 4.13.2 + '@rollup/rollup-linux-x64-gnu': 4.13.2 + '@rollup/rollup-linux-x64-musl': 4.13.2 + '@rollup/rollup-win32-arm64-msvc': 4.13.2 + '@rollup/rollup-win32-ia32-msvc': 4.13.2 + '@rollup/rollup-win32-x64-msvc': 4.13.2 fsevents: 2.3.3 dev: true @@ -429,8 +438,8 @@ packages: engines: {node: '>=0.10.0'} dev: true - /vite@5.2.6: - resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==} + /vite@5.2.7: + resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -459,7 +468,7 @@ packages: dependencies: esbuild: 0.20.2 postcss: 8.4.38 - rollup: 4.13.1 + rollup: 4.13.2 optionalDependencies: fsevents: 2.3.3 dev: true diff --git a/vite-test/expected-out/index.html b/vite-test/expected-out/index.html index 52333c0..234b8e0 100644 --- a/vite-test/expected-out/index.html +++ b/vite-test/expected-out/index.html @@ -12,7 +12,7 @@ <body> <!-- 🚀 azoth templates --> - <template id="f0280d9c"><header> + <template id="f9490ef3"><header> <h1>Emojis for all my friends</h1> </header> @@ -20,10 +20,10 @@ <h1>Emojis for all my friends</h1> <h2>Amazing Emoji List</h2> <!--0--> </main></template> - <template id="3a34fe20"><ul> + <template id="c039ec22"><ul> <!--0--> </ul></template> - <template id="4b034012"><li> + <template id="465c3303"><li> <span data-bind></span> <!--0--> <!--0--> diff --git a/vite-test/expected-out/index.js b/vite-test/expected-out/index.js index 64c7b41..dd31f16 100644 --- a/vite-test/expected-out/index.js +++ b/vite-test/expected-out/index.js @@ -333,20 +333,27 @@ function renderer(id, targets, makeBind, isFragment, content) { return templateRenderer(getBound); } -const gf338800d = (r,t) => [t[0].childNodes[3]]; +const g6e340b9c = (r,t) => [t[0].childNodes[3]]; -const b5feceb66 = (ts) => { +const bdbc1b4c9 = (ts) => { const t0 = ts[0]; return (v0) => { composeComponent(t0, v0); }; }; -const g6b86b273 = (r) => [r.childNodes[1]]; +const g4bf5122f = r => [r.childNodes[1]]; -const g1762bad2 = (r,t) => [t[0],r.childNodes[3],r.childNodes[5]]; +const b4bf5122f = (ts) => { + const t0 = ts[0]; + return (v0) => { + compose(t0, v0); + }; +}; + +const gc99dda06 = (r,t) => [t[0],r.childNodes[3],r.childNodes[5]]; -const b1c402f25 = (ts) => { +const bfbb59ed1 = (ts) => { const t0 = ts[0], t1 = ts[1], t2 = ts[2]; return (v0, v1, v2) => { t0.innerHTML = v0; @@ -355,9 +362,9 @@ const b1c402f25 = (ts) => { }; }; -const tf0280d9c = renderer("f0280d9c", gf338800d, b5feceb66, true); -const t3a34fe20 = renderer("3a34fe20", g6b86b273, b5feceb66, false); -const t4b034012 = renderer("4b034012", g1762bad2, b1c402f25, false); +const tf9490ef3 = renderer("f9490ef3", /* [[0,3]] */ g6e340b9c, /* [2] */ bdbc1b4c9, true); +const tc039ec22 = renderer("c039ec22", /* [[1]] */ g4bf5122f, /* [1] */ b4bf5122f, false); +const t465c3303 = renderer("465c3303", /* [0,[3],[5]] */ gc99dda06, /* [0,1,1] */ bfbb59ed1, false); async function fetchEmojis() { const res = await fetch('https://emojihub.yurace.pro/api/all'); @@ -367,11 +374,11 @@ async function fetchEmojis() { const List = fetchEmojis().then(emojis => EmojiList({ emojis })); -const App = tf0280d9c([List]); +const App = tf9490ef3([List]); document.body.append(App); function EmojiList({emojis}) { - return t3a34fe20(emojis.map(Emoji)); + return tc039ec22(emojis.map(Emoji)); } function Emoji({name, unicode, htmlCode}) { - return t4b034012(htmlCode.join(''),name,unicode); + return t465c3303(htmlCode.join(''),name,unicode); } diff --git a/vite-test/out/index.html b/vite-test/out/index.html index 52333c0..234b8e0 100644 --- a/vite-test/out/index.html +++ b/vite-test/out/index.html @@ -12,7 +12,7 @@ <body> <!-- 🚀 azoth templates --> - <template id="f0280d9c"><header> + <template id="f9490ef3"><header> <h1>Emojis for all my friends</h1> </header> @@ -20,10 +20,10 @@ <h1>Emojis for all my friends</h1> <h2>Amazing Emoji List</h2> <!--0--> </main></template> - <template id="3a34fe20"><ul> + <template id="c039ec22"><ul> <!--0--> </ul></template> - <template id="4b034012"><li> + <template id="465c3303"><li> <span data-bind></span> <!--0--> <!--0--> diff --git a/vite-test/out/index.js b/vite-test/out/index.js index 64c7b41..dd31f16 100644 --- a/vite-test/out/index.js +++ b/vite-test/out/index.js @@ -333,20 +333,27 @@ function renderer(id, targets, makeBind, isFragment, content) { return templateRenderer(getBound); } -const gf338800d = (r,t) => [t[0].childNodes[3]]; +const g6e340b9c = (r,t) => [t[0].childNodes[3]]; -const b5feceb66 = (ts) => { +const bdbc1b4c9 = (ts) => { const t0 = ts[0]; return (v0) => { composeComponent(t0, v0); }; }; -const g6b86b273 = (r) => [r.childNodes[1]]; +const g4bf5122f = r => [r.childNodes[1]]; -const g1762bad2 = (r,t) => [t[0],r.childNodes[3],r.childNodes[5]]; +const b4bf5122f = (ts) => { + const t0 = ts[0]; + return (v0) => { + compose(t0, v0); + }; +}; + +const gc99dda06 = (r,t) => [t[0],r.childNodes[3],r.childNodes[5]]; -const b1c402f25 = (ts) => { +const bfbb59ed1 = (ts) => { const t0 = ts[0], t1 = ts[1], t2 = ts[2]; return (v0, v1, v2) => { t0.innerHTML = v0; @@ -355,9 +362,9 @@ const b1c402f25 = (ts) => { }; }; -const tf0280d9c = renderer("f0280d9c", gf338800d, b5feceb66, true); -const t3a34fe20 = renderer("3a34fe20", g6b86b273, b5feceb66, false); -const t4b034012 = renderer("4b034012", g1762bad2, b1c402f25, false); +const tf9490ef3 = renderer("f9490ef3", /* [[0,3]] */ g6e340b9c, /* [2] */ bdbc1b4c9, true); +const tc039ec22 = renderer("c039ec22", /* [[1]] */ g4bf5122f, /* [1] */ b4bf5122f, false); +const t465c3303 = renderer("465c3303", /* [0,[3],[5]] */ gc99dda06, /* [0,1,1] */ bfbb59ed1, false); async function fetchEmojis() { const res = await fetch('https://emojihub.yurace.pro/api/all'); @@ -367,11 +374,11 @@ async function fetchEmojis() { const List = fetchEmojis().then(emojis => EmojiList({ emojis })); -const App = tf0280d9c([List]); +const App = tf9490ef3([List]); document.body.append(App); function EmojiList({emojis}) { - return t3a34fe20(emojis.map(Emoji)); + return tc039ec22(emojis.map(Emoji)); } function Emoji({name, unicode, htmlCode}) { - return t4b034012(htmlCode.join(''),name,unicode); + return t465c3303(htmlCode.join(''),name,unicode); } diff --git a/vite-test/package.json b/vite-test/package.json index 892375c..a23b282 100644 --- a/vite-test/package.json +++ b/vite-test/package.json @@ -38,7 +38,7 @@ } }, "devDependencies": { - "vite": "^5.2.6", + "vite": "^5.2.7", "vitest": "^1.4.0" }, "dependencies": { diff --git a/vite-test/pnpm-lock.yaml b/vite-test/pnpm-lock.yaml index 1abe496..a88fafc 100644 --- a/vite-test/pnpm-lock.yaml +++ b/vite-test/pnpm-lock.yaml @@ -11,8 +11,8 @@ dependencies: devDependencies: vite: - specifier: ^5.2.6 - version: 5.2.6 + specifier: ^5.2.7 + version: 5.2.7 vitest: specifier: ^1.4.0 version: 1.4.0 @@ -564,8 +564,8 @@ packages: resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} dev: true - /js-tokens@8.0.3: - resolution: {integrity: sha512-UfJMcSJc+SEXEl9lH/VLHSZbThQyLpw1vLO1Lb+j4RWDvG3N2f7yj3PVQA3cmkTBNldJ9eFnM+xEXxHIXrYiJw==} + /js-tokens@9.0.0: + resolution: {integrity: sha512-WriZw1luRMlmV3LGJaR6QOJjWwgLUTf89OwT2lUOyjX2dJGBwgmIkbcz+7WFZjrZM635JOIR517++e/67CP9dQ==} dev: true /jsonc-parser@3.2.1: @@ -758,10 +758,10 @@ packages: engines: {node: '>=12'} dev: true - /strip-literal@2.0.0: - resolution: {integrity: sha512-f9vHgsCWBq2ugHAkGMiiYY+AYG0D/cbloKKg0nhaaaSNsujdGIpVXCNsrJpCKr5M0f4aI31mr13UjY6GAuXCKA==} + /strip-literal@2.1.0: + resolution: {integrity: sha512-Op+UycaUt/8FbN/Z2TWPBLge3jWrP3xj10f3fnYxf052bKuS3EKs1ZQcVGjnEMdsNVAM+plXRdmjrZ/KgG3Skw==} dependencies: - js-tokens: 8.0.3 + js-tokens: 9.0.0 dev: true /tinybench@2.6.0: @@ -796,7 +796,7 @@ packages: debug: 4.3.4 pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.2.6 + vite: 5.2.7 transitivePeerDependencies: - '@types/node' - less @@ -808,8 +808,8 @@ packages: - terser dev: true - /vite@5.2.6: - resolution: {integrity: sha512-FPtnxFlSIKYjZ2eosBQamz4CbyrTizbZ3hnGJlh/wMtCrlp1Hah6AzBLjGI5I2urTfNnpovpHdrL6YRuBOPnCA==} + /vite@5.2.7: + resolution: {integrity: sha512-k14PWOKLI6pMaSzAuGtT+Cf0YmIx12z9YGon39onaJNy8DLBfBJrzg9FQEmkAM5lpHBZs9wksWAsyF/HkpEwJA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -882,10 +882,10 @@ packages: pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 - strip-literal: 2.0.0 + strip-literal: 2.1.0 tinybench: 2.6.0 tinypool: 0.8.3 - vite: 5.2.6 + vite: 5.2.7 vite-node: 1.4.0 why-is-node-running: 2.2.2 transitivePeerDependencies: