@atlaspack/cache 2.13.3-dev.27 → 2.13.3-dev.35
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 +13 -0
- package/lib/LMDBLiteCache.js +2 -1
- package/package.json +7 -7
- package/src/LMDBLiteCache.js +6 -2
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
|
package/lib/LMDBLiteCache.js
CHANGED
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.
|
4
|
+
"version": "2.13.3-dev.35+14abbc50e",
|
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.
|
27
|
-
"@atlaspack/fs": "2.14.1-dev.
|
28
|
-
"@atlaspack/logger": "2.14.1-dev.
|
29
|
-
"@atlaspack/rust": "3.0.1-dev.
|
30
|
-
"@atlaspack/utils": "2.14.1-dev.
|
26
|
+
"@atlaspack/build-cache": "2.13.3-dev.35+14abbc50e",
|
27
|
+
"@atlaspack/fs": "2.14.1-dev.35+14abbc50e",
|
28
|
+
"@atlaspack/logger": "2.14.1-dev.35+14abbc50e",
|
29
|
+
"@atlaspack/rust": "3.0.1-dev.35+14abbc50e",
|
30
|
+
"@atlaspack/utils": "2.14.1-dev.35+14abbc50e",
|
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": "
|
40
|
+
"gitHead": "14abbc50e6cf49bb10df409aebdbdb9ff42c06a1"
|
41
41
|
}
|
package/src/LMDBLiteCache.js
CHANGED
@@ -63,7 +63,10 @@ export function open(
|
|
63
63
|
new Lmdb({
|
64
64
|
path: directory,
|
65
65
|
asyncWrites: true,
|
66
|
-
mapSize:
|
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
|
|