@okfit/core 0.8.0 → 0.8.2

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/Actor.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Schema } from "effect";
2
2
 
3
3
  //#region src/Actor.ts
4
- const ACTOR_RE = /^(?:[^\s/:]+\/[^\s]+|[A-Za-z][A-Za-z0-9_-]*:[^\s]+)$/;
4
+ const ACTOR_RE = /^(?:[^\s/:]+\/[^\s]+|[A-Za-z][A-Za-z0-9_-]*:[^\s]+)$/u;
5
5
  const isHuman = (actor) => actor.startsWith("human:");
6
6
  const form = (actor) => {
7
7
  const colon = actor.indexOf(":");
package/Generated.js CHANGED
@@ -3,7 +3,7 @@ import { Timestamp } from "./Timestamp.js";
3
3
  import { Schema } from "effect";
4
4
 
5
5
  //#region src/Generated.ts
6
- const SHA256_HEX_RE = /^[0-9a-f]{64}$/;
6
+ const SHA256_HEX_RE = /^[0-9a-f]{64}$/u;
7
7
  /**
8
8
  * A lowercase 64-character hex sha256 digest of a concept's body, as `@okfit/profiles`'
9
9
  * `Derivation.bodyDigest` computes it (issue #19). Optional: every concept stamped before
package/OkfitConfig.js CHANGED
@@ -27,7 +27,7 @@ const LintLevel = Schema.Literals([
27
27
  });
28
28
  const SHORT_DURATION_RE = /^(\d+)(h|d|w)$/;
29
29
  const LONG_DURATION_RE = /^\d+(?:\.\d+)?\s+(?:nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?)$/;
30
- const STALE_AFTER_PATTERN_RE = /^(?:\d+[hdw]|\d+(?:\.\d+)?\s+(?:nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?))$/;
30
+ const STALE_AFTER_PATTERN_RE = /^(?:\d+[hdw]|\d+(?:\.\d+)?\s+(?:nanos?|micros?|millis?|seconds?|minutes?|hours?|days?|weeks?))$/u;
31
31
  const HOUR_MILLIS = 36e5;
32
32
  const DAY_MILLIS = 864e5;
33
33
  const WEEK_MILLIS = 6048e5;
package/Timestamp.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Function, Schema, SchemaTransformation } from "effect";
2
2
 
3
3
  //#region src/Timestamp.ts
4
- const OFFSET_RE = /(?:Z|[+-]\d{2}:\d{2})$/;
4
+ const OFFSET_RE = /(?:Z|[+-]\d{2}:\d{2})$/u;
5
5
  const ZERO_MILLIS = /\.000(?=Z$)/;
6
6
  /**
7
7
  * ISO 8601 string with an explicit offset (`Z`, `+hh:mm` or `-hh:mm`) to `DateTime.Utc`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okfit/core",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "private": false,
5
5
  "description": "Spec-level Open Knowledge Format (OKF) v0.2 schemas, bundle loading, graph, derivation, and validation for Effect.",
6
6
  "keywords": [
@@ -37,15 +37,15 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "peerDependencies": {
40
- "@effected/config-file": "^0.12.0",
41
- "@effected/glob": "^0.8.0",
42
- "@effected/jsonc": "^0.13.0",
43
- "@effected/markdown": "^0.12.0",
44
- "@effected/schemastore": "^0.15.0",
45
- "@effected/toml": "^0.9.0",
46
- "@effected/walker": "^0.12.0",
47
- "@effected/yaml": "^0.17.0",
48
- "effect": "4.0.0-rc.117"
40
+ "@effected/config-file": "^0.13.0",
41
+ "@effected/glob": "^0.9.0",
42
+ "@effected/jsonc": "^0.14.0",
43
+ "@effected/markdown": "^0.14.0",
44
+ "@effected/schemastore": "^0.17.0",
45
+ "@effected/toml": "^0.10.0",
46
+ "@effected/walker": "^0.13.0",
47
+ "@effected/yaml": "^0.18.0",
48
+ "effect": "4.0.0-rc.118"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=24.11.0"