@atlaspack/core 2.16.2-canary.10 → 2.16.2-canary.12

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,31 @@
1
1
  # @atlaspack/core
2
2
 
3
+ ## 2.17.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#541](https://github.com/atlassian-labs/atlaspack/pull/541) [`e2ba0f6`](https://github.com/atlassian-labs/atlaspack/commit/e2ba0f69702656f3d1ce95ab1454e35062b13b39) Thanks [@yamadapc](https://github.com/yamadapc)! - Add database compaction debug command
8
+
9
+ ### Patch Changes
10
+
11
+ - [#530](https://github.com/atlassian-labs/atlaspack/pull/530) [`2e90c9b`](https://github.com/atlassian-labs/atlaspack/commit/2e90c9bd07d7eb52645f9d84ccbb7f82685cbc8c) Thanks [@yamadapc](https://github.com/yamadapc)! - Write metadata about the cache in a new entry
12
+
13
+ - [#511](https://github.com/atlassian-labs/atlaspack/pull/511) [`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7) Thanks [@yamadapc](https://github.com/yamadapc)! - Clean-up dylib worker threads segmentation fault bug fix feature-flag
14
+
15
+ - Updated dependencies [[`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7), [`e2ba0f6`](https://github.com/atlassian-labs/atlaspack/commit/e2ba0f69702656f3d1ce95ab1454e35062b13b39), [`d2c50c2`](https://github.com/atlassian-labs/atlaspack/commit/d2c50c2c020888b33bb25b8690d9320c2b69e2a6), [`46a90dc`](https://github.com/atlassian-labs/atlaspack/commit/46a90dccd019a26b222c878a92d23acc75dc67c5), [`4c17141`](https://github.com/atlassian-labs/atlaspack/commit/4c1714103dab2aa9039c488f381551d2b65d1d01)]:
16
+ - @atlaspack/feature-flags@2.14.3
17
+ - @atlaspack/rust@3.3.0
18
+ - @atlaspack/cache@3.2.0
19
+ - @atlaspack/fs@2.15.0
20
+ - @atlaspack/graph@3.4.3
21
+ - @atlaspack/utils@2.14.5
22
+ - @atlaspack/logger@2.14.5
23
+ - @atlaspack/package-manager@2.14.5
24
+ - @atlaspack/profiler@2.14.3
25
+ - @atlaspack/types@2.14.5
26
+ - @atlaspack/workers@2.14.5
27
+ - @atlaspack/plugin@2.14.5
28
+
3
29
  ## 2.16.1
4
30
 
5
31
  ### Patch Changes
package/lib/Atlaspack.js CHANGED
@@ -601,6 +601,19 @@ class Atlaspack {
601
601
  }
602
602
  return result;
603
603
  }
604
+
605
+ /**
606
+ * Copy the cache to a new directory and compact it.
607
+ */
608
+ async unstable_compactCache() {
609
+ await this._init();
610
+ const cache = (0, _nullthrows().default)(this.#resolvedOptions).cache;
611
+ if (cache instanceof _cache().LMDBLiteCache) {
612
+ await cache.compact('parcel-cache-compacted');
613
+ } else {
614
+ throw new Error('Cache is not an LMDBLiteCache');
615
+ }
616
+ }
604
617
  async unstable_transform(options) {
605
618
  var _options$env;
606
619
  if (!this.#initialized) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.16.2-canary.10+e28fbeb3a",
3
+ "version": "2.16.2-canary.12+143753ba0",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -20,21 +20,21 @@
20
20
  "check-ts": "tsc --noEmit index.d.ts"
21
21
  },
22
22
  "dependencies": {
23
- "@atlaspack/build-cache": "2.13.3-canary.78+e28fbeb3a",
24
- "@atlaspack/cache": "3.1.1-canary.10+e28fbeb3a",
25
- "@atlaspack/diagnostic": "2.14.1-canary.78+e28fbeb3a",
26
- "@atlaspack/events": "2.14.1-canary.78+e28fbeb3a",
27
- "@atlaspack/feature-flags": "2.14.1-canary.78+e28fbeb3a",
28
- "@atlaspack/fs": "2.14.5-canary.10+e28fbeb3a",
29
- "@atlaspack/graph": "3.4.1-canary.78+e28fbeb3a",
30
- "@atlaspack/logger": "2.14.5-canary.10+e28fbeb3a",
31
- "@atlaspack/package-manager": "2.14.5-canary.10+e28fbeb3a",
32
- "@atlaspack/plugin": "2.14.5-canary.10+e28fbeb3a",
33
- "@atlaspack/profiler": "2.14.1-canary.78+e28fbeb3a",
34
- "@atlaspack/rust": "3.2.1-canary.10+e28fbeb3a",
35
- "@atlaspack/types": "2.14.5-canary.10+e28fbeb3a",
36
- "@atlaspack/utils": "2.14.5-canary.10+e28fbeb3a",
37
- "@atlaspack/workers": "2.14.5-canary.10+e28fbeb3a",
23
+ "@atlaspack/build-cache": "2.13.3-canary.80+143753ba0",
24
+ "@atlaspack/cache": "3.1.1-canary.12+143753ba0",
25
+ "@atlaspack/diagnostic": "2.14.1-canary.80+143753ba0",
26
+ "@atlaspack/events": "2.14.1-canary.80+143753ba0",
27
+ "@atlaspack/feature-flags": "2.14.1-canary.80+143753ba0",
28
+ "@atlaspack/fs": "2.14.5-canary.12+143753ba0",
29
+ "@atlaspack/graph": "3.4.1-canary.80+143753ba0",
30
+ "@atlaspack/logger": "2.14.5-canary.12+143753ba0",
31
+ "@atlaspack/package-manager": "2.14.5-canary.12+143753ba0",
32
+ "@atlaspack/plugin": "2.14.5-canary.12+143753ba0",
33
+ "@atlaspack/profiler": "2.14.1-canary.80+143753ba0",
34
+ "@atlaspack/rust": "3.2.1-canary.12+143753ba0",
35
+ "@atlaspack/types": "2.14.5-canary.12+143753ba0",
36
+ "@atlaspack/utils": "2.14.5-canary.12+143753ba0",
37
+ "@atlaspack/workers": "2.14.5-canary.12+143753ba0",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -67,5 +67,5 @@
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
69
  "type": "commonjs",
70
- "gitHead": "e28fbeb3a609aad3e44af9b8d3d5fd83dda38941"
70
+ "gitHead": "143753ba049078d59fbf1a8880f4c4caf2320311"
71
71
  }
package/src/Atlaspack.js CHANGED
@@ -639,6 +639,20 @@ export default class Atlaspack {
639
639
  return result;
640
640
  }
641
641
 
642
+ /**
643
+ * Copy the cache to a new directory and compact it.
644
+ */
645
+ async unstable_compactCache(): Promise<void> {
646
+ await this._init();
647
+
648
+ const cache = nullthrows(this.#resolvedOptions).cache;
649
+ if (cache instanceof LMDBLiteCache) {
650
+ await cache.compact('parcel-cache-compacted');
651
+ } else {
652
+ throw new Error('Cache is not an LMDBLiteCache');
653
+ }
654
+ }
655
+
642
656
  async unstable_transform(
643
657
  options: AtlaspackTransformOptions,
644
658
  ): Promise<Array<Asset>> {