@savvy-web/silk-effects 9.2.1 → 9.2.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.
|
@@ -95,7 +95,7 @@ const DependencyTableTypeSchema = Schema.Literals([
|
|
|
95
95
|
*
|
|
96
96
|
* @public
|
|
97
97
|
*/
|
|
98
|
-
const VERSION_RE = /^(\u2014|[~^]?\d+\.\d+\.\d+(?:[-+.][\w.+-]+)?|(?:catalog|workspace|npm|jsr|file|link|portal):[^\s|]+)
|
|
98
|
+
const VERSION_RE = /^(\u2014|[~^]?\d+\.\d+\.\d+(?:[-+.][\w.+-]+)?|(?:catalog|workspace|npm|jsr|file|link|portal):[^\s|]+)$/u;
|
|
99
99
|
/**
|
|
100
100
|
* Version string or em dash (U+2014) sentinel for added/removed entries.
|
|
101
101
|
*
|
|
@@ -40,7 +40,7 @@ import { Schema } from "effect";
|
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
|
-
const CommitHashSchema = Schema.String.check(Schema.isPattern(/^[a-f0-9]{7,}
|
|
43
|
+
const CommitHashSchema = Schema.String.check(Schema.isPattern(/^[a-f0-9]{7,}$/u, { message: "Commit hash must be 7 or more lowercase hexadecimal characters (0-9, a-f). Example: \"a1b2c3d\" or a full 40-character SHA like \"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2\". Uppercase letters are not allowed" }));
|
|
44
44
|
/**
|
|
45
45
|
* Semantic version bump type.
|
|
46
46
|
*
|
|
@@ -52,7 +52,7 @@ function isValidUrl(value) {
|
|
|
52
52
|
*
|
|
53
53
|
* @public
|
|
54
54
|
*/
|
|
55
|
-
const UsernameSchema = Schema.String.check(Schema.isPattern(/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])
|
|
55
|
+
const UsernameSchema = Schema.String.check(Schema.isPattern(/^[a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?$/u, { message: "Invalid GitHub username format. Usernames must contain only alphanumeric characters and hyphens, and cannot start or end with a hyphen. Example: \"octocat\" or \"my-user-123\"" }));
|
|
56
56
|
/**
|
|
57
57
|
* Schema for a GitHub issue or PR number (positive integer).
|
|
58
58
|
*
|
|
@@ -23,7 +23,7 @@ import { Effect, Schema } from "effect";
|
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
25
|
/** Regex for `owner/repo` format, shared between schema and validation. */
|
|
26
|
-
const REPO_PATTERN = /^[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]
|
|
26
|
+
const REPO_PATTERN = /^[a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+$/u;
|
|
27
27
|
/**
|
|
28
28
|
* Schema for a GitHub repository in `owner/repo` format.
|
|
29
29
|
*
|
|
@@ -54,7 +54,7 @@ import { Schema } from "effect";
|
|
|
54
54
|
*
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
57
|
-
const JsonPathSchema = Schema.String.check(Schema.isPattern(/^\$\.[^.]
|
|
57
|
+
const JsonPathSchema = Schema.String.check(Schema.isPattern(/^\$\.[^.]/u, { message: "JSONPath must start with \"$.\" followed by a property (e.g., \"$.version\", \"$.metadata.version\")" }));
|
|
58
58
|
/**
|
|
59
59
|
* Schema for a single version file configuration entry — **new shape**.
|
|
60
60
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvy-web/silk-effects",
|
|
3
|
-
"version": "9.2.
|
|
3
|
+
"version": "9.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Shared Effect library for Silk Suite conventions",
|
|
6
6
|
"homepage": "https://github.com/savvy-web/systems/tree/main/packages/silk-effects",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@effected/glob": "^0.9.0",
|
|
42
42
|
"@effected/jsonc": "^0.14.0",
|
|
43
43
|
"@effected/markdown": "^0.14.0",
|
|
44
|
-
"@effected/package-json": "^0.19.
|
|
44
|
+
"@effected/package-json": "^0.19.1",
|
|
45
45
|
"@effected/toml": "^0.10.0",
|
|
46
46
|
"@effected/walker": "^0.13.0",
|
|
47
47
|
"@effected/yaml": "^0.18.0",
|
|
@@ -7,7 +7,7 @@ import { Schema } from "effect";
|
|
|
7
7
|
* (`.repos/<name>`) without escaping the `.repos/` directory.
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
|
-
const RepoName = Schema.String.check(Schema.isPattern(/^(?!\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$/)).annotate({ identifier: "RepoName" });
|
|
10
|
+
const RepoName = Schema.String.check(Schema.isPattern(/^(?!\.{1,2}$)[A-Za-z0-9][A-Za-z0-9._-]*$/u)).annotate({ identifier: "RepoName" });
|
|
11
11
|
/**
|
|
12
12
|
* An agent-appended note: a discovered answer stamped with the pin it was written against.
|
|
13
13
|
* @public
|