@vitest-agent/sdk 5.1.2 → 5.1.3

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": "@vitest-agent/sdk",
3
- "version": "5.1.2",
3
+ "version": "5.1.3",
4
4
  "private": false,
5
5
  "description": "Platform-free core for the vitest-agent package family: Effect Schema definitions, reporter and dispatcher contracts, errors, formatters, and pure utilities.",
6
6
  "keywords": [
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "acorn": "^8.18.0",
45
45
  "acorn-typescript": "^1.4.13",
46
- "effect": "4.0.0-rc.117"
46
+ "effect": "4.0.0-rc.118"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=24.11.0"
@@ -28,9 +28,11 @@ const RUN_REPORT_FILE_SCHEMA_URL = "https://raw.githubusercontent.com/spencerbeg
28
28
  * `Date.parse` alone is too permissive — it accepts `"Sep 7 2026"` and
29
29
  * other locale spellings a JSON Schema validator would reject — so the
30
30
  * pattern is checked first and the parse only rules out impossible
31
- * component values such as month 13.
31
+ * component values such as month 13. The `u` flag marks the pattern exact:
32
+ * without it effect treats a RegExp as approximate and omits it from the
33
+ * emitted JSON Schema.
32
34
  */
33
- const ISO_8601_INSTANT = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
35
+ const ISO_8601_INSTANT = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/u;
34
36
  const ISO_8601_MESSAGE = "generatedAt must be an ISO-8601 instant, e.g. 2026-09-07T23:45:57.308Z.";
35
37
  const IsoInstant = Schema.String.check(Schema.isPattern(ISO_8601_INSTANT, {
36
38
  description: "An ISO-8601 instant, the shape Date.prototype.toISOString produces.",
package/version.js CHANGED
@@ -11,7 +11,7 @@
11
11
  * survives into the published artifact.
12
12
  * @public
13
13
  */
14
- const CURRENT_SDK_VERSION = "5.1.2";
14
+ const CURRENT_SDK_VERSION = "5.1.3";
15
15
 
16
16
  //#endregion
17
17
  export { CURRENT_SDK_VERSION };