Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Nov 1, 2025

Bumps the dependencies group with 8 updates in the / directory:

Package From To
@eslint/js 9.32.0 9.39.0
@types/node 24.2.0 24.9.2
eslint 9.32.0 9.39.0
terser 5.43.1 5.44.0
typescript 5.9.2 5.9.3
typescript-eslint 8.39.0 8.46.2
vite 7.0.6 7.1.12
vitest 3.2.4 4.0.6

Updates @eslint/js from 9.32.0 to 9.39.0

Release notes

Sourced from @​eslint/js's releases.

v9.39.0

Features

  • cc57d87 feat: update error loc to key in no-dupe-class-members (#20259) (Tanuj Kanti)
  • 126552f feat: update error location in for-direction and no-dupe-args (#20258) (Tanuj Kanti)
  • 167d097 feat: update complexity rule to highlight only static block header (#20245) (jaymarvelz)

Bug Fixes

  • 15f5c7c fix: forward traversal step.args to visitors (#20253) (jaymarvelz)
  • 5a1a534 fix: allow JSDoc comments in object-shorthand rule (#20167) (Nitin Kumar)
  • e86b813 fix: Use more types from @​eslint/core (#20257) (Nicholas C. Zakas)
  • 927272d fix: correct Scope typings (#20198) (jaymarvelz)
  • 37f76d9 fix: use AST.Program type for Program node (#20244) (Francesco Trotta)
  • ae07f0b fix: unify timing report for concurrent linting (#20188) (jaymarvelz)
  • b165d47 fix: correct Rule typings (#20199) (jaymarvelz)
  • fb97cda fix: improve error message for missing fix function in suggestions (#20218) (jaymarvelz)

Documentation

  • d3e81e3 docs: Always recommend to include a files property (#20158) (Percy Ma)
  • 0f0385f docs: use consistent naming recommendation (#20250) (Alex M. Spieslechner)
  • a3b1456 docs: Update README (GitHub Actions Bot)
  • cf5f2dd docs: fix correct tag of no-useless-constructor (#20255) (Tanuj Kanti)
  • 10b995c docs: add TS options and examples for nofunc in no-use-before-define (#20249) (Tanuj Kanti)
  • 2584187 docs: remove repetitive word in comment (#20242) (reddaisyy)
  • 637216b docs: update CLI flags migration instructions (#20238) (jaymarvelz)
  • e7cda3b docs: Update README (GitHub Actions Bot)
  • 7b9446f docs: handle empty flags sections on the feature flags page (#20222) (sethamus)

Chores

  • dfe3c1b chore: update @eslint/js version to 9.39.0 (#20270) (Francesco Trotta)
  • 2375a6d chore: package.json update for @​eslint/js release (Jenkins)
  • a1f4e52 chore: update @eslint dependencies (#20265) (Francesco Trotta)
  • c7d3229 chore: update dependency @​eslint/core to ^0.17.0 (#20256) (renovate[bot])
  • 27549bc chore: update fuzz testing to not error if code sample minimizer fails (#20252) (Milos Djermanovic)
  • a1370ee ci: bump actions/setup-node from 5 to 6 (#20230) (dependabot[bot])
  • 9e7fad4 chore: add script to auto-generate eslint:recommended configuration (#20208) (唯然)

v9.38.0

Features

  • ce40f74 feat: update complexity rule to only highlight function header (#20048) (Atul Nair)
  • e37e590 feat: correct no-loss-of-precision false positives with e notation (#20187) (Francesco Trotta)

Bug Fixes

  • 50c3dfd fix: improve type support for isolated dependencies in pnpm (#20201) (Francesco Trotta)
  • a1f06a3 fix: correct SourceCode typings (#20114) (Pixel998)

Documentation

  • 462675a docs: improve web accessibility by hiding non-semantic character (#20205) (루밀LuMir)
  • c070e65 docs: correct formatting in no-irregular-whitespace rule documentation (#20203) (루밀LuMir)
  • b39e71a docs: Update README (GitHub Actions Bot)
  • cd39983 docs: move custom-formatters type descriptions to nodejs-api (#20190) (Percy Ma)

... (truncated)

Commits
  • 2375a6d chore: package.json update for @​eslint/js release
  • 9e7fad4 chore: add script to auto-generate eslint:recommended configuration (#20208)
  • 25d0e33 chore: package.json update for @​eslint/js release
  • abee4ca chore: package.json update for @​eslint/js release
  • 90a71bf docs: update README files to add badge and instructions (#20115)
  • 488cba6 chore: package.json update for @​eslint/js release
  • 1c0d850 fix: update eslint-all.js to use Object.freeze for rules object (#20116)
  • af2a087 chore: package.json update for @​eslint/js release
  • 84ffb96 chore: update @eslint-community/eslint-utils (#20069)
  • b48fa20 chore: package.json update for @​eslint/js release
  • Additional commits viewable in compare view

Updates @types/node from 24.2.0 to 24.9.2

Commits

Updates eslint from 9.32.0 to 9.39.0

Release notes

Sourced from eslint's releases.

v9.39.0

Features

  • cc57d87 feat: update error loc to key in no-dupe-class-members (#20259) (Tanuj Kanti)
  • 126552f feat: update error location in for-direction and no-dupe-args (#20258) (Tanuj Kanti)
  • 167d097 feat: update complexity rule to highlight only static block header (#20245) (jaymarvelz)

Bug Fixes

  • 15f5c7c fix: forward traversal step.args to visitors (#20253) (jaymarvelz)
  • 5a1a534 fix: allow JSDoc comments in object-shorthand rule (#20167) (Nitin Kumar)
  • e86b813 fix: Use more types from @​eslint/core (#20257) (Nicholas C. Zakas)
  • 927272d fix: correct Scope typings (#20198) (jaymarvelz)
  • 37f76d9 fix: use AST.Program type for Program node (#20244) (Francesco Trotta)
  • ae07f0b fix: unify timing report for concurrent linting (#20188) (jaymarvelz)
  • b165d47 fix: correct Rule typings (#20199) (jaymarvelz)
  • fb97cda fix: improve error message for missing fix function in suggestions (#20218) (jaymarvelz)

Documentation

  • d3e81e3 docs: Always recommend to include a files property (#20158) (Percy Ma)
  • 0f0385f docs: use consistent naming recommendation (#20250) (Alex M. Spieslechner)
  • a3b1456 docs: Update README (GitHub Actions Bot)
  • cf5f2dd docs: fix correct tag of no-useless-constructor (#20255) (Tanuj Kanti)
  • 10b995c docs: add TS options and examples for nofunc in no-use-before-define (#20249) (Tanuj Kanti)
  • 2584187 docs: remove repetitive word in comment (#20242) (reddaisyy)
  • 637216b docs: update CLI flags migration instructions (#20238) (jaymarvelz)
  • e7cda3b docs: Update README (GitHub Actions Bot)
  • 7b9446f docs: handle empty flags sections on the feature flags page (#20222) (sethamus)

Chores

  • dfe3c1b chore: update @eslint/js version to 9.39.0 (#20270) (Francesco Trotta)
  • 2375a6d chore: package.json update for @​eslint/js release (Jenkins)
  • a1f4e52 chore: update @eslint dependencies (#20265) (Francesco Trotta)
  • c7d3229 chore: update dependency @​eslint/core to ^0.17.0 (#20256) (renovate[bot])
  • 27549bc chore: update fuzz testing to not error if code sample minimizer fails (#20252) (Milos Djermanovic)
  • a1370ee ci: bump actions/setup-node from 5 to 6 (#20230) (dependabot[bot])
  • 9e7fad4 chore: add script to auto-generate eslint:recommended configuration (#20208) (唯然)

v9.38.0

Features

  • ce40f74 feat: update complexity rule to only highlight function header (#20048) (Atul Nair)
  • e37e590 feat: correct no-loss-of-precision false positives with e notation (#20187) (Francesco Trotta)

Bug Fixes

  • 50c3dfd fix: improve type support for isolated dependencies in pnpm (#20201) (Francesco Trotta)
  • a1f06a3 fix: correct SourceCode typings (#20114) (Pixel998)

Documentation

  • 462675a docs: improve web accessibility by hiding non-semantic character (#20205) (루밀LuMir)
  • c070e65 docs: correct formatting in no-irregular-whitespace rule documentation (#20203) (루밀LuMir)
  • b39e71a docs: Update README (GitHub Actions Bot)
  • cd39983 docs: move custom-formatters type descriptions to nodejs-api (#20190) (Percy Ma)

... (truncated)

Commits

Updates terser from 5.43.1 to 5.44.0

Changelog

Sourced from terser's changelog.

v5.44.0

  • Support using and await using declarations (#1635)
Commits

Updates typescript from 5.9.2 to 5.9.3

Release notes

Sourced from typescript's releases.

TypeScript 5.9.3

Note: this tag was recreated to point at the correct commit. The npm package contained the correct content.

For release notes, check out the release announcement

Downloads are available on:

Commits
  • c63de15 Bump version to 5.9.3 and LKG
  • 8428ca4 🤖 Pick PR #62438 (Fix incorrectly ignored dts file fr...) into release-5.9 (#...
  • a131cac 🤖 Pick PR #62351 (Add missing Float16Array constructo...) into release-5.9 (#...
  • 0424333 🤖 Pick PR #62423 (Revert PR 61928) into release-5.9 (#62425)
  • bdb641a 🤖 Pick PR #62311 (Fix parenthesizer rules for manuall...) into release-5.9 (#...
  • 0d9b9b9 🤖 Pick PR #61978 (Restructure CI to prepare for requi...) into release-5.9 (#...
  • 2dce0c5 Intentionally regress one buggy declaration output to an older version (#62163)
  • See full diff in compare view

Updates typescript-eslint from 8.39.0 to 8.46.2

Release notes

Sourced from typescript-eslint's releases.

v8.46.2

8.46.2 (2025-10-20)

🩹 Fixes

  • eslint-plugin: [prefer-optional-chain] skip optional chaining when it could change the result (#11702)
  • typescript-estree: forbid invalid modifiers in object methods (#11689)

❤️ Thank You

You can read about our versioning strategy and releases on our website.

v8.46.1

8.46.1 (2025-10-13)

🩹 Fixes

  • ast-spec: cleanup TSLiteralType (#11624)
  • eslint-plugin: [prefer-optional-chain] include mixed "nullish comparison style" chains in checks (#11533)
  • eslint-plugin: [no-misused-promises] special-case .finally not to report when a promise returning function is provided as an argument (#11667)

❤️ Thank You

  • Abraham Guo
  • mdm317
  • Ronen Amiel

You can read about our versioning strategy and releases on our website.

v8.46.0

8.46.0 (2025-10-06)

🚀 Features

  • eslint-plugin: [no-unsafe-member-access] add allowOptionalChaining option (#11659)
  • eslint-plugin-internal: [no-dynamic-tests] new internal Lint rule to ban dynamic syntax in generating tests (#11323)
  • rule-schema-to-typescript-types: clean up and make public (#11633)
  • typescript-eslint: export util types (#10848, #10849)
  • typescript-estree: mention file specifics in project service allowDefaultProject error (#11635)
  • typescript-estree: private identifiers can only appear on LHS of in expressions (#9232)

🩹 Fixes

  • eslint-plugin: [no-floating-promises] remove excess parentheses in suggestions (#11487)
  • eslint-plugin: [unbound-method] improve wording around this: void and binding (#11634)
  • eslint-plugin: [no-deprecated] ignore deprecated export imports (#11603)
  • eslint-plugin: removed error type previously deprecated (#11674)

... (truncated)

Changelog

Sourced from typescript-eslint's changelog.

8.46.2 (2025-10-20)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.46.1 (2025-10-13)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.46.0 (2025-10-06)

🚀 Features

❤️ Thank You

You can read about our versioning strategy and releases on our website.

8.45.0 (2025-09-29)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.44.1 (2025-09-22)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.44.0 (2025-09-15)

This was a version bump only for typescript-eslint to align it with other projects, there were no code changes.

You can read about our versioning strategy and releases on our website.

8.43.0 (2025-09-08)

🩹 Fixes

  • eslint-plugin: [no-deprecated] should report deprecated exports and reexports (#11359)

❤️ Thank You

... (truncated)

Commits
  • 55ca033 chore(release): publish 8.46.2
  • 3f5fbf6 chore(release): publish 8.46.1
  • aec785e chore(release): publish 8.46.0
  • 5c1a159 feat(typescript-eslint): export util types (close #10848) (#10849)
  • 255e9e2 chore(release): publish 8.45.0
  • c198052 chore(release): publish 8.44.1
  • 77056f7 chore(release): publish 8.44.0
  • ef9173c chore(release): publish 8.43.0
  • d8ca5ef fix(eslint-plugin): [no-deprecated] should report deprecated exports and reex...
  • d135909 chore(release): publish 8.42.0
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for typescript-eslint since your current version.


Updates vite from 7.0.6 to 7.1.12

Release notes

Sourced from vite's releases.

v7.1.12

Please refer to CHANGELOG.md for details.

v7.1.11

Please refer to CHANGELOG.md for details.

v7.1.10

Please refer to CHANGELOG.md for details.

v7.1.9

Please refer to CHANGELOG.md for details.

v7.1.8

Please refer to CHANGELOG.md for details.

v7.1.7

Please refer to CHANGELOG.md for details.

v7.1.6

Please refer to CHANGELOG.md for details.

v7.1.5

Please refer to CHANGELOG.md for details.

v7.1.4

Please refer to CHANGELOG.md for details.

v7.1.3

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

v7.1.2

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

v7.1.1

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

[email protected]

Please refer to CHANGELOG.md for details.

... (truncated)

Changelog

Sourced from vite's changelog.

7.1.12 (2025-10-23)

Bug Fixes

  • deps: downgrade commonjs plugin to 28.0.6 to avoid rollup/plugins#1909 (#20990) (56fd722)

7.1.11 (2025-10-20)

Bug Fixes

  • dev: trim trailing slash before server.fs.deny check (#20968) (f479cc5)

Miscellaneous Chores

Code Refactoring

  • use subpath imports for types module reference (#20921) (d0094af)

Build System

7.1.10 (2025-10-14)

Bug Fixes

  • css: avoid duplicate style for server rendered stylesheet link and client inline style during dev (#20767) (3a92bc7)
  • css: respect emitAssets when cssCodeSplit=false (#20883) (d3e7eee)
  • deps: update all non-major dependencies (879de86)
  • deps: update all non-major dependencies (#20894) (3213f90)
  • dev: allow aliases starting with // (#20760) (b95fa2a)
  • dev: remove timestamp query consistently (#20887) (6537d15)
  • esbuild: inject esbuild helpers correctly for esbuild 0.25.9+ (#20906) (446eb38)
  • normalize path before calling fileToBuiltUrl (#20898) (73b6d24)
  • preserve original sourcemap file field when combining sourcemaps (#20926) (c714776)

Documentation

Miscellaneous Chores

7.1.9 (2025-10-03)

Reverts

7.1.8 (2025-10-02)

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for vite since your current version.


Updates vitest from 3.2.4 to 4.0.6

Release notes

Sourced from vitest's releases.

v4.0.6

   🐞 Bug Fixes

    View changes on GitHub

v4.0.5

   🐞 Bug Fixes

   🏎 Performance

    View changes on GitHub

v4.0.4

   🐞 Bug Fixes

... (truncated)

Commits
  • 2e7b2b8 chore: release v4.0.6
  • 31706df fix: reuse the same environment when isolate and fileParallelism are fals...
  • 10a06d8 fix(happy-dom): properly teardown additional keys (#8888)
  • 197caf2 fix(jsdom): pass down Node.js FormData to Request (#8880)
  • ca041f5 fix: improve spying types (#8878)
  • e3b7775 fix(coverage): prevent filtering out virtual files before remapping to source...
  • 7e6c37a fix: do not throw when importing a type from an external package (#8875)
  • 3e19f27 fix: don't merge errors with different diffs for reporting (#8871)
  • ed9fc71 chore: release v4.0.5
  • b9521e0 fix: allow module in --config (#8864)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for vitest since your current version.


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
...

Description has been truncated

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Nov 1, 2025
@rsvzuiun
Copy link
Owner

rsvzuiun commented Nov 6, 2025

@dependabot squash and merge

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Nov 6, 2025

Beginning January 27, 2026, Dependabot will no longer support the @dependabot squash and merge command. Please use GitHub's native pull request controls instead. Please see the changelog announcement for additional details.

Bumps the dependencies group with 8 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@eslint/js](https://github.com/eslint/eslint/tree/HEAD/packages/js) | `9.32.0` | `9.39.0` |
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) | `24.2.0` | `24.9.2` |
| [eslint](https://github.com/eslint/eslint) | `9.32.0` | `9.39.0` |
| [terser](https://github.com/terser/terser) | `5.43.1` | `5.44.0` |
| [typescript](https://github.com/microsoft/TypeScript) | `5.9.2` | `5.9.3` |
| [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.39.0` | `8.46.2` |
| [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `7.0.6` | `7.1.12` |
| [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) | `3.2.4` | `4.0.6` |



Updates `@eslint/js` from 9.32.0 to 9.39.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](https://github.com/eslint/eslint/commits/v9.39.0/packages/js)

Updates `@types/node` from 24.2.0 to 24.9.2
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Updates `eslint` from 9.32.0 to 9.39.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Commits](eslint/eslint@v9.32.0...v9.39.0)

Updates `terser` from 5.43.1 to 5.44.0
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](terser/terser@v5.43.1...v5.44.0)

Updates `typescript` from 5.9.2 to 5.9.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release-publish.yml)
- [Commits](microsoft/TypeScript@v5.9.2...v5.9.3)

Updates `typescript-eslint` from 8.39.0 to 8.46.2
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.46.2/packages/typescript-eslint)

Updates `vite` from 7.0.6 to 7.1.12
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/v7.1.12/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v7.1.12/packages/vite)

Updates `vitest` from 3.2.4 to 4.0.6
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Commits](https://github.com/vitest-dev/vitest/commits/v4.0.6/packages/vitest)

---
updated-dependencies:
- dependency-name: "@eslint/js"
  dependency-version: 9.39.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: "@types/node"
  dependency-version: 24.9.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: eslint
  dependency-version: 9.39.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: terser
  dependency-version: 5.44.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: typescript
  dependency-version: 5.9.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: dependencies
- dependency-name: typescript-eslint
  dependency-version: 8.46.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: vite
  dependency-version: 7.1.12
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: dependencies
- dependency-name: vitest
  dependency-version: 4.0.6
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/dependencies-88b03f9a9f branch from c048e06 to 4485d6d Compare November 6, 2025 16:34
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

 dist/index.js | 100 +---------------------------------------------------------
 1 file changed, 1 insertion(+), 99 deletions(-)
dist/index.js
diff --git a/dist/index.js b/dist/index.js
index a0bdaee..b9ec8f6 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,99 +1 @@
-function deserialize(query) {
-  const params = new URLSearchParams(query);
-  return new Map(Array.from(params.keys()).map((k) => [k, params.getAll(k)]));
-}
-const targetSelector = `input:not([type="file"]):not([type="password"]), select, textarea`;
-class FormStorage {
-  _selector;
-  _option;
-  _checkbox = null;
-  constructor(selector, opt) {
-    this._selector = selector;
-    this._option = {
-      ...{
-        name: "form",
-        ignores: [],
-        includes: [],
-        checkbox: null
-      },
-      ...opt
-    };
-    document.addEventListener("DOMContentLoaded", () => {
-      if (this._option.checkbox) {
-        this._checkbox = document.querySelector(this._option.checkbox);
-        this._setCheckbox();
-      }
-    });
-  }
-  save() {
-    window.localStorage.setItem(this._option.name, this._getState());
-  }
-  apply() {
-    const str = window.localStorage.getItem(this._option.name);
-    if (str) this._applyState(str);
-  }
-  clear() {
-    window.localStorage.removeItem(this._option.name);
-  }
-  addEventListener(type, listener, options) {
-    this._form().addEventListener(type, listener, options);
-  }
-  addChildrenEventListener(type, listener, options) {
-    this._targets().forEach((e) => e.addEventListener(type, listener, options));
-  }
-  _form() {
-    return document.querySelector(this._selector);
-  }
-  _targets() {
-    const { ignores, includes } = this._option;
-    return [
-      ...document.querySelectorAll(
-        `${this._selector} ${targetSelector}`
-      )
-    ].filter(
-      (e) => ignores.every((x) => !e.matches(x)) && (includes.length === 0 || includes.some((x) => e.matches(x)))
-    );
-  }
-  _serialize() {
-    const formdata = new FormData(this._form());
-    const targetNames = this._targets().map((e) => e.name);
-    [...formdata.keys()].forEach((k) => {
-      if (!targetNames.includes(k)) formdata.delete(k);
-    });
-    return new URLSearchParams(
-      [...formdata].map(([k, v]) => [k, String(v)])
-    ).toString();
-  }
-  _setCheckbox() {
-    this._form().addEventListener("submit", () => {
-      if (this._checkbox?.checked) {
-        this.save();
-      } else {
-        this.clear();
-      }
-    });
-  }
-  _getState() {
-    return this._serialize();
-  }
-  _applyState(str) {
-    const _targets = this._targets();
-    const obj = deserialize(str);
-    obj.forEach((values, key) => {
-      const targets = _targets.filter((e) => e.matches(`[name="${key}"]`));
-      if (targets.length === 0) return;
-      targets.forEach((t, i) => {
-        if ("checked" in t && ["checkbox", "radio"].includes(t.type)) {
-          values.forEach((v) => {
-            if (t.value === v) t.checked = true;
-          });
-        } else {
-          if (i < values.length) t.value = values[i];
-        }
-      });
-    });
-  }
-}
-export {
-  FormStorage as default
-};
+class t{t;i;o=null;constructor(t,e){this.t=t,this.i={name:"form",ignores:[],includes:[],checkbox:null,...e},document.addEventListener("DOMContentLoaded",()=>{this.i.checkbox&&(this.o=document.querySelector(this.i.checkbox),this.h())})}save(){window.localStorage.setItem(this.i.name,this.u())}apply(){const t=window.localStorage.getItem(this.i.name);t&&this.l(t)}clear(){window.localStorage.removeItem(this.i.name)}addEventListener(t,e,s){this.m().addEventListener(t,e,s)}addChildrenEventListener(t,e,s){this.p().forEach(n=>n.addEventListener(t,e,s))}m(){return document.querySelector(this.t)}p(){const{ignores:t,includes:e}=this.i;return[...document.querySelectorAll(`${this.t} input:not([type="file"]):not([type="password"]), select, textarea`)].filter(s=>t.every(t=>!s.matches(t))&&(0===e.length||e.some(t=>s.matches(t))))}_(){const t=new FormData(this.m()),e=this.p().map(t=>t.name);return[...t.keys()].forEach(s=>{e.includes(s)||t.delete(s)}),new URLSearchParams([...t].map(([t,e])=>[t,String(e)])).toString()}h(){this.m().addEventListener("submit",()=>{this.o?.checked?this.save():this.clear()})}u(){return this._()}l(t){const e=this.p();(function(t){const e=new URLSearchParams(t);return new Map(Array.from(e.keys()).map(t=>[t,e.getAll(t)]))})(t).forEach((t,s)=>{const n=e.filter(t=>t.matches(`[name="${s}"]`));0!==n.length&&n.forEach((e,s)=>{"checked"in e&&["checkbox","radio"].includes(e.type)?t.forEach(t=>{e.value===t&&(e.checked=!0)}):s<t.length&&(e.value=t[s])})})}}export{t as default};

@dependabot dependabot bot merged commit 2b34159 into main Nov 6, 2025
4 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/dependencies-88b03f9a9f branch November 6, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file dist/need rebuild dist/OK javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants