@equinor/apollo-utils 1.0.2 → 1.0.3

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/index.js CHANGED
@@ -32,7 +32,7 @@ var import_jotai = require("jotai");
32
32
  var import_utils = require("jotai/utils");
33
33
  function createFormFamily() {
34
34
  return (0, import_utils.atomFamily)(
35
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
35
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Deprecated file
36
36
  (_param) => (0, import_jotai.atom)(void 0),
37
37
  (a, b) => a.id === b.id
38
38
  );
@@ -86,6 +86,7 @@ function createValidator(schema) {
86
86
  if (validation.success) return void 0;
87
87
  return prepareErrors(validation);
88
88
  },
89
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- This file is deprecated
89
90
  validateAsync: async (entity) => {
90
91
  const validation = await schema.safeParseAsync(entity);
91
92
  if (validation.success) return void 0;
package/dist/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { atom, useAtom, useAtomValue, useSetAtom } from "jotai";
3
3
  import { atomFamily } from "jotai/utils";
4
4
  function createFormFamily() {
5
5
  return atomFamily(
6
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
6
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Deprecated file
7
7
  (_param) => atom(void 0),
8
8
  (a, b) => a.id === b.id
9
9
  );
@@ -57,6 +57,7 @@ function createValidator(schema) {
57
57
  if (validation.success) return void 0;
58
58
  return prepareErrors(validation);
59
59
  },
60
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars -- This file is deprecated
60
61
  validateAsync: async (entity) => {
61
62
  const validation = await schema.safeParseAsync(entity);
62
63
  if (validation.success) return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/apollo-utils",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -33,8 +33,8 @@
33
33
  "styled-components": "6.3.9",
34
34
  "tsup": "8.5.1",
35
35
  "vitest": "4.0.18",
36
- "@equinor/cpl-eslint-config": "1.0.1",
37
- "@equinor/cpl-typescript-config": "0.0.3"
36
+ "@equinor/cpl-eslint-config": "1.0.4",
37
+ "@equinor/cpl-typescript-config": "0.0.5"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@equinor/eds-core-react": ">=2.2.0",