diff --git a/.eslintrc.js b/.eslintrc.cjs similarity index 100% rename from .eslintrc.js rename to .eslintrc.cjs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 377950c..2276a58 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,9 +34,9 @@ jobs: - run: | npm ci npm run build - cd tests/consumers/cjs && npm install && node index.js - cd ../esm && npm install && node index.js - cd ../ts && npm install && npm run start + cd tests/consumers/cjs && npm install && npm run test + cd ../esm && npm install && npm run test + cd ../ts-local && npm install && npm run test linting: runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 640e7bb..ed65378 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,29 @@ # Release Notes +## [1.1.0 (2024-02-17)](https://github.com/axe-api/axe-api/compare/1.1.0...1.0.1) + +- Fixed bundling issues +- Reduced library size. + +### Breaking changes + +Before: + +```ts +import { validate, setLocales } from "robust-validator"; +import en from "robust-validator/dist/i18n/en.json"; +``` + +After: + +```ts +import { validate, setLocales, en } from "robust-validator"; +``` + ## [1.0.1 (2024-02-16)](https://github.com/axe-api/axe-api/compare/1.0.1...1.0.0) +### Fixed + - Fixed module target ## [1.0.0 (2024-02-11)](https://github.com/axe-api/axe-api/compare/1.0.0...1.0.0) diff --git a/docs/.vitepress/cache/deps/_metadata.json b/docs/.vitepress/cache/deps/_metadata.json index f64b8ce..5634a9d 100644 --- a/docs/.vitepress/cache/deps/_metadata.json +++ b/docs/.vitepress/cache/deps/_metadata.json @@ -1,43 +1,43 @@ { - "hash": "0de1b832", + "hash": "ceca42ae", "configHash": "ff5347c3", - "lockfileHash": "54634a67", - "browserHash": "8bc42beb", + "lockfileHash": "51abb8cb", + "browserHash": "85837995", "optimized": { "vue": { "src": "../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", "file": "vue.js", - "fileHash": "b35a2191", + "fileHash": "3d32afdd", "needsInterop": false }, "vitepress > @vue/devtools-api": { "src": "../../../node_modules/@vue/devtools-api/lib/esm/index.js", "file": "vitepress___@vue_devtools-api.js", - "fileHash": "6a882c71", + "fileHash": "0de30102", "needsInterop": false }, "vitepress > @vueuse/integrations/useFocusTrap": { "src": "../../../node_modules/@vueuse/integrations/useFocusTrap.mjs", "file": "vitepress___@vueuse_integrations_useFocusTrap.js", - "fileHash": "61b74767", + "fileHash": "21a843f0", "needsInterop": false }, "vitepress > mark.js/src/vanilla.js": { "src": "../../../node_modules/mark.js/src/vanilla.js", "file": "vitepress___mark__js_src_vanilla__js.js", - "fileHash": "52e24bd6", + "fileHash": "23bae971", "needsInterop": false }, "vitepress > minisearch": { "src": "../../../node_modules/minisearch/dist/es/index.js", "file": "vitepress___minisearch.js", - "fileHash": "fa0dfeb6", + "fileHash": "6473614a", "needsInterop": false }, "@theme/index": { "src": "../../../node_modules/vitepress/dist/client/theme-default/index.js", "file": "@theme_index.js", - "fileHash": "9a203ec8", + "fileHash": "45c6db2a", "needsInterop": false } }, diff --git a/docs/customization.md b/docs/customization.md index 5a394f5..d1937ea 100644 --- a/docs/customization.md +++ b/docs/customization.md @@ -5,8 +5,7 @@ You can register your custom rules easily. ## Register ```ts -import { validate, setLocales, register } from "robust-validator"; -import en from "robust-validator/dist/i18n/en.json"; +import { validate, setLocales, register, en } from "robust-validator"; // Setting the locales firsrts setLocales(en); diff --git a/docs/examples.md b/docs/examples.md index 0f5f377..e472ca1 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -11,8 +11,7 @@ You can find a Vue.js example here. ```vue [App.vue]