diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f8ed459..4472fc9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -20,7 +20,7 @@ jobs: - run: pnpm install && pnpm test -- --bail 1 - - run: pnpm run build && npm publish + - run: pnpm run build && npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_PROVENANCE: true diff --git a/.gitignore b/.gitignore index 991d2b1..459cc57 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,13 @@ node_modules/ coverage/ dist/ -tests-browser/*.test.ts +.vite/ + +.DS_Store + +# example +bun.lockb +deno.lock + +# browser tests +tests-browser/**/*.test.ts diff --git a/biome.jsonc b/biome.jsonc index 67be223..74f12fc 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -1,5 +1,5 @@ { - "$schema": "https://biomejs.dev/schemas/2.3.4/schema.json", + "$schema": "https://biomejs.dev/schemas/2.3.5/schema.json", "vcs": { "enabled": false, "clientKind": "git", diff --git a/package.json b/package.json index 0b610b6..0959151 100644 --- a/package.json +++ b/package.json @@ -42,8 +42,8 @@ "@noble/post-quantum": "^0.4.1" }, "devDependencies": { - "@biomejs/biome": "2.3.4", - "@types/node": "^24.10.0", + "@biomejs/biome": "2.3.5", + "@types/node": "^24.10.1", "@vitest/browser-playwright": "^4.0.8", "@vitest/coverage-v8": "^4.0.8", "typescript": "^5.9.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bb0195d..29c4307 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -22,23 +22,23 @@ importers: version: 0.4.1 devDependencies: '@biomejs/biome': - specifier: 2.3.4 - version: 2.3.4 + specifier: 2.3.5 + version: 2.3.5 '@types/node': - specifier: ^24.10.0 - version: 24.10.0 + specifier: ^24.10.1 + version: 24.10.1 '@vitest/browser-playwright': specifier: ^4.0.8 - version: 4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8) + version: 4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8) '@vitest/coverage-v8': specifier: ^4.0.8 - version: 4.0.8(@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8))(vitest@4.0.8) + version: 4.0.8(@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8))(vitest@4.0.8) typescript: specifier: ^5.9.3 version: 5.9.3 vitest: specifier: ^4.0.8 - version: 4.0.8(@types/node@24.10.0)(@vitest/browser-playwright@4.0.8) + version: 4.0.8(@types/node@24.10.1)(@vitest/browser-playwright@4.0.8) packages: @@ -63,55 +63,55 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@biomejs/biome@2.3.4': - resolution: {integrity: sha512-TU08LXjBHdy0mEY9APtEtZdNQQijXUDSXR7IK1i45wgoPD5R0muK7s61QcFir6FpOj/RP1+YkPx5QJlycXUU3w==} + '@biomejs/biome@2.3.5': + resolution: {integrity: sha512-HvLhNlIlBIbAV77VysRIBEwp55oM/QAjQEin74QQX9Xb259/XP/D5AGGnZMOyF1el4zcvlNYYR3AyTMUV3ILhg==} engines: {node: '>=14.21.3'} hasBin: true - '@biomejs/cli-darwin-arm64@2.3.4': - resolution: {integrity: sha512-w40GvlNzLaqmuWYiDU6Ys9FNhJiclngKqcGld3iJIiy2bpJ0Q+8n3haiaC81uTPY/NA0d8Q/I3Z9+ajc14102Q==} + '@biomejs/cli-darwin-arm64@2.3.5': + resolution: {integrity: sha512-fLdTur8cJU33HxHUUsii3GLx/TR0BsfQx8FkeqIiW33cGMtUD56fAtrh+2Fx1uhiCsVZlFh6iLKUU3pniZREQw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [darwin] - '@biomejs/cli-darwin-x64@2.3.4': - resolution: {integrity: sha512-3s7TLVtjJ7ni1xADXsS7x7GMUrLBZXg8SemXc3T0XLslzvqKj/dq1xGeBQ+pOWQzng9MaozfacIHdK2UlJ3jGA==} + '@biomejs/cli-darwin-x64@2.3.5': + resolution: {integrity: sha512-qpT8XDqeUlzrOW8zb4k3tjhT7rmvVRumhi2657I2aGcY4B+Ft5fNwDdZGACzn8zj7/K1fdWjgwYE3i2mSZ+vOA==} engines: {node: '>=14.21.3'} cpu: [x64] os: [darwin] - '@biomejs/cli-linux-arm64-musl@2.3.4': - resolution: {integrity: sha512-IruVGQRwMURivWazchiq7gKAqZSFs5so6gi0hJyxk7x6HR+iwZbO2IxNOqyLURBvL06qkIHs7Wffl6Bw30vCbQ==} + '@biomejs/cli-linux-arm64-musl@2.3.5': + resolution: {integrity: sha512-eGUG7+hcLgGnMNl1KHVZUYxahYAhC462jF/wQolqu4qso2MSk32Q+QrpN7eN4jAHAg7FUMIo897muIhK4hXhqg==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-arm64@2.3.4': - resolution: {integrity: sha512-y7efHyyM2gYmHy/AdWEip+VgTMe9973aP7XYKPzu/j8JxnPHuSUXftzmPhkVw0lfm4ECGbdBdGD6+rLmTgNZaA==} + '@biomejs/cli-linux-arm64@2.3.5': + resolution: {integrity: sha512-u/pybjTBPGBHB66ku4pK1gj+Dxgx7/+Z0jAriZISPX1ocTO8aHh8x8e7Kb1rB4Ms0nA/SzjtNOVJ4exVavQBCw==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [linux] - '@biomejs/cli-linux-x64-musl@2.3.4': - resolution: {integrity: sha512-mzKFFv/w66e4/jCobFmD3kymCqG+FuWE7sVa4Yjqd9v7qt2UhXo67MSZKY9Ih18V2IwPzRKQPCw6KwdZs6AXSA==} + '@biomejs/cli-linux-x64-musl@2.3.5': + resolution: {integrity: sha512-awVuycTPpVTH/+WDVnEEYSf6nbCBHf/4wB3lquwT7puhNg8R4XvonWNZzUsfHZrCkjkLhFH/vCZK5jHatD9FEg==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-linux-x64@2.3.4': - resolution: {integrity: sha512-gKfjWR/6/dfIxPJCw8REdEowiXCkIpl9jycpNVHux8aX2yhWPLjydOshkDL6Y/82PcQJHn95VCj7J+BRcE5o1Q==} + '@biomejs/cli-linux-x64@2.3.5': + resolution: {integrity: sha512-XrIVi9YAW6ye0CGQ+yax0gLfx+BFOtKaNX74n+xHWla6Cl6huUmcKNO7HPx7BiKnJUzrxXY1qYlm7xMvi08X4g==} engines: {node: '>=14.21.3'} cpu: [x64] os: [linux] - '@biomejs/cli-win32-arm64@2.3.4': - resolution: {integrity: sha512-5TJ6JfVez+yyupJ/iGUici2wzKf0RrSAxJhghQXtAEsc67OIpdwSKAQboemILrwKfHDi5s6mu7mX+VTCTUydkw==} + '@biomejs/cli-win32-arm64@2.3.5': + resolution: {integrity: sha512-DlBiMlBZZ9eIq4H7RimDSGsYcOtfOIfZOaI5CqsWiSlbTfqbPVfWtCf92wNzx8GNMbu1s7/g3ZZESr6+GwM/SA==} engines: {node: '>=14.21.3'} cpu: [arm64] os: [win32] - '@biomejs/cli-win32-x64@2.3.4': - resolution: {integrity: sha512-FGCijXecmC4IedQ0esdYNlMpx0Jxgf4zceCaMu6fkjWyjgn50ZQtMiqZZQ0Q/77yqPxvtkgZAvt5uGw0gAAjig==} + '@biomejs/cli-win32-x64@2.3.5': + resolution: {integrity: sha512-nUmR8gb6yvrKhtRgzwo/gDimPwnO5a4sCydf8ZS2kHIJhEmSmk+STsusr1LHTuM//wXppBawvSQi2xFXJCdgKQ==} engines: {node: '>=14.21.3'} cpu: [x64] os: [win32] @@ -424,8 +424,8 @@ packages: '@types/estree@1.0.8': resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} - '@types/node@24.10.0': - resolution: {integrity: sha512-qzQZRBqkFsYyaSWXuEHc2WR9c0a0CXwiE5FWUvn7ZM+vdy1uZLfCunD38UzhuB7YN/J11ndbDBcTmOdxJo9Q7A==} + '@types/node@24.10.1': + resolution: {integrity: sha512-GNWcUTRBgIRJD5zj+Tq0fKOJ5XZajIiBroOF0yvj2bSU1WvNdYS/dn9UxwsujGW4JX06dnHyjV2y9rRaybH0iQ==} '@vitest/browser-playwright@4.0.8': resolution: {integrity: sha512-MUi0msIAPXcA2YAuVMcssrSYP/yylxLt347xyTC6+ODl0c4XQFs0d2AN3Pc3iTa0pxIGmogflUV6eogXpPbJeA==} @@ -483,8 +483,8 @@ packages: ast-v8-to-istanbul@0.3.8: resolution: {integrity: sha512-szgSZqUxI5T8mLKvS7WTjF9is+MVbOeLADU73IseOcrqhxr/VAvy6wfoVE39KnKzA7JRhjF5eUagNlHwvZPlKQ==} - chai@6.2.0: - resolution: {integrity: sha512-aUTnJc/JipRzJrNADXVvpVqi6CO0dn3nx4EVPxijri+fj3LUUDyZQOgVeW54Ob3Y1Xh9Iz8f+CgaCl8v0mn9bA==} + chai@6.2.1: + resolution: {integrity: sha512-p4Z49OGG5W/WBCPSS/dH3jQ73kD6tiMmUM+bckNK6Jr5JHMG3k9bg/BvKR8lKmtVBKmOiuVaV2ws8s9oSbwysg==} engines: {node: '>=18'} debug@4.4.3: @@ -775,39 +775,39 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@biomejs/biome@2.3.4': + '@biomejs/biome@2.3.5': optionalDependencies: - '@biomejs/cli-darwin-arm64': 2.3.4 - '@biomejs/cli-darwin-x64': 2.3.4 - '@biomejs/cli-linux-arm64': 2.3.4 - '@biomejs/cli-linux-arm64-musl': 2.3.4 - '@biomejs/cli-linux-x64': 2.3.4 - '@biomejs/cli-linux-x64-musl': 2.3.4 - '@biomejs/cli-win32-arm64': 2.3.4 - '@biomejs/cli-win32-x64': 2.3.4 - - '@biomejs/cli-darwin-arm64@2.3.4': + '@biomejs/cli-darwin-arm64': 2.3.5 + '@biomejs/cli-darwin-x64': 2.3.5 + '@biomejs/cli-linux-arm64': 2.3.5 + '@biomejs/cli-linux-arm64-musl': 2.3.5 + '@biomejs/cli-linux-x64': 2.3.5 + '@biomejs/cli-linux-x64-musl': 2.3.5 + '@biomejs/cli-win32-arm64': 2.3.5 + '@biomejs/cli-win32-x64': 2.3.5 + + '@biomejs/cli-darwin-arm64@2.3.5': optional: true - '@biomejs/cli-darwin-x64@2.3.4': + '@biomejs/cli-darwin-x64@2.3.5': optional: true - '@biomejs/cli-linux-arm64-musl@2.3.4': + '@biomejs/cli-linux-arm64-musl@2.3.5': optional: true - '@biomejs/cli-linux-arm64@2.3.4': + '@biomejs/cli-linux-arm64@2.3.5': optional: true - '@biomejs/cli-linux-x64-musl@2.3.4': + '@biomejs/cli-linux-x64-musl@2.3.5': optional: true - '@biomejs/cli-linux-x64@2.3.4': + '@biomejs/cli-linux-x64@2.3.5': optional: true - '@biomejs/cli-win32-arm64@2.3.4': + '@biomejs/cli-win32-arm64@2.3.5': optional: true - '@biomejs/cli-win32-x64@2.3.4': + '@biomejs/cli-win32-x64@2.3.5': optional: true '@ecies/ciphers@0.2.5(@noble/ciphers@1.3.0)': @@ -988,33 +988,33 @@ snapshots: '@types/estree@1.0.8': {} - '@types/node@24.10.0': + '@types/node@24.10.1': dependencies: undici-types: 7.16.0 - '@vitest/browser-playwright@4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8)': + '@vitest/browser-playwright@4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8)': dependencies: - '@vitest/browser': 4.0.8(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8) - '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.0)) + '@vitest/browser': 4.0.8(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8) + '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.1)) playwright: 1.56.1 tinyrainbow: 3.0.3 - vitest: 4.0.8(@types/node@24.10.0)(@vitest/browser-playwright@4.0.8) + vitest: 4.0.8(@types/node@24.10.1)(@vitest/browser-playwright@4.0.8) transitivePeerDependencies: - bufferutil - msw - utf-8-validate - vite - '@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8)': + '@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8)': dependencies: - '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.0)) + '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.1)) '@vitest/utils': 4.0.8 magic-string: 0.30.21 pixelmatch: 7.1.0 pngjs: 7.0.0 sirv: 3.0.2 tinyrainbow: 3.0.3 - vitest: 4.0.8(@types/node@24.10.0)(@vitest/browser-playwright@4.0.8) + vitest: 4.0.8(@types/node@24.10.1)(@vitest/browser-playwright@4.0.8) ws: 8.18.3 transitivePeerDependencies: - bufferutil @@ -1022,7 +1022,7 @@ snapshots: - utf-8-validate - vite - '@vitest/coverage-v8@4.0.8(@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8))(vitest@4.0.8)': + '@vitest/coverage-v8@4.0.8(@vitest/browser@4.0.8(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8))(vitest@4.0.8)': dependencies: '@bcoe/v8-coverage': 1.0.2 '@vitest/utils': 4.0.8 @@ -1035,9 +1035,9 @@ snapshots: magicast: 0.5.1 std-env: 3.10.0 tinyrainbow: 3.0.3 - vitest: 4.0.8(@types/node@24.10.0)(@vitest/browser-playwright@4.0.8) + vitest: 4.0.8(@types/node@24.10.1)(@vitest/browser-playwright@4.0.8) optionalDependencies: - '@vitest/browser': 4.0.8(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8) + '@vitest/browser': 4.0.8(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8) transitivePeerDependencies: - supports-color @@ -1047,16 +1047,16 @@ snapshots: '@types/chai': 5.2.3 '@vitest/spy': 4.0.8 '@vitest/utils': 4.0.8 - chai: 6.2.0 + chai: 6.2.1 tinyrainbow: 3.0.3 - '@vitest/mocker@4.0.8(vite@7.2.2(@types/node@24.10.0))': + '@vitest/mocker@4.0.8(vite@7.2.2(@types/node@24.10.1))': dependencies: '@vitest/spy': 4.0.8 estree-walker: 3.0.3 magic-string: 0.30.21 optionalDependencies: - vite: 7.2.2(@types/node@24.10.0) + vite: 7.2.2(@types/node@24.10.1) '@vitest/pretty-format@4.0.8': dependencies: @@ -1088,7 +1088,7 @@ snapshots: estree-walker: 3.0.3 js-tokens: 9.0.1 - chai@6.2.0: {} + chai@6.2.1: {} debug@4.4.3: dependencies: @@ -1279,7 +1279,7 @@ snapshots: undici-types@7.16.0: {} - vite@7.2.2(@types/node@24.10.0): + vite@7.2.2(@types/node@24.10.1): dependencies: esbuild: 0.25.12 fdir: 6.5.0(picomatch@4.0.3) @@ -1288,13 +1288,13 @@ snapshots: rollup: 4.53.2 tinyglobby: 0.2.15 optionalDependencies: - '@types/node': 24.10.0 + '@types/node': 24.10.1 fsevents: 2.3.3 - vitest@4.0.8(@types/node@24.10.0)(@vitest/browser-playwright@4.0.8): + vitest@4.0.8(@types/node@24.10.1)(@vitest/browser-playwright@4.0.8): dependencies: '@vitest/expect': 4.0.8 - '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.0)) + '@vitest/mocker': 4.0.8(vite@7.2.2(@types/node@24.10.1)) '@vitest/pretty-format': 4.0.8 '@vitest/runner': 4.0.8 '@vitest/snapshot': 4.0.8 @@ -1311,11 +1311,11 @@ snapshots: tinyexec: 0.3.2 tinyglobby: 0.2.15 tinyrainbow: 3.0.3 - vite: 7.2.2(@types/node@24.10.0) + vite: 7.2.2(@types/node@24.10.1) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 24.10.0 - '@vitest/browser-playwright': 4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.0))(vitest@4.0.8) + '@types/node': 24.10.1 + '@vitest/browser-playwright': 4.0.8(playwright@1.56.1)(vite@7.2.2(@types/node@24.10.1))(vitest@4.0.8) transitivePeerDependencies: - jiti - less diff --git a/scripts/update.sh b/scripts/update.sh new file mode 100755 index 0000000..356b3a6 --- /dev/null +++ b/scripts/update.sh @@ -0,0 +1,5 @@ +#!/bin/sh +pnpm update +cd tests-browser && pnpm update && cd ../example +cd browser && pnpm update && cd .. +cd runtime && pnpm update && cd .. diff --git a/tests-browser/pnpm-lock.yaml b/tests-browser/pnpm-lock.yaml index 48edd58..8bf0638 100644 --- a/tests-browser/pnpm-lock.yaml +++ b/tests-browser/pnpm-lock.yaml @@ -376,8 +376,8 @@ packages: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} - chai@6.2.0: - resolution: {integrity: sha512-aUTnJc/JipRzJrNADXVvpVqi6CO0dn3nx4EVPxijri+fj3LUUDyZQOgVeW54Ob3Y1Xh9Iz8f+CgaCl8v0mn9bA==} + chai@6.2.1: + resolution: {integrity: sha512-p4Z49OGG5W/WBCPSS/dH3jQ73kD6tiMmUM+bckNK6Jr5JHMG3k9bg/BvKR8lKmtVBKmOiuVaV2ws8s9oSbwysg==} engines: {node: '>=18'} debug@4.4.3: @@ -817,7 +817,7 @@ snapshots: '@types/chai': 5.2.3 '@vitest/spy': 4.0.8 '@vitest/utils': 4.0.8 - chai: 6.2.0 + chai: 6.2.1 tinyrainbow: 3.0.3 '@vitest/mocker@4.0.8(vite@7.2.2)': @@ -852,7 +852,7 @@ snapshots: assertion-error@2.0.1: {} - chai@6.2.0: {} + chai@6.2.1: {} debug@4.4.3: dependencies: