@takuhon/core 0.9.0 → 0.10.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/dist/index.d.ts CHANGED
@@ -2846,6 +2846,12 @@ interface LocalizedTakuhon {
2846
2846
  * relevant Spec section without leaking Ajv-specific types.
2847
2847
  * - The Ajv 2020 build is used because the schema declares
2848
2848
  * `$schema: "https://json-schema.org/draft/2020-12/schema"`.
2849
+ * - The validator is *precompiled* to standalone code at build time
2850
+ * (`scripts/generate-validator.mjs`) and imported here, so `validate()`
2851
+ * performs no runtime `new Function`/`eval`. That keeps it usable under a
2852
+ * strict CSP (`script-src 'self'`, no `'unsafe-eval'`) in the browser admin
2853
+ * SPA, and in other eval-restricted runtimes. Regenerate after any schema
2854
+ * change via `pnpm --filter @takuhon/core generate` (wired into `prebuild`).
2849
2855
  */
2850
2856
 
2851
2857
  /**