@atlaspack/core 2.13.2-dev.3666 → 2.13.2-dev.3674

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.
@@ -13,6 +13,7 @@ function _rust() {
13
13
  };
14
14
  return data;
15
15
  }
16
+ var _IdentifierRegistry = require("./IdentifierRegistry");
16
17
  function createConfig({
17
18
  plugin,
18
19
  isSource,
@@ -29,8 +30,15 @@ function createConfig({
29
30
  invalidateOnBuild
30
31
  }) {
31
32
  let environment = env ?? (0, _Environment.createEnvironment)();
33
+ const configId = (0, _rust().hashString)(plugin + (0, _projectPath.fromProjectPathRelative)(searchPath) + environment.id + String(isSource));
34
+ _IdentifierRegistry.identifierRegistry.addIdentifier('config_request', configId, {
35
+ plugin,
36
+ searchPath,
37
+ environmentId: environment.id,
38
+ isSource
39
+ });
32
40
  return {
33
- id: (0, _rust().hashString)(plugin + (0, _projectPath.fromProjectPathRelative)(searchPath) + environment.id + String(isSource)),
41
+ id: configId,
34
42
  isSource: isSource ?? false,
35
43
  searchPath,
36
44
  env: environment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/core",
3
- "version": "2.13.2-dev.3666+0afd6de27",
3
+ "version": "2.13.2-dev.3674+d7732a10a",
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.2-dev.3666+0afd6de27",
24
- "@atlaspack/cache": "2.13.2-dev.3666+0afd6de27",
25
- "@atlaspack/diagnostic": "2.13.2-dev.3666+0afd6de27",
26
- "@atlaspack/events": "2.13.2-dev.3666+0afd6de27",
27
- "@atlaspack/feature-flags": "2.13.2-dev.3666+0afd6de27",
28
- "@atlaspack/fs": "2.13.2-dev.3666+0afd6de27",
29
- "@atlaspack/graph": "3.3.2-dev.3666+0afd6de27",
30
- "@atlaspack/logger": "2.13.2-dev.3666+0afd6de27",
31
- "@atlaspack/package-manager": "2.13.2-dev.3666+0afd6de27",
32
- "@atlaspack/plugin": "2.13.2-dev.3666+0afd6de27",
33
- "@atlaspack/profiler": "2.13.2-dev.3666+0afd6de27",
34
- "@atlaspack/rust": "2.13.2-dev.3666+0afd6de27",
35
- "@atlaspack/types": "2.13.2-dev.3666+0afd6de27",
36
- "@atlaspack/utils": "2.13.2-dev.3666+0afd6de27",
37
- "@atlaspack/workers": "2.13.2-dev.3666+0afd6de27",
23
+ "@atlaspack/build-cache": "2.13.2-dev.3674+d7732a10a",
24
+ "@atlaspack/cache": "2.13.2-dev.3674+d7732a10a",
25
+ "@atlaspack/diagnostic": "2.13.2-dev.3674+d7732a10a",
26
+ "@atlaspack/events": "2.13.2-dev.3674+d7732a10a",
27
+ "@atlaspack/feature-flags": "2.13.2-dev.3674+d7732a10a",
28
+ "@atlaspack/fs": "2.13.2-dev.3674+d7732a10a",
29
+ "@atlaspack/graph": "3.3.2-dev.3674+d7732a10a",
30
+ "@atlaspack/logger": "2.13.2-dev.3674+d7732a10a",
31
+ "@atlaspack/package-manager": "2.13.2-dev.3674+d7732a10a",
32
+ "@atlaspack/plugin": "2.13.2-dev.3674+d7732a10a",
33
+ "@atlaspack/profiler": "2.13.2-dev.3674+d7732a10a",
34
+ "@atlaspack/rust": "2.13.2-dev.3674+d7732a10a",
35
+ "@atlaspack/types": "2.13.2-dev.3674+d7732a10a",
36
+ "@atlaspack/utils": "2.13.2-dev.3674+d7732a10a",
37
+ "@atlaspack/workers": "2.13.2-dev.3674+d7732a10a",
38
38
  "@mischnic/json-sourcemap": "^0.1.0",
39
39
  "@parcel/source-map": "^2.1.1",
40
40
  "base-x": "^3.0.8",
@@ -66,5 +66,5 @@
66
66
  "browser": {
67
67
  "./src/serializerCore.js": "./src/serializerCore.browser.js"
68
68
  },
69
- "gitHead": "0afd6de27cde19f2c9377e864bce83da5c098a54"
69
+ "gitHead": "d7732a10a9a123de06d5eedcf9800d621e740229"
70
70
  }
@@ -12,6 +12,7 @@ import type {ProjectPath} from './projectPath';
12
12
  import {fromProjectPathRelative} from './projectPath';
13
13
  import {createEnvironment} from './Environment';
14
14
  import {hashString} from '@atlaspack/rust';
15
+ import {identifierRegistry} from './IdentifierRegistry';
15
16
 
16
17
  type ConfigOpts = {|
17
18
  plugin: PackageName,
@@ -48,13 +49,20 @@ export function createConfig({
48
49
  invalidateOnBuild,
49
50
  }: ConfigOpts): Config {
50
51
  let environment = env ?? createEnvironment();
52
+ const configId = hashString(
53
+ plugin +
54
+ fromProjectPathRelative(searchPath) +
55
+ environment.id +
56
+ String(isSource),
57
+ );
58
+ identifierRegistry.addIdentifier('config_request', configId, {
59
+ plugin,
60
+ searchPath,
61
+ environmentId: environment.id,
62
+ isSource,
63
+ });
51
64
  return {
52
- id: hashString(
53
- plugin +
54
- fromProjectPathRelative(searchPath) +
55
- environment.id +
56
- String(isSource),
57
- ),
65
+ id: configId,
58
66
  isSource: isSource ?? false,
59
67
  searchPath,
60
68
  env: environment,