@expo/entity-secondary-cache-local-memory 0.62.0 → 0.64.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.
Files changed (2) hide show
  1. package/README.md +12 -12
  2. package/package.json +15 -15
package/README.md CHANGED
@@ -9,16 +9,16 @@ this cache with caution - it is nonstandard. The cache is shared between request
9
9
 
10
10
  1. Create a concrete implementation of abstract class `EntitySecondaryCacheLoader`, in this example `TestEntitySecondaryCacheLoader`. The underlying data can come from anywhere, but an entity is constructed from the data and then authorized for the viewer.
11
11
  2. Create an instance of your `EntitySecondaryCacheLoader`, passing in a `LocalMemorySecondaryEntityCache`.
12
- ```typescript
13
- const secondaryCacheLoader = new TestSecondaryLocalMemoryCacheLoader(
14
- new LocalMemorySecondaryEntityCache(
15
- GenericLocalMemoryCacher.createLRUCache<LocalMemoryTestEntityFields>({})
16
- ),
17
- LocalMemoryTestEntity.loader(viewerContext)
18
- );
19
- ```
12
+ ```typescript
13
+ const secondaryCacheLoader = new TestSecondaryLocalMemoryCacheLoader(
14
+ new LocalMemorySecondaryEntityCache(
15
+ GenericLocalMemoryCacher.createLRUCache<LocalMemoryTestEntityFields>({}),
16
+ ),
17
+ LocalMemoryTestEntity.loader(viewerContext),
18
+ );
19
+ ```
20
20
  3. Load entities through it:
21
- ```typescript
22
- const loadParams = { id: createdEntity.getID() };
23
- const results = await secondaryCacheLoader.loadManyAsync([loadParams]);
24
- ```
21
+ ```typescript
22
+ const loadParams = { id: createdEntity.getID() };
23
+ const results = await secondaryCacheLoader.loadManyAsync([loadParams]);
24
+ ```
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
1
  {
2
2
  "name": "@expo/entity-secondary-cache-local-memory",
3
- "version": "0.62.0",
3
+ "version": "0.64.0",
4
4
  "description": "Local memory secondary cache for @expo/entity",
5
+ "keywords": [
6
+ "entity"
7
+ ],
8
+ "license": "MIT",
9
+ "author": "Expo",
5
10
  "files": [
6
11
  "build",
7
12
  "!*.tsbuildinfo",
8
13
  "!__*",
9
14
  "src"
10
15
  ],
16
+ "type": "module",
11
17
  "main": "build/src/index.js",
12
18
  "types": "build/src/index.d.ts",
13
19
  "scripts": {
14
20
  "build": "tsc --build",
15
21
  "prepack": "rm -rf build && yarn build",
16
22
  "clean": "yarn build --clean",
17
- "lint": "yarn run --top-level eslint src",
23
+ "lint": "yarn run --top-level oxlint --type-aware src",
18
24
  "lint-fix": "yarn run lint --fix",
19
25
  "test": "yarn test:all --rootDir $(pwd)",
20
26
  "integration": "yarn integration:all --rootDir $(pwd)"
21
27
  },
22
- "engines": {
23
- "node": ">=18"
24
- },
25
- "keywords": [
26
- "entity"
27
- ],
28
- "author": "Expo",
29
- "license": "MIT",
30
- "type": "module",
31
28
  "dependencies": {
32
- "@expo/entity": "^0.62.0",
33
- "@expo/entity-cache-adapter-local-memory": "^0.62.0"
29
+ "@expo/entity": "^0.64.0",
30
+ "@expo/entity-cache-adapter-local-memory": "^0.64.0"
34
31
  },
35
32
  "devDependencies": {
36
33
  "@expo/nullthrows": "2.1.0",
37
34
  "@isaacs/ttlcache": "2.1.4",
38
35
  "@jest/globals": "30.3.0",
39
- "typescript": "5.9.3"
36
+ "typescript": "6.0.3"
37
+ },
38
+ "engines": {
39
+ "node": ">=18"
40
40
  },
41
- "gitHead": "4965cc238882982e6315beca48a68679ed45456b"
41
+ "gitHead": "3f10a9e70eab45ae95acdae133055d8a3ec04ce8"
42
42
  }