@express-zod-api/migration 25.0.0 → 25.1.0

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
@@ -18,6 +18,6 @@ import migration from "@express-zod-api/migration";
18
18
 
19
19
  export default [
20
20
  { languageOptions: { parser }, plugins: { migration } },
21
- { files: ["**/*.ts"], rules: { "migration/v24": "error" } },
21
+ { files: ["**/*.ts"], rules: { "migration/v25": "error" } },
22
22
  ];
23
23
  ```
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import { ESLintUtils } from '@typescript-eslint/utils';
1
+ import { ESLintUtils } from "@typescript-eslint/utils";
2
2
 
3
+ //#region index.d.ts
3
4
  declare const _default: {
4
- rules: {
5
- v25: ESLintUtils.RuleModule<"change" | "add" | "move" | "remove", [], unknown, ESLintUtils.RuleListener>;
6
- };
5
+ rules: {
6
+ v25: ESLintUtils.RuleModule<"change" | "add" | "move" | "remove", [], unknown, ESLintUtils.RuleListener>;
7
+ };
7
8
  };
8
-
9
- export { _default as default };
9
+ //#endregion
10
+ export { _default as default };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{ESLintUtils as s,AST_NODE_TYPES as r}from"@typescript-eslint/utils";var o={zod:`${r.ImportDeclaration}[source.value='zod/v4']`,dateInOutExample:`${r.CallExpression}[callee.object.name='ez'][callee.property.name=/date(In|Out)/] >${r.ObjectExpression} > ${r.Property}[key.name='example']`,getExamples:`${r.CallExpression}[callee.name='getExamples']`},m=t=>Object.keys(t).reduce((e,a)=>Object.assign(e,{[o[a]]:t[a]}),{}),p=s.RuleCreator.withoutDocs({meta:{type:"problem",fixable:"code",schema:[],messages:{change:"change {{ subject }} from {{ from }} to {{ to }}",add:"add {{ subject }} to {{ to }}",move:"move {{ subject }} to {{ to }}",remove:"remove {{ subject }}"}},defaultOptions:[],create:t=>m({zod:e=>t.report({node:e.source,messageId:"change",data:{subject:"import",from:"zod/v4",to:"zod"},fix:a=>a.replaceText(e.source,'"zod"')}),dateInOutExample:e=>t.report({node:e,messageId:"change",data:{subject:"property",from:"example",to:"examples"},fix:a=>a.replaceText(e,`examples: [${t.sourceCode.getText(e.value)}]`)}),getExamples:e=>t.report({node:e,messageId:"change",data:{subject:"method",from:"getExamples()",to:".meta()?.examples || []"},fix:a=>a.replaceText(e,`(${t.sourceCode.getText(e.arguments[0])}.meta()?.examples || [])`)})})}),n={rules:{v25:p}};export{n as default};
1
+ import{AST_NODE_TYPES as e,ESLintUtils as t}from"@typescript-eslint/utils";const n={zod:`${e.ImportDeclaration}[source.value='zod/v4']`,dateInOutExample:`${e.CallExpression}[callee.object.name='ez'][callee.property.name=/date(In|Out)/] >${e.ObjectExpression} > ${e.Property}[key.name='example']`,getExamples:`${e.CallExpression}[callee.name='getExamples']`},r=e=>Object.keys(e).reduce((t,r)=>Object.assign(t,{[n[r]]:e[r]}),{}),i=t.RuleCreator.withoutDocs({meta:{type:`problem`,fixable:`code`,schema:[],messages:{change:`change {{ subject }} from {{ from }} to {{ to }}`,add:`add {{ subject }} to {{ to }}`,move:`move {{ subject }} to {{ to }}`,remove:`remove {{ subject }}`}},defaultOptions:[],create:e=>r({zod:t=>e.report({node:t.source,messageId:`change`,data:{subject:`import`,from:`zod/v4`,to:`zod`},fix:e=>e.replaceText(t.source,`"zod"`)}),dateInOutExample:t=>e.report({node:t,messageId:`change`,data:{subject:`property`,from:`example`,to:`examples`},fix:n=>n.replaceText(t,`examples: [${e.sourceCode.getText(t.value)}]`)}),getExamples:t=>e.report({node:t,messageId:`change`,data:{subject:`method`,from:`getExamples()`,to:`.meta()?.examples || []`},fix:n=>n.replaceText(t,`(${e.sourceCode.getText(t.arguments[0])}.meta()?.examples || [])`)})})});var a={rules:{v25:i}};export{a as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@express-zod-api/migration",
3
- "version": "25.0.0",
3
+ "version": "25.1.0",
4
4
  "license": "MIT",
5
5
  "description": "Migration scripts for express-zod-api",
6
6
  "repository": {
@@ -38,7 +38,6 @@
38
38
  "scripts": {
39
39
  "pretest": "tsc --noEmit",
40
40
  "test": "vitest run --globals",
41
- "build": "tsup",
42
- "postbuild": "attw --pack --profile esm-only"
41
+ "build": "tsdown"
43
42
  }
44
43
  }