@atlaspack/workers 2.12.1-dev.3567 → 2.13.1-canary.3630

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 ADDED
@@ -0,0 +1,17 @@
1
+ # @atlaspack/workers
2
+
3
+ ## 2.13.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#335](https://github.com/atlassian-labs/atlaspack/pull/335) [`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial changeset release
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`b4dbd4d`](https://github.com/atlassian-labs/atlaspack/commit/b4dbd4d5b23d1b7aa3fcdf59cc7bc8bedd3a59cf)]:
12
+ - @atlaspack/build-cache@2.13.0
13
+ - @atlaspack/diagnostic@2.13.0
14
+ - @atlaspack/logger@2.13.0
15
+ - @atlaspack/profiler@2.13.0
16
+ - @atlaspack/types-internal@2.13.0
17
+ - @atlaspack/utils@2.13.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/workers",
3
- "version": "2.12.1-dev.3567+c06f4487e",
3
+ "version": "2.13.1-canary.3630+10a6f37ef",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "publishConfig": {
@@ -16,18 +16,25 @@
16
16
  "engines": {
17
17
  "node": ">= 16.0.0"
18
18
  },
19
+ "exports": {
20
+ ".": {
21
+ "types": "./index.d.ts",
22
+ "@atlaspack::sources": "./src/index.js",
23
+ "default": "./lib/index.js"
24
+ }
25
+ },
19
26
  "dependencies": {
20
- "@atlaspack/build-cache": "2.12.1-dev.3567+c06f4487e",
21
- "@atlaspack/diagnostic": "2.12.1-dev.3567+c06f4487e",
22
- "@atlaspack/logger": "2.12.1-dev.3567+c06f4487e",
23
- "@atlaspack/profiler": "2.12.1-dev.3567+c06f4487e",
24
- "@atlaspack/types-internal": "2.12.1-dev.3567+c06f4487e",
25
- "@atlaspack/utils": "2.12.1-dev.3567+c06f4487e",
27
+ "@atlaspack/build-cache": "2.13.1-canary.3630+10a6f37ef",
28
+ "@atlaspack/diagnostic": "2.13.1-canary.3630+10a6f37ef",
29
+ "@atlaspack/logger": "2.13.1-canary.3630+10a6f37ef",
30
+ "@atlaspack/profiler": "2.13.1-canary.3630+10a6f37ef",
31
+ "@atlaspack/types-internal": "2.13.1-canary.3630+10a6f37ef",
32
+ "@atlaspack/utils": "2.13.1-canary.3630+10a6f37ef",
26
33
  "nullthrows": "^1.1.1"
27
34
  },
28
35
  "browser": {
29
36
  "./src/process/ProcessWorker.js": false,
30
37
  "./src/threads/ThreadsWorker.js": false
31
38
  },
32
- "gitHead": "c06f4487ebddc632957147c8b585a97e149062a1"
39
+ "gitHead": "10a6f37ef063d0227ebb26310383e899dbd9b1e6"
33
40
  }
@@ -1,3 +1,4 @@
1
+ // @flow
1
2
  import assert from 'assert';
2
3
  import os from 'os';
3
4
 
@@ -1,4 +1,5 @@
1
- const WorkerFarm = require('../../../src/WorkerFarm').default;
1
+ // eslint-disable-next-line @atlaspack/no-self-package-imports
2
+ const WorkerFarm = require('@atlaspack/workers').default;
2
3
 
3
4
  function run() {
4
5
  if (WorkerFarm.isWorker()) {
@@ -1,4 +1,5 @@
1
- const WorkerFarm = require('../../../src/WorkerFarm').default;
1
+ // eslint-disable-next-line @atlaspack/no-self-package-imports
2
+ const WorkerFarm = require('@atlaspack/workers').default;
2
3
 
3
4
  function run(api) {
4
5
  let result = [process.pid];
@@ -1,4 +1,5 @@
1
- const WorkerFarm = require('../../../src/WorkerFarm').default;
1
+ // eslint-disable-next-line @atlaspack/no-self-package-imports
2
+ const WorkerFarm = require('@atlaspack/workers').default;
2
3
 
3
4
  function run(api, a, b) {
4
5
  return api.callMaster({
@@ -1,4 +1,5 @@
1
- const WorkerFarm = require('../../../src/WorkerFarm').default;
1
+ // eslint-disable-next-line @atlaspack/no-self-package-imports
2
+ const WorkerFarm = require('@atlaspack/workers').default;
2
3
  const Logger = require('@atlaspack/logger').default;
3
4
 
4
5
  function run() {
@@ -1,6 +1,9 @@
1
- import Logger from '@atlaspack/logger';
2
- import assert from 'assert';
3
- import WorkerFarm from '../src';
1
+ // NOTE: @atlaspack/logger exports object instances from the module.
2
+ // If there are issues, check all imports are using the same module instance/path
3
+ const Logger = require('@atlaspack/logger').default;
4
+ const assert = require('assert');
5
+ // eslint-disable-next-line @atlaspack/no-self-package-imports
6
+ const WorkerFarm = require('@atlaspack/workers').default;
4
7
 
5
8
  describe('WorkerFarm', function () {
6
9
  this.timeout(30000);