@elliots/bun-plugin-typical 0.2.0-beta.1 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.d.mts +20 -6
  2. package/package.json +2 -2
package/dist/index.d.mts CHANGED
@@ -34,23 +34,37 @@ interface TypicalConfig {
34
34
  * Example: ["React.*", "Express.Request", "*.Event"]
35
35
  */
36
36
  ignoreTypes?: string[];
37
- /**
38
- * Skip validation for DOM types (Document, Element, Node, etc.) and their subclasses.
39
- * These types have complex Window intersections that typia cannot process.
40
- * Default: true
41
- */
42
- ignoreDOMTypes?: boolean;
43
37
  /**
44
38
  * Validate function parameters and return types at runtime.
45
39
  * When enabled, typed function parameters get runtime validation calls injected.
46
40
  * Default: true
47
41
  */
48
42
  validateFunctions?: boolean;
43
+ /**
44
+ * Transform JSON.parse<T>() calls to validate and filter the parsed result
45
+ * to only include properties defined in type T.
46
+ * Default: true
47
+ */
48
+ transformJSONParse?: boolean;
49
+ /**
50
+ * Transform JSON.stringify<T>() calls to only stringify properties defined
51
+ * in type T, preventing accidental data leaks.
52
+ * Default: true
53
+ */
54
+ transformJSONStringify?: boolean;
49
55
  /**
50
56
  * Source map generation settings.
51
57
  * Controls whether and how source maps are generated for transformed code.
52
58
  */
53
59
  sourceMap?: TypicalSourceMapConfig;
60
+ /**
61
+ * Maximum number of helper functions (_io0, _io1, etc.) that can be generated
62
+ * for a single type before erroring. Complex DOM types or library types can
63
+ * generate hundreds of functions which indicates a type that should be excluded.
64
+ * Set to 0 to disable the limit.
65
+ * Default: 50
66
+ */
67
+ maxGeneratedFunctions?: number;
54
68
  }
55
69
  //#endregion
56
70
  //#region src/core/options.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliots/bun-plugin-typical",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.1",
4
4
  "description": "Bun plugin for typical - runtime safe TypeScript transformer",
5
5
  "keywords": [
6
6
  "bun",
@@ -36,7 +36,7 @@
36
36
  "access": "public"
37
37
  },
38
38
  "dependencies": {
39
- "@elliots/typical": "0.2.0-beta.1"
39
+ "@elliots/typical": "0.2.1"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/bun": "^1.0.0",