@dicebear/core 10.0.0-rc.3 → 10.0.0-rc.4

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/lib/Resolver.d.ts CHANGED
@@ -52,8 +52,8 @@ export declare class Resolver<D = unknown> {
52
52
  * Returns every value that has been touched during this resolution. Only
53
53
  * memoized entries are included; unset options remain `undefined` and
54
54
  * disappear on `JSON.stringify()`. Per-component transform values from
55
- * {@link componentTransform} are intentionally not memoized and therefore
56
- * do not appear in the snapshot.
55
+ * {@link componentTransform} and the user-supplied {@link seed} are
56
+ * intentionally not memoized and therefore do not appear in the snapshot.
57
57
  *
58
58
  * The returned object aliases the internal cache; callers that need
59
59
  * isolation (e.g. {@link Avatar.toJSON}) clone it themselves.
package/lib/Resolver.js CHANGED
@@ -33,7 +33,8 @@ export class Resolver {
33
33
  __classPrivateFieldSet(this, _Resolver_prng, new Prng(this.seed()), "f");
34
34
  }
35
35
  seed() {
36
- return __classPrivateFieldGet(this, _Resolver_instances, "m", _Resolver_memo).call(this, 'seed', () => __classPrivateFieldGet(this, _Resolver_options, "f").seed() ?? '');
36
+ // Not memoized so the raw seed stays out of {@link resolved}.
37
+ return __classPrivateFieldGet(this, _Resolver_options, "f").seed() ?? '';
37
38
  }
38
39
  size() {
39
40
  return __classPrivateFieldGet(this, _Resolver_instances, "m", _Resolver_memo).call(this, 'size', () => __classPrivateFieldGet(this, _Resolver_options, "f").size());
@@ -132,8 +133,8 @@ export class Resolver {
132
133
  * Returns every value that has been touched during this resolution. Only
133
134
  * memoized entries are included; unset options remain `undefined` and
134
135
  * disappear on `JSON.stringify()`. Per-component transform values from
135
- * {@link componentTransform} are intentionally not memoized and therefore
136
- * do not appear in the snapshot.
136
+ * {@link componentTransform} and the user-supplied {@link seed} are
137
+ * intentionally not memoized and therefore do not appear in the snapshot.
137
138
  *
138
139
  * The returned object aliases the internal cache; callers that need
139
140
  * isolation (e.g. {@link Avatar.toJSON}) clone it themselves.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/core",
3
- "version": "10.0.0-rc.3",
3
+ "version": "10.0.0-rc.4",
4
4
  "description": "Unique avatars from dozens of styles — deterministic, customizable, vector-based.",
5
5
  "keywords": [
6
6
  "avatar",