@stone-js/validation 0.8.2 → 0.8.4

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -15
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -247,21 +247,6 @@ function validateEvent(event, rules, validator = Validator.create()) {
247
247
  }
248
248
  }
249
249
 
250
- /**
251
- * Opt-in blueprint: import and register it to enable validation.
252
- *
253
- * It contributes the validation service provider. `stone.providers` is an array, so this merges
254
- * with the rest of the app rather than replacing anything.
255
- */
256
- const validationBlueprint = {
257
- stone: {
258
- validation: {},
259
- providers: [
260
- ValidationServiceProvider
261
- ]
262
- }
263
- };
264
-
265
250
  /**
266
251
  * Builds a route middleware that validates the event's inputs before the handler runs.
267
252
  *
@@ -283,4 +268,19 @@ function validate(rules) {
283
268
  };
284
269
  }
285
270
 
271
+ /**
272
+ * Opt-in blueprint: import and register it to enable validation.
273
+ *
274
+ * It contributes the validation service provider. `stone.providers` is an array, so this merges
275
+ * with the rest of the app rather than replacing anything.
276
+ */
277
+ const validationBlueprint = {
278
+ stone: {
279
+ validation: {},
280
+ providers: [
281
+ ValidationServiceProvider
282
+ ]
283
+ }
284
+ };
285
+
286
286
  export { ValidationError, ValidationServiceProvider, Validator, fromStandard, fromZod, isNativeSchema, isStandardSchema, isZodLike, resolveSchema, validate, validateEvent, validationBlueprint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stone-js/validation",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "description": "Framework-agnostic input validation for Stone.js. Define a schema once (Zod, Valibot, ArkType — anything Standard Schema) and validate it identically on the backend and the frontend.",
5
5
  "author": "Mr. Stone <evensstone@gmail.com>",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "node": ">=18.17.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@stone-js/core": "0.8.2"
43
+ "@stone-js/core": "0.8.4"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@commitlint/cli": "^19.8.1",
@@ -62,7 +62,7 @@
62
62
  "typescript": "^5.6.3",
63
63
  "vitest": "^3.2.4",
64
64
  "zod": "^3.24.1",
65
- "@stone-js/core": "0.8.2"
65
+ "@stone-js/core": "0.8.4"
66
66
  },
67
67
  "ts-standard": {
68
68
  "globals": [