ertk 0.1.0 → 0.1.1

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.
@@ -0,0 +1,6 @@
1
+ import type { ErtkConfig } from "./types.js";
2
+ /**
3
+ * Helper for defining an ERTK config with type checking.
4
+ */
5
+ export declare function defineConfig(config: ErtkConfig): ErtkConfig;
6
+ //# sourceMappingURL=define-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-config.d.ts","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE7C;;GAEG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAE3D"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Helper for defining an ERTK config with type checking.
3
+ */
4
+ export function defineConfig(config) {
5
+ return config;
6
+ }
7
+ //# sourceMappingURL=define-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-config.js","sourceRoot":"","sources":["../src/define-config.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,UAAU,YAAY,CAAC,MAAkB;IAC9C,OAAO,MAAM,CAAC;AACf,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { endpoint } from "./endpoint.js";
2
- export { defineConfig } from "./config.js";
2
+ export { defineConfig } from "./define-config.js";
3
3
  export type { EndpointDefinition, HandlerContext, DefaultUser, ValidationSchema, TagType, TagDescription, SingleOptimistic, MultiOptimistic, ErtkConfig, ErtkRoutesConfig, } from "./types.js";
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,YAAY,EACX,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,gBAAgB,GAChB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGlD,YAAY,EACX,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,gBAAgB,GAChB,MAAM,YAAY,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // Core
2
2
  export { endpoint } from "./endpoint.js";
3
- export { defineConfig } from "./config.js";
3
+ export { defineConfig } from "./define-config.js";
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
package/package.json CHANGED
@@ -1,75 +1,74 @@
1
1
  {
2
- "name": "ertk",
3
- "version": "0.1.0",
4
- "description": "Easy RTK — Define endpoints once, generate RTK Query hooks and route handlers automatically",
5
- "type": "module",
6
- "exports": {
7
- ".": {
8
- "types": "./dist/index.d.ts",
9
- "import": "./dist/index.js"
10
- },
11
- "./next": {
12
- "types": "./dist/next/index.d.ts",
13
- "import": "./dist/next/index.js"
14
- }
15
- },
16
- "bin": {
17
- "ertk": "dist/cli.js"
18
- },
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "build": "tsc",
24
- "dev": "tsc --watch",
25
- "prepublishOnly": "tsc"
26
- },
27
- "keywords": [
28
- "rtk",
29
- "redux",
30
- "rtk-query",
31
- "codegen",
32
- "next.js",
33
- "api",
34
- "endpoints"
35
- ],
36
- "author": "Amber Cowled",
37
- "license": "MIT",
38
- "repository": {
39
- "type": "git",
40
- "url": "git+https://github.com/AmberCowled/ertk.git"
41
- },
42
- "homepage": "https://github.com/AmberCowled/ertk#readme",
43
- "bugs": {
44
- "url": "https://github.com/AmberCowled/ertk/issues"
45
- },
46
- "dependencies": {
47
- "jiti": "^2.4.2",
48
- "ts-morph": "^27.0.2"
49
- },
50
- "peerDependencies": {
51
- "@reduxjs/toolkit": "^2.0.0",
52
- "next": ">=14.0.0",
53
- "react": ">=18.0.0",
54
- "react-redux": "^9.0.0",
55
- "typescript": "^5.0.0",
56
- "zod": "^3.0.0 || ^4.0.0"
57
- },
58
- "peerDependenciesMeta": {
59
- "next": {
60
- "optional": true
61
- },
62
- "zod": {
63
- "optional": true
64
- }
65
- },
66
- "devDependencies": {
67
- "@reduxjs/toolkit": "^2.5.0",
68
- "@types/node": "^22.0.0",
69
- "next": "^16.0.0",
70
- "react": "^19.0.0",
71
- "react-redux": "^9.2.0",
72
- "typescript": "^5.0.0",
73
- "zod": "^4.0.0"
74
- }
75
- }
2
+ "name": "ertk",
3
+ "version": "0.1.1",
4
+ "description": "Easy RTK — Define endpoints once, generate RTK Query hooks and route handlers automatically",
5
+ "type": "module",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.js"
10
+ },
11
+ "./next": {
12
+ "types": "./dist/next/index.d.ts",
13
+ "import": "./dist/next/index.js"
14
+ }
15
+ },
16
+ "bin": {
17
+ "ertk": "dist/cli.js"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "keywords": [
23
+ "rtk",
24
+ "redux",
25
+ "rtk-query",
26
+ "codegen",
27
+ "next.js",
28
+ "api",
29
+ "endpoints"
30
+ ],
31
+ "author": "Amber Cowled",
32
+ "license": "MIT",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/AmberCowled/ertk.git"
36
+ },
37
+ "homepage": "https://github.com/AmberCowled/ertk#readme",
38
+ "bugs": {
39
+ "url": "https://github.com/AmberCowled/ertk/issues"
40
+ },
41
+ "dependencies": {
42
+ "jiti": "^2.4.2",
43
+ "ts-morph": "^27.0.2"
44
+ },
45
+ "peerDependencies": {
46
+ "@reduxjs/toolkit": "^2.0.0",
47
+ "next": ">=14.0.0",
48
+ "react": ">=18.0.0",
49
+ "react-redux": "^9.0.0",
50
+ "typescript": "^5.0.0",
51
+ "zod": "^3.0.0 || ^4.0.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "next": {
55
+ "optional": true
56
+ },
57
+ "zod": {
58
+ "optional": true
59
+ }
60
+ },
61
+ "devDependencies": {
62
+ "@reduxjs/toolkit": "^2.5.0",
63
+ "@types/node": "^22.0.0",
64
+ "next": "^16.0.0",
65
+ "react": "^19.0.0",
66
+ "react-redux": "^9.2.0",
67
+ "typescript": "^5.0.0",
68
+ "zod": "^4.0.0"
69
+ },
70
+ "scripts": {
71
+ "build": "tsc",
72
+ "dev": "tsc --watch"
73
+ }
74
+ }