@atlaspack/workers 2.13.2-dev.3689 → 2.14.1-canary.3710

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,25 @@
1
1
  # @atlaspack/workers
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#339](https://github.com/atlassian-labs/atlaspack/pull/339) [`bfe81e5`](https://github.com/atlassian-labs/atlaspack/commit/bfe81e551c4e4bb2cac7fc4745222e66962c1728) Thanks [@yamadapc](https://github.com/yamadapc)! - Update cache invalidation metrics with build type
8
+
9
+ ### Patch Changes
10
+
11
+ - [#416](https://github.com/atlassian-labs/atlaspack/pull/416) [`1de1c81`](https://github.com/atlassian-labs/atlaspack/commit/1de1c8138fbe4d38a64aa1f3c22a70aad59fb5bb) Thanks [@alshdavid](https://github.com/alshdavid)! - Replace require.resolve with path.join
12
+
13
+ - [#414](https://github.com/atlassian-labs/atlaspack/pull/414) [`eff9809`](https://github.com/atlassian-labs/atlaspack/commit/eff98093703b9999a511b87a19562f5aaccfcb53) Thanks [@alshdavid](https://github.com/alshdavid)! - Added type:commonjs to package.json files
14
+
15
+ - Updated dependencies [[`bfe81e5`](https://github.com/atlassian-labs/atlaspack/commit/bfe81e551c4e4bb2cac7fc4745222e66962c1728), [`4837b69`](https://github.com/atlassian-labs/atlaspack/commit/4837b6988e56ca842a24797b796160964d3696ce), [`eff9809`](https://github.com/atlassian-labs/atlaspack/commit/eff98093703b9999a511b87a19562f5aaccfcb53), [`4812d0f`](https://github.com/atlassian-labs/atlaspack/commit/4812d0f7400af0f8416f1b7175ecb87700860a68), [`3005307`](https://github.com/atlassian-labs/atlaspack/commit/30053076dfd20ca62ddbc682f58adb994029ac55)]:
16
+ - @atlaspack/diagnostic@2.14.0
17
+ - @atlaspack/logger@2.14.0
18
+ - @atlaspack/profiler@2.14.0
19
+ - @atlaspack/types-internal@2.14.0
20
+ - @atlaspack/utils@2.14.0
21
+ - @atlaspack/build-cache@2.13.2
22
+
3
23
  ## 2.13.1
4
24
 
5
25
  ### Patch Changes
@@ -11,6 +11,13 @@ function _child_process() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _path() {
15
+ const data = _interopRequireDefault(require("path"));
16
+ _path = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _buildCache() {
15
22
  const data = require("@atlaspack/build-cache");
16
23
  _buildCache = function () {
@@ -19,7 +26,7 @@ function _buildCache() {
19
26
  return data;
20
27
  }
21
28
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
- const WORKER_PATH = require.resolve('./ProcessChild');
29
+ const WORKER_PATH = _path().default.join(__dirname, './ProcessChild.js');
23
30
  class ProcessWorker {
24
31
  processQueue = true;
25
32
  sendQueue = [];
@@ -11,6 +11,13 @@ function _worker_threads() {
11
11
  };
12
12
  return data;
13
13
  }
14
+ function _path() {
15
+ const data = _interopRequireDefault(require("path"));
16
+ _path = function () {
17
+ return data;
18
+ };
19
+ return data;
20
+ }
14
21
  function _buildCache() {
15
22
  const data = require("@atlaspack/build-cache");
16
23
  _buildCache = function () {
@@ -18,7 +25,8 @@ function _buildCache() {
18
25
  };
19
26
  return data;
20
27
  }
21
- const WORKER_PATH = require.resolve('./ThreadsChild');
28
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
+ const WORKER_PATH = _path().default.join(__dirname, './ThreadsChild.js');
22
30
  class ThreadsWorker {
23
31
  constructor(execArgv, onMessage, onError, onExit) {
24
32
  this.execArgv = execArgv;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/workers",
3
- "version": "2.13.2-dev.3689+7a2e6e783",
3
+ "version": "2.14.1-canary.3710+d874396ab",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -24,17 +24,18 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@atlaspack/build-cache": "2.13.2-dev.3689+7a2e6e783",
28
- "@atlaspack/diagnostic": "2.13.2-dev.3689+7a2e6e783",
29
- "@atlaspack/logger": "2.13.2-dev.3689+7a2e6e783",
30
- "@atlaspack/profiler": "2.13.2-dev.3689+7a2e6e783",
31
- "@atlaspack/types-internal": "2.13.2-dev.3689+7a2e6e783",
32
- "@atlaspack/utils": "2.13.2-dev.3689+7a2e6e783",
27
+ "@atlaspack/build-cache": "2.13.3-canary.3710+d874396ab",
28
+ "@atlaspack/diagnostic": "2.14.1-canary.3710+d874396ab",
29
+ "@atlaspack/logger": "2.14.1-canary.3710+d874396ab",
30
+ "@atlaspack/profiler": "2.14.1-canary.3710+d874396ab",
31
+ "@atlaspack/types-internal": "2.14.1-canary.3710+d874396ab",
32
+ "@atlaspack/utils": "2.14.1-canary.3710+d874396ab",
33
33
  "nullthrows": "^1.1.1"
34
34
  },
35
35
  "browser": {
36
36
  "./src/process/ProcessWorker.js": false,
37
37
  "./src/threads/ThreadsWorker.js": false
38
38
  },
39
- "gitHead": "7a2e6e7835fa846b27021b374097c6a4f37541ba"
39
+ "type": "commonjs",
40
+ "gitHead": "d874396ab648d0d5505d66c7eb73e1748f1eaf68"
40
41
  }
@@ -9,10 +9,11 @@ import type {
9
9
  } from '../types';
10
10
 
11
11
  import childProcess, {type ChildProcess} from 'child_process';
12
+ import path from 'path';
12
13
 
13
14
  import {serialize, deserialize} from '@atlaspack/build-cache';
14
15
 
15
- const WORKER_PATH = require.resolve('./ProcessChild');
16
+ const WORKER_PATH = path.join(__dirname, './ProcessChild.js');
16
17
 
17
18
  export default class ProcessWorker implements WorkerImpl {
18
19
  execArgv: Object;
@@ -9,13 +9,14 @@ import type {
9
9
  } from '../types';
10
10
 
11
11
  import {Worker} from 'worker_threads';
12
+ import path from 'path';
12
13
 
13
14
  import {
14
15
  prepareForSerialization,
15
16
  restoreDeserializedObject,
16
17
  } from '@atlaspack/build-cache';
17
18
 
18
- const WORKER_PATH = require.resolve('./ThreadsChild');
19
+ const WORKER_PATH = path.join(__dirname, './ThreadsChild.js');
19
20
 
20
21
  export default class ThreadsWorker implements WorkerImpl {
21
22
  execArgv: Object;