@arrai-innovations/reactive-helpers 23.0.2 → 24.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrai-innovations/reactive-helpers",
3
- "version": "23.0.2",
3
+ "version": "24.0.0",
4
4
  "description": "VueJS 3 utility composition functions to help manipulate objects and lists.",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -83,7 +83,7 @@
83
83
  "vue-deepunref": "^1.0.1"
84
84
  },
85
85
  "peerDependencies": {
86
- "@vueuse/core": "^13.0.0",
86
+ "@vueuse/core": "^14.0.0",
87
87
  "lodash-es": "^4.17.23",
88
88
  "vue": "^3.5.13"
89
89
  },
@@ -2,7 +2,7 @@
2
2
  * @typedef {object} ListRelatedRule - The rule for defining relationships for objects in a list.
3
3
  * @property {string} [fkKey] - Specifies the foreign key on each row used to link objects across lists. Defaults to
4
4
  * the rule's own key when omitted.
5
- * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
5
+ * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
6
6
  * A rule setting both uses `fkKey`.
7
7
  * @property {string[]} [order] - Specifies the order in which related objects should be sorted, if applicable.
8
8
  * @property {import('./listInstance.js').ObjectsByPk} objects - The objects that can be related based on the foreign key.
@@ -185,7 +185,7 @@ export type ListRelatedRule = {
185
185
  */
186
186
  fkKey?: string;
187
187
  /**
188
- * Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
188
+ * Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
189
189
  * A rule setting both uses `fkKey`.
190
190
  */
191
191
  pkKey?: string;
@@ -131,7 +131,7 @@ export class ObjectRelatedError extends Error {
131
131
  * @typedef {object} ObjectRelatedRule - The rule for defining relationships for the managed object to other collections of objects.
132
132
  * @property {string} [fkKey] - The foreign key on the managed object that corresponds to the key in the related
133
133
  * object. Defaults to the rule's own key when omitted.
134
- * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
134
+ * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
135
135
  * A rule setting both uses `fkKey`.
136
136
  * @property {import('./listInstance.js').ObjectsByPk} objects - The related objects, indexed by the key in the related object.
137
137
  * @property {string[]} [order] - The order of the related objects, if the related objects are an array.
@@ -225,7 +225,7 @@ export type ObjectRelatedRule = {
225
225
  */
226
226
  fkKey?: string;
227
227
  /**
228
- * Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
228
+ * Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
229
229
  * A rule setting both uses `fkKey`.
230
230
  */
231
231
  pkKey?: string;
@@ -46,7 +46,7 @@ export class ListRelatedError extends Error {
46
46
  * @typedef {object} ListRelatedRule - The rule for defining relationships for objects in a list.
47
47
  * @property {string} [fkKey] - Specifies the foreign key on each row used to link objects across lists. Defaults to
48
48
  * the rule's own key when omitted.
49
- * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
49
+ * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
50
50
  * A rule setting both uses `fkKey`.
51
51
  * @property {string[]} [order] - Specifies the order in which related objects should be sorted, if applicable.
52
52
  * @property {import('./listInstance.js').ObjectsByPk} objects - The objects that can be related based on the foreign key.
@@ -47,7 +47,7 @@ export class ObjectRelatedError extends Error {
47
47
  * @typedef {object} ObjectRelatedRule - The rule for defining relationships for the managed object to other collections of objects.
48
48
  * @property {string} [fkKey] - The foreign key on the managed object that corresponds to the key in the related
49
49
  * object. Defaults to the rule's own key when omitted.
50
- * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v24. The option never named a primary key.
50
+ * @property {string} [pkKey] - Deprecated alias for `fkKey`, removed in v25. The option never named a primary key.
51
51
  * A rule setting both uses `fkKey`.
52
52
  * @property {import('./listInstance.js').ObjectsByPk} objects - The related objects, indexed by the key in the related object.
53
53
  * @property {string[]} [order] - The order of the related objects, if the related objects are an array.
@@ -78,7 +78,7 @@ export function warnDeprecatedRulePkKey(composableName, ruleKey, rule, warned) {
78
78
  warned.add(ruleKey);
79
79
  const bothNames = rule.fkKey !== undefined ? ` This rule sets both, and "fkKey" is the one used.` : "";
80
80
  console.warn(
81
- `[${composableName}] Rule "${ruleKey}" uses "pkKey", which is deprecated and will be removed in v24. Rename it to "fkKey", which is what the option has always meant.${bothNames}`
81
+ `[${composableName}] Rule "${ruleKey}" uses "pkKey", which is deprecated and will be removed in v25. Rename it to "fkKey", which is what the option has always meant.${bothNames}`
82
82
  );
83
83
  }
84
84