@real-router/validation-plugin 0.2.0 → 0.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/validation-plugin",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "commonjs",
5
5
  "description": "Route validation plugin with type guards and parameter validation",
6
6
  "main": "./dist/cjs/index.js",
@@ -44,23 +44,23 @@
44
44
  },
45
45
  "sideEffects": false,
46
46
  "dependencies": {
47
- "@real-router/core": "^0.41.0",
47
+ "@real-router/core": "^0.42.0",
48
48
  "@real-router/logger": "^0.2.1"
49
49
  },
50
50
  "peerDependencies": {
51
- "@real-router/core": "^0.41.0"
51
+ "@real-router/core": "^0.42.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "route-tree": "^0.3.4",
55
- "type-guards": "^0.4.1"
55
+ "type-guards": "^0.4.2"
56
56
  },
57
57
  "scripts": {
58
- "build": "tsup",
58
+ "build": "tsdown --config-loader unrun",
59
59
  "test": "vitest",
60
60
  "type-check": "tsc --noEmit",
61
61
  "lint": "eslint --cache --ext .ts src/ tests/ --fix --max-warnings 0",
62
62
  "lint:package": "publint",
63
63
  "lint:types": "attw --pack .",
64
- "build:dist-only": "tsup"
64
+ "build:dist-only": "tsdown --config-loader unrun"
65
65
  }
66
66
  }
@@ -12,6 +12,7 @@ const VALID_QUERY_PARAMS = {
12
12
  arrayFormat: ["none", "brackets", "index", "comma"] as const,
13
13
  booleanFormat: ["none", "string", "empty-true"] as const,
14
14
  nullFormat: ["default", "hidden"] as const,
15
+ numberFormat: ["none", "auto"] as const,
15
16
  } as const;
16
17
 
17
18
  const VALID_LOGGER_LEVELS = [
@@ -1 +0,0 @@
1
- {"inputs":{"../../node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js":{"bytes":569,"imports":[],"format":"esm"},"../type-guards/dist/esm/index.mjs":{"bytes":3269,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":224,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/dependencies.ts":{"bytes":4367,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/eventBus.ts":{"bytes":1358,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/lifecycle.ts":{"bytes":2528,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/navigation.ts":{"bytes":1841,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/options.ts":{"bytes":8080,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/plugins.ts":{"bytes":2819,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/retrospective.ts":{"bytes":18459,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../path-matcher/dist/esm/index.mjs":{"bytes":9525,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../search-params/dist/esm/index.mjs":{"bytes":3813,"imports":[{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"../route-tree/dist/esm/index.mjs":{"bytes":6514,"imports":[{"path":"../path-matcher/dist/esm/index.mjs","kind":"import-statement","original":"path-matcher"},{"path":"../search-params/dist/esm/index.mjs","kind":"import-statement","original":"search-params"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/forwardTo.ts":{"bytes":8454,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/routes.ts":{"bytes":17069,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/validators/forwardTo.ts","kind":"import-statement","original":"./forwardTo"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validators/state.ts":{"bytes":737,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/validationPlugin.ts":{"bytes":10706,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core/validation","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/validators/dependencies.ts","kind":"import-statement","original":"./validators/dependencies"},{"path":"src/validators/eventBus.ts","kind":"import-statement","original":"./validators/eventBus"},{"path":"src/validators/lifecycle.ts","kind":"import-statement","original":"./validators/lifecycle"},{"path":"src/validators/navigation.ts","kind":"import-statement","original":"./validators/navigation"},{"path":"src/validators/options.ts","kind":"import-statement","original":"./validators/options"},{"path":"src/validators/plugins.ts","kind":"import-statement","original":"./validators/plugins"},{"path":"src/validators/retrospective.ts","kind":"import-statement","original":"./validators/retrospective"},{"path":"src/validators/routes.ts","kind":"import-statement","original":"./validators/routes"},{"path":"src/validators/state.ts","kind":"import-statement","original":"./validators/state"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":169,"imports":[{"path":"src/validationPlugin.ts","kind":"import-statement","original":"./validationPlugin"},{"path":"/home/runner/work/real-router/real-router/node_modules/.pnpm/tsup@8.5.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_typescript@6.0.2_yaml@2.8.3/node_modules/tsup/assets/cjs_shims.js","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/cjs/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":109687},"dist/cjs/index.js":{"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core/validation","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true}],"exports":["validationPlugin"],"entryPoint":"src/index.ts","inputs":{"src/validationPlugin.ts":{"bytesInOutput":6826},"../type-guards/dist/esm/index.mjs":{"bytesInOutput":3016},"src/validators/dependencies.ts":{"bytesInOutput":3115},"src/helpers.ts":{"bytesInOutput":124},"src/validators/eventBus.ts":{"bytesInOutput":624},"src/validators/lifecycle.ts":{"bytesInOutput":1892},"src/validators/navigation.ts":{"bytesInOutput":1224},"src/validators/options.ts":{"bytesInOutput":6737},"src/validators/plugins.ts":{"bytesInOutput":2433},"src/validators/retrospective.ts":{"bytesInOutput":9714},"src/validators/routes.ts":{"bytesInOutput":9093},"../route-tree/dist/esm/index.mjs":{"bytesInOutput":4666},"src/validators/forwardTo.ts":{"bytesInOutput":6353},"src/validators/state.ts":{"bytesInOutput":479},"src/index.ts":{"bytesInOutput":0}},"bytes":57026}}}
@@ -1 +0,0 @@
1
- {"inputs":{"../type-guards/dist/esm/index.mjs":{"bytes":3269,"imports":[],"format":"esm"},"src/helpers.ts":{"bytes":224,"imports":[],"format":"esm"},"src/validators/dependencies.ts":{"bytes":4367,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/validators/eventBus.ts":{"bytes":1358,"imports":[],"format":"esm"},"src/validators/lifecycle.ts":{"bytes":2528,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/validators/navigation.ts":{"bytes":1841,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"}],"format":"esm"},"src/validators/options.ts":{"bytes":8080,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"}],"format":"esm"},"src/validators/plugins.ts":{"bytes":2819,"imports":[{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"src/helpers.ts","kind":"import-statement","original":"../helpers"}],"format":"esm"},"src/validators/retrospective.ts":{"bytes":18459,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true}],"format":"esm"},"../path-matcher/dist/esm/index.mjs":{"bytes":9525,"imports":[],"format":"esm"},"../search-params/dist/esm/index.mjs":{"bytes":3813,"imports":[],"format":"esm"},"../route-tree/dist/esm/index.mjs":{"bytes":6514,"imports":[{"path":"../path-matcher/dist/esm/index.mjs","kind":"import-statement","original":"path-matcher"},{"path":"../search-params/dist/esm/index.mjs","kind":"import-statement","original":"search-params"}],"format":"esm"},"src/validators/forwardTo.ts":{"bytes":8454,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"}],"format":"esm"},"src/validators/routes.ts":{"bytes":17069,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"../route-tree/dist/esm/index.mjs","kind":"import-statement","original":"route-tree"},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/validators/forwardTo.ts","kind":"import-statement","original":"./forwardTo"}],"format":"esm"},"src/validators/state.ts":{"bytes":737,"imports":[{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"}],"format":"esm"},"src/validationPlugin.ts":{"bytes":10706,"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core/validation","kind":"import-statement","external":true},{"path":"../type-guards/dist/esm/index.mjs","kind":"import-statement","original":"type-guards"},{"path":"src/validators/dependencies.ts","kind":"import-statement","original":"./validators/dependencies"},{"path":"src/validators/eventBus.ts","kind":"import-statement","original":"./validators/eventBus"},{"path":"src/validators/lifecycle.ts","kind":"import-statement","original":"./validators/lifecycle"},{"path":"src/validators/navigation.ts","kind":"import-statement","original":"./validators/navigation"},{"path":"src/validators/options.ts","kind":"import-statement","original":"./validators/options"},{"path":"src/validators/plugins.ts","kind":"import-statement","original":"./validators/plugins"},{"path":"src/validators/retrospective.ts","kind":"import-statement","original":"./validators/retrospective"},{"path":"src/validators/routes.ts","kind":"import-statement","original":"./validators/routes"},{"path":"src/validators/state.ts","kind":"import-statement","original":"./validators/state"}],"format":"esm"},"src/index.ts":{"bytes":169,"imports":[{"path":"src/validationPlugin.ts","kind":"import-statement","original":"./validationPlugin"}],"format":"esm"}},"outputs":{"dist/esm/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":109687},"dist/esm/index.mjs":{"imports":[{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core/validation","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/logger","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true},{"path":"@real-router/core","kind":"import-statement","external":true}],"exports":["validationPlugin"],"entryPoint":"src/index.ts","inputs":{"src/validationPlugin.ts":{"bytesInOutput":6826},"../type-guards/dist/esm/index.mjs":{"bytesInOutput":3016},"src/validators/dependencies.ts":{"bytesInOutput":3115},"src/helpers.ts":{"bytesInOutput":124},"src/validators/eventBus.ts":{"bytesInOutput":624},"src/validators/lifecycle.ts":{"bytesInOutput":1892},"src/validators/navigation.ts":{"bytesInOutput":1224},"src/validators/options.ts":{"bytesInOutput":6737},"src/validators/plugins.ts":{"bytesInOutput":2433},"src/validators/retrospective.ts":{"bytesInOutput":9714},"src/validators/routes.ts":{"bytesInOutput":9093},"../route-tree/dist/esm/index.mjs":{"bytesInOutput":4666},"src/validators/forwardTo.ts":{"bytesInOutput":6353},"src/validators/state.ts":{"bytesInOutput":479},"src/index.ts":{"bytesInOutput":0}},"bytes":57026}}}