@xh/hoist 72.0.0-SNAPSHOT.1736809021133 → 72.0.0-SNAPSHOT.1736826689435

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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## v72.0.0-SNAPSHOT - unreleased
4
4
 
5
+ ### ⚙️ Typescript API Adjustments
6
+
7
+ * Improved signature of `HoistBase.markPersist`.
8
+
5
9
  ## v71.0.0 - 2025-01-08
6
10
 
7
11
  ### 💥 Breaking Changes (upgrade difficulty: 🟠 MEDIUM - Hoist core update, import adjustments)
@@ -134,7 +134,7 @@ export declare abstract class HoistBase {
134
134
  * @param options - options governing the persistence of this object. These will be applied
135
135
  * on top of any default persistWith options defined on the instance itself.
136
136
  */
137
- markPersist(property: keyof this & string, options?: PersistOptions): void;
137
+ markPersist<P extends keyof this & string>(property: P, options?: PersistOptions): void;
138
138
  /** @returns true if this instance has been destroyed. */
139
139
  get isDestroyed(): boolean;
140
140
  /**
package/core/HoistBase.ts CHANGED
@@ -256,7 +256,7 @@ export abstract class HoistBase {
256
256
  * @param options - options governing the persistence of this object. These will be applied
257
257
  * on top of any default persistWith options defined on the instance itself.
258
258
  */
259
- markPersist(property: keyof this & string, options: PersistOptions = {}) {
259
+ markPersist<P extends keyof this & string>(property: P, options: PersistOptions = {}) {
260
260
  // Read from and attach to Provider, failing gently
261
261
  PersistenceProvider.create({
262
262
  persistOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "72.0.0-SNAPSHOT.1736809021133",
3
+ "version": "72.0.0-SNAPSHOT.1736826689435",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": "github:xh/hoist-react",
6
6
  "homepage": "https://xh.io",