@atlaspack/cache 2.13.3-dev.55 → 2.13.3-dev.76

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
@@ -1,5 +1,18 @@
1
1
  # @atlaspack/cache
2
2
 
3
+ ## 2.13.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
8
+ This has hopefully been fixed, so this change will force those packages to re-release.
9
+ - Updated dependencies [[`80bd57b`](https://github.com/atlassian-labs/atlaspack/commit/80bd57b9f9e966563957dee0780d956a682eb2d4), [`ae70b81`](https://github.com/atlassian-labs/atlaspack/commit/ae70b810384cf58f9c57d341ab4c925c7bb2060c), [`ce13d5e`](https://github.com/atlassian-labs/atlaspack/commit/ce13d5e885d55518ee6318e7a72e3a6e4e5126f2), [`c0a61a9`](https://github.com/atlassian-labs/atlaspack/commit/c0a61a92405b6830fe39cc17622cc2e97bf02dd7), [`cb35e7d`](https://github.com/atlassian-labs/atlaspack/commit/cb35e7d2b90b372de8401792915f12f410508d24), [`6ec11f1`](https://github.com/atlassian-labs/atlaspack/commit/6ec11f10a9366fb8a9fc0475c7678235056bd80e), [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
10
+ - @atlaspack/fs@2.14.1
11
+ - @atlaspack/rust@3.0.1
12
+ - @atlaspack/utils@2.14.1
13
+ - @atlaspack/logger@2.14.1
14
+ - @atlaspack/build-cache@2.13.3
15
+
3
16
  ## 2.13.2
4
17
 
5
18
  ### Patch Changes
@@ -98,7 +98,8 @@ class LMDBLiteCache {
98
98
  getNativeRef() {
99
99
  return this.store.lmdb;
100
100
  }
101
- ensure() {
101
+ async ensure() {
102
+ await this.fsCache.ensure();
102
103
  return Promise.resolve();
103
104
  }
104
105
  serialize() {
package/lib/index.js CHANGED
@@ -25,6 +25,17 @@ Object.keys(_IDBCache).forEach(function (key) {
25
25
  }
26
26
  });
27
27
  });
28
+ var _LMDBCache = require("./LMDBCache");
29
+ Object.keys(_LMDBCache).forEach(function (key) {
30
+ if (key === "default" || key === "__esModule") return;
31
+ if (key in exports && exports[key] === _LMDBCache[key]) return;
32
+ Object.defineProperty(exports, key, {
33
+ enumerable: true,
34
+ get: function () {
35
+ return _LMDBCache[key];
36
+ }
37
+ });
38
+ });
28
39
  var _LMDBLiteCache = require("./LMDBLiteCache");
29
40
  Object.keys(_LMDBLiteCache).forEach(function (key) {
30
41
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaspack/cache",
3
3
  "description": "Interface for defining caches and file-system, IDB and LMDB implementations.",
4
- "version": "2.13.3-dev.55+f298b7f5c",
4
+ "version": "2.13.3-dev.76+5fc6dbc65",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "type": "commonjs",
7
7
  "publishConfig": {
@@ -23,11 +23,11 @@
23
23
  "check-ts": "tsc --noEmit index.d.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaspack/build-cache": "2.13.3-dev.55+f298b7f5c",
27
- "@atlaspack/fs": "2.14.1-dev.55+f298b7f5c",
28
- "@atlaspack/logger": "2.14.1-dev.55+f298b7f5c",
29
- "@atlaspack/rust": "3.0.1-dev.55+f298b7f5c",
30
- "@atlaspack/utils": "2.14.1-dev.55+f298b7f5c",
26
+ "@atlaspack/build-cache": "2.13.3-dev.76+5fc6dbc65",
27
+ "@atlaspack/fs": "2.14.1-dev.76+5fc6dbc65",
28
+ "@atlaspack/logger": "2.14.1-dev.76+5fc6dbc65",
29
+ "@atlaspack/rust": "3.0.1-dev.76+5fc6dbc65",
30
+ "@atlaspack/utils": "2.14.1-dev.76+5fc6dbc65",
31
31
  "lmdb": "2.8.5"
32
32
  },
33
33
  "devDependencies": {
@@ -37,5 +37,5 @@
37
37
  "./src/IDBCache.js": "./src/IDBCache.browser.js",
38
38
  "./src/LMDBCache.js": false
39
39
  },
40
- "gitHead": "f298b7f5cac438d5150790475bde0cb959b3f6a5"
40
+ "gitHead": "5fc6dbc6504a411f5dfc0c549b811d998f95ca7c"
41
41
  }
@@ -63,7 +63,10 @@ export function open(
63
63
  new Lmdb({
64
64
  path: directory,
65
65
  asyncWrites: true,
66
- mapSize: 1024 * 1024 * 1024 * 15,
66
+ mapSize:
67
+ process.env.ATLASPACK_BUILD_ENV === 'test'
68
+ ? 1024 * 1024 * 1024
69
+ : 1024 * 1024 * 1024 * 15,
67
70
  }),
68
71
  );
69
72
  }
@@ -101,7 +104,8 @@ export class LMDBLiteCache implements Cache {
101
104
  return this.store.lmdb;
102
105
  }
103
106
 
104
- ensure(): Promise<void> {
107
+ async ensure(): Promise<void> {
108
+ await this.fsCache.ensure();
105
109
  return Promise.resolve();
106
110
  }
107
111
 
package/src/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  export * from './FSCache';
4
4
  export * from './IDBCache';
5
- // export * from './LMDBCache';
5
+ export * from './LMDBCache';
6
6
  export * from './LMDBLiteCache';
7
7
 
8
8
  export type {Cache} from './types';