data-handlers 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,7 +24,7 @@ All built-in formatting is powered by the native [Intl](https://developer.mozill
24
24
 
25
25
  ## Plugin Ecosystem
26
26
 
27
- Hera's key advantage over other validation libraries is its support for **official plugins targeting the Brazilian market**, which libraries like Zod completely ignore.
27
+ **data-handlers** key advantage over other validation libraries is its support for **official plugins targeting the Brazilian market**, which libraries like Zod completely ignore.
28
28
 
29
29
  ```
30
30
  data-handlers → core (normalize, validate, register, createPlugin)
package/README.pt-BR.md CHANGED
@@ -24,7 +24,7 @@ Toda a formatação nativa é feita pela API [Intl](https://developer.mozilla.or
24
24
 
25
25
  ## Ecossistema de Plugins
26
26
 
27
- O diferencial do Hera em relação a outras libs de validação é o suporte a **plugins oficiais focados no mercado brasileiro**, que bibliotecas como o Zod ignoram completamente.
27
+ O diferencial do **data-handlers** em relação a outras libs de validação é o suporte a **plugins oficiais focados no mercado brasileiro**, que bibliotecas como o Zod ignoram completamente.
28
28
 
29
29
  ```
30
30
  data-handlers → core (normalize, validate, register, createPlugin)
package/index.d.ts CHANGED
@@ -68,8 +68,8 @@ export function register<
68
68
  * Semantic alias for `register()`. Intended for plugin authors.
69
69
  *
70
70
  * @example
71
- * // inside @axis/hera-cpf
72
- * import { createPlugin } from '@axis/hera'
71
+ * // inside data-handlers-cpf
72
+ * import { createPlugin } from 'data-handlers'
73
73
  * createPlugin('cpf', cpfHandler)
74
74
  */
75
75
  export declare const createPlugin: typeof register
package/index.js CHANGED
@@ -23,13 +23,13 @@ export function register(type, handler) {
23
23
 
24
24
  /**
25
25
  * Semantic alias for {@link register}. Intended for plugin authors.
26
- * Prefer this when publishing a standalone `@axis/hera-*` plugin.
26
+ * Prefer this when publishing a standalone `data-handlers-*` plugin.
27
27
  *
28
28
  * @type {typeof register}
29
29
  *
30
30
  * @example
31
- * // inside @axis/hera-cpf
32
- * import { createPlugin } from '@axis/hera'
31
+ * // inside data-handlers-cpf
32
+ * import { createPlugin } from 'data-handlers'
33
33
  * createPlugin('cpf', cpfHandler)
34
34
  */
35
35
  export const createPlugin = register
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-handlers",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Extensible normalization and validation library with pluggable handlers (name, number, date).",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -17,10 +17,6 @@
17
17
  "src",
18
18
  "handlers"
19
19
  ],
20
- "scripts": {
21
- "test": "vitest run",
22
- "test:watch": "vitest"
23
- },
24
20
  "keywords": [
25
21
  "normalize",
26
22
  "validate",
@@ -42,5 +38,12 @@
42
38
  },
43
39
  "devDependencies": {
44
40
  "vitest": "^4.0.18"
41
+ },
42
+ "scripts": {
43
+ "test": "vitest run",
44
+ "test:watch": "vitest",
45
+ "release:patch": "pnpm test && pnpm version patch && pnpm publish",
46
+ "release:minor": "pnpm test && pnpm version minor && pnpm publish",
47
+ "release:major": "pnpm test && pnpm version major && pnpm publish"
45
48
  }
46
- }
49
+ }