@karmaniverous/entity-manager 6.4.9 → 6.4.10

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/cjs/index.js CHANGED
@@ -2,17 +2,8 @@
2
2
 
3
3
  var conditionalize = require('./conditionalize.js');
4
4
  var EntityManager = require('./EntityManager.js');
5
- var entityTools = require('@karmaniverous/entity-tools');
6
5
 
7
6
 
8
7
 
9
8
  exports.conditionalize = conditionalize.conditionalize;
10
9
  exports.EntityManager = EntityManager.EntityManager;
11
- Object.defineProperty(exports, "defaultTranscodes", {
12
- enumerable: true,
13
- get: function () { return entityTools.defaultTranscodes; }
14
- });
15
- Object.defineProperty(exports, "isNil", {
16
- enumerable: true,
17
- get: function () { return entityTools.isNil; }
18
- });
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Entity, Exactify, TranscodeMap, PropertiesOfType, TranscodableProperties, Transcodes, DefaultTranscodeMap, SortOrder } from '@karmaniverous/entity-tools';
2
- export { DefaultTranscodeMap, Entity, Exactify, Nil, PartialTranscodable, PropertiesNotOfType, PropertiesOfType, SortOrder, TranscodableProperties, TranscodeMap, Transcodes, defaultTranscodes, isNil } from '@karmaniverous/entity-tools';
3
2
  import { z } from 'zod';
4
3
 
5
4
  /**
@@ -357,9 +356,7 @@ type ItemMap<M extends EntityMap, HashKey extends string = 'hashKey', RangeKey e
357
356
  [P in keyof Exactify<M[EntityToken]>]: [
358
357
  NonNullable<M[EntityToken][P]>
359
358
  ] extends [never] ? string : M[EntityToken][P];
360
- } & {
361
- [P in HashKey | RangeKey]?: string;
362
- }>;
359
+ } & Partial<Record<HashKey | RangeKey, string>>>;
363
360
  };
364
361
 
365
362
  declare const configSchema: z.ZodEffects<z.ZodObject<{
@@ -831,41 +828,4 @@ declare class EntityManager<M extends EntityMap, HashKey extends string, RangeKe
831
828
  query<Item extends ItemMap<M, HashKey, RangeKey>[EntityToken], EntityToken extends keyof Exactify<M> & string>(options: QueryOptions<Item, EntityToken, M, HashKey, RangeKey>): Promise<QueryResult<Item, EntityToken, M, HashKey, RangeKey>>;
832
829
  }
833
830
 
834
- /**
835
- * Generic logger endpoint type.
836
- *
837
- * @category Logger
838
- */
839
- type LoggerEndpoint = (...args: unknown[]) => void;
840
- /**
841
- * Logger interface.
842
- *
843
- * @category Logger
844
- */
845
- interface Logger {
846
- debug: LoggerEndpoint;
847
- error: LoggerEndpoint;
848
- }
849
- /**
850
- * Logger options.
851
- *
852
- * @category Logger
853
- */
854
- interface LoggerOptions {
855
- /** Logger to use for internal logging. Must support the `debug` & `error` methods. Defaults to `console`. */
856
- logger?: Logger;
857
- /** Enables internal logging when `true`. */
858
- logInternals?: boolean;
859
- }
860
-
861
- /**
862
- * Returns an object type with specific properties rendered required and non-nullable.
863
- *
864
- * @typeParam T - The object type to modify.
865
- * @typeParam K - Union of keys of `T` to render required and non-nullable.
866
- */
867
- type WithRequiredAndNonNullable<T, K extends keyof T> = T & {
868
- [P in K]-?: NonNullable<T[P]>;
869
- };
870
-
871
- export { type Config, type ConfigEntities, type ConfigEntity, type ConfigEntityGenerated, type ConfigKeys, type ConfigTranscodes, EntityManager, type EntityMap, type ExclusiveKey, type ItemMap, type Logger, type LoggerEndpoint, type LoggerOptions, type ParsedConfig, type QueryOptions, type QueryResult, type ShardBump, type ShardQueryFunction, type ShardQueryMap, type ShardQueryResult, type Unwrap, type WithRequiredAndNonNullable, conditionalize };
831
+ export { type Config, type ConfigEntities, type ConfigEntity, type ConfigEntityGenerated, type ConfigKeys, type ConfigTranscodes, EntityManager, type EntityMap, type ExclusiveKey, type ItemMap, type ParsedConfig, type QueryOptions, type QueryResult, type ShardBump, type ShardQueryFunction, type ShardQueryMap, type ShardQueryResult, type Unwrap, conditionalize };
package/dist/mjs/index.js CHANGED
@@ -1,3 +1,2 @@
1
1
  export { conditionalize } from './conditionalize.js';
2
2
  export { EntityManager } from './EntityManager.js';
3
- export { defaultTranscodes, isNil } from '@karmaniverous/entity-tools';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/karmaniverous/entity-manager/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@karmaniverous/entity-tools": "^0.3.1",
7
+ "@karmaniverous/entity-tools": "^0.4.0",
8
8
  "@karmaniverous/string-utilities": "^0.2.1",
9
9
  "jsonschema": "^1.4.1",
10
10
  "lz-string": "^1.5.0",
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "description": "Rational indexing & cross-shard querying at scale in your NoSQL database so you can focus on your application logic.",
16
16
  "devDependencies": {
17
- "@dotenvx/dotenvx": "^1.20.0",
17
+ "@dotenvx/dotenvx": "^1.21.0",
18
18
  "@eslint/js": "^9.13.0",
19
- "@faker-js/faker": "^9.0.3",
19
+ "@faker-js/faker": "^9.1.0",
20
20
  "@karmaniverous/mock-db": "^0.3.3",
21
21
  "@rollup/plugin-alias": "^5.1.1",
22
22
  "@rollup/plugin-commonjs": "^28.0.1",
@@ -24,15 +24,15 @@
24
24
  "@rollup/plugin-node-resolve": "^15.3.0",
25
25
  "@rollup/plugin-strip": "^3.0.4",
26
26
  "@rollup/plugin-typescript": "^12.1.1",
27
- "@types/chai": "^5.0.0",
27
+ "@types/chai": "^5.0.1",
28
28
  "@types/eslint__js": "^8.42.3",
29
29
  "@types/eslint-config-prettier": "^6.11.3",
30
30
  "@types/eslint-plugin-mocha": "^10.4.0",
31
31
  "@types/mocha": "^10.0.9",
32
- "@types/node": "^22.7.8",
32
+ "@types/node": "^22.8.2",
33
33
  "@types/string-hash": "^1.1.3",
34
34
  "auto-changelog": "^2.5.0",
35
- "chai": "^5.1.1",
35
+ "chai": "^5.1.2",
36
36
  "cross-env": "^7.0.3",
37
37
  "eslint": "^9.13.0",
38
38
  "eslint-config-prettier": "^9.1.0",
@@ -40,24 +40,24 @@
40
40
  "eslint-plugin-simple-import-sort": "^12.1.1",
41
41
  "eslint-plugin-tsdoc": "^0.3.0",
42
42
  "jsdom-global": "^3.0.2",
43
- "knip": "^5.33.3",
44
- "lefthook": "^1.7.22",
43
+ "knip": "^5.34.2",
44
+ "lefthook": "^1.8.2",
45
45
  "mocha": "^10.7.3",
46
46
  "nyc": "^17.1.0",
47
47
  "prettier": "^3.3.3",
48
48
  "release-it": "^17.10.0",
49
49
  "rimraf": "^6.0.1",
50
- "rollup": "^4.24.0",
50
+ "rollup": "^4.24.2",
51
51
  "rollup-plugin-dts": "^6.1.1",
52
52
  "source-map-support": "^0.5.21",
53
53
  "ts-node": "^10.9.2",
54
54
  "tslib": "^2.8.0",
55
55
  "typedoc": "^0.26.10",
56
- "typedoc-plugin-mdn-links": "^3.3.4",
56
+ "typedoc-plugin-mdn-links": "^3.3.5",
57
57
  "typedoc-plugin-replace-text": "^4.0.0",
58
58
  "typedoc-plugin-zod": "^1.2.1",
59
59
  "typescript": "^5.6.3",
60
- "typescript-eslint": "^8.11.0"
60
+ "typescript-eslint": "^8.12.1"
61
61
  },
62
62
  "exports": {
63
63
  ".": {
@@ -132,5 +132,5 @@
132
132
  },
133
133
  "type": "module",
134
134
  "types": "dist/index.d.ts",
135
- "version": "6.4.9"
135
+ "version": "6.4.10"
136
136
  }