@final-hill/decorator-contracts 3.0.0 → 3.1.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/name.d.mts CHANGED
@@ -60,10 +60,9 @@ export declare const contractName: unique symbol;
60
60
  * declaration is read on the way to reporting it, so a throwing accessor must not
61
61
  * replace the failure with its own error. The constructor name is what is left.
62
62
  *
63
- * @param Class - The class to name, passed as the constructor itself (`Cart`). Do
64
- * not pass `instance.constructor`: through the proxy that resolves to a wrapper
65
- * rather than the class, so the declaration is not on it and the name reported
66
- * is the wrapper's.
63
+ * @param Class - The class to name, passed as the constructor itself (`Cart`).
64
+ * `instance.constructor` is the same object and may be passed instead, but a
65
+ * caller that already holds the class needs no instance to name it.
67
66
  * @internal
68
67
  * Exported only because the contract modules and the proxy live in their own files
69
68
  * and import it. Read {@link contractName} instead; it is the published surface.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@final-hill/decorator-contracts",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Code Contracts for TypeScript and ECMAScript classes",
5
5
  "type": "module",
6
6
  "exports": {