@atlaspack/workers 2.14.5-canary.48 → 2.14.5-canary.481

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +567 -0
  2. package/dist/Handle.js +33 -0
  3. package/dist/Worker.js +180 -0
  4. package/dist/WorkerFarm.js +539 -0
  5. package/dist/backend.js +34 -0
  6. package/dist/bus.js +24 -0
  7. package/dist/child.js +290 -0
  8. package/dist/childState.js +11 -0
  9. package/dist/cpuCount.js +72 -0
  10. package/dist/index.js +44 -0
  11. package/dist/process/ProcessChild.js +48 -0
  12. package/dist/process/ProcessWorker.js +68 -0
  13. package/dist/threads/ThreadsChild.js +31 -0
  14. package/dist/threads/ThreadsWorker.js +47 -0
  15. package/dist/types.js +2 -0
  16. package/dist/web/WebChild.js +34 -0
  17. package/dist/web/WebWorker.js +70 -0
  18. package/index.d.ts +96 -3
  19. package/lib/Handle.js +1 -4
  20. package/lib/Worker.js +8 -2
  21. package/lib/WorkerFarm.js +14 -10
  22. package/lib/backend.js +5 -1
  23. package/lib/bus.js +2 -2
  24. package/lib/child.js +14 -7
  25. package/lib/cpuCount.js +7 -3
  26. package/lib/index.js +2 -3
  27. package/lib/process/ProcessChild.js +7 -2
  28. package/lib/process/ProcessWorker.js +10 -3
  29. package/lib/threads/ThreadsChild.js +4 -1
  30. package/lib/threads/ThreadsWorker.js +11 -3
  31. package/lib/types/Handle.d.ts +19 -0
  32. package/lib/types/Worker.d.ts +40 -0
  33. package/lib/types/WorkerFarm.d.ts +93 -0
  34. package/lib/types/backend.d.ts +4 -0
  35. package/lib/types/bus.d.ts +6 -0
  36. package/lib/types/child.d.ts +43 -0
  37. package/lib/types/childState.d.ts +3 -0
  38. package/lib/types/cpuCount.d.ts +2 -0
  39. package/lib/types/index.d.ts +6 -0
  40. package/lib/types/process/ProcessChild.d.ts +9 -0
  41. package/lib/types/process/ProcessWorker.d.ts +16 -0
  42. package/lib/types/threads/ThreadsChild.d.ts +8 -0
  43. package/lib/types/threads/ThreadsWorker.d.ts +15 -0
  44. package/lib/types/types.d.ts +52 -0
  45. package/lib/types/web/WebChild.d.ts +8 -0
  46. package/lib/types/web/WebWorker.d.ts +15 -0
  47. package/lib/web/WebChild.js +6 -1
  48. package/lib/web/WebWorker.js +19 -4
  49. package/package.json +15 -19
  50. package/src/{Handle.js → Handle.ts} +11 -11
  51. package/src/{Worker.js → Worker.ts} +66 -54
  52. package/src/{WorkerFarm.js → WorkerFarm.ts} +195 -142
  53. package/src/{backend.js → backend.ts} +6 -3
  54. package/src/{bus.js → bus.ts} +2 -3
  55. package/src/{child.js → child.ts} +55 -43
  56. package/src/{childState.js → childState.ts} +1 -2
  57. package/src/{cpuCount.js → cpuCount.ts} +10 -7
  58. package/src/{index.js → index.ts} +0 -1
  59. package/src/process/{ProcessChild.js → ProcessChild.ts} +5 -3
  60. package/src/process/{ProcessWorker.js → ProcessWorker.ts} +10 -7
  61. package/src/threads/{ThreadsChild.js → ThreadsChild.ts} +2 -2
  62. package/src/threads/{ThreadsWorker.js → ThreadsWorker.ts} +14 -8
  63. package/src/{types.js → types.ts} +34 -35
  64. package/src/web/{WebChild.js → WebChild.ts} +6 -2
  65. package/src/web/{WebWorker.js → WebWorker.ts} +19 -7
  66. package/test/{cpuCount.test.js → cpuCount.test.ts} +0 -1
  67. package/test/{workerfarm.test.cjs → workerfarm.test.js} +9 -2
  68. package/tsconfig.json +27 -0
  69. package/tsconfig.tsbuildinfo +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,572 @@
1
1
  # @atlaspack/workers
2
2
 
3
+ ## 2.14.63
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @atlaspack/build-cache@2.13.17
9
+ - @atlaspack/types-internal@2.25.5
10
+ - @atlaspack/utils@3.4.5
11
+ - @atlaspack/logger@2.14.55
12
+ - @atlaspack/profiler@2.15.24
13
+
14
+ ## 2.14.62
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies []:
19
+ - @atlaspack/build-cache@2.13.16
20
+ - @atlaspack/types-internal@2.25.4
21
+ - @atlaspack/utils@3.4.4
22
+ - @atlaspack/logger@2.14.54
23
+ - @atlaspack/profiler@2.15.23
24
+
25
+ ## 2.14.61
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [[`e898fda`](https://github.com/atlassian-labs/atlaspack/commit/e898fda7511d98e5597d847c4a32c028a8a24d6c)]:
30
+ - @atlaspack/utils@3.4.3
31
+ - @atlaspack/logger@2.14.53
32
+ - @atlaspack/profiler@2.15.22
33
+ - @atlaspack/build-cache@2.13.15
34
+ - @atlaspack/types-internal@2.25.3
35
+
36
+ ## 2.14.60
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies []:
41
+ - @atlaspack/logger@2.14.52
42
+ - @atlaspack/utils@3.4.2
43
+ - @atlaspack/profiler@2.15.21
44
+ - @atlaspack/types-internal@2.25.2
45
+
46
+ ## 2.14.59
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies []:
51
+ - @atlaspack/logger@2.14.51
52
+ - @atlaspack/utils@3.4.1
53
+ - @atlaspack/profiler@2.15.20
54
+ - @atlaspack/types-internal@2.25.1
55
+
56
+ ## 2.14.58
57
+
58
+ ### Patch Changes
59
+
60
+ - Updated dependencies [[`71981ea`](https://github.com/atlassian-labs/atlaspack/commit/71981eac258f7e6dfb40ec4b202d194f71c64ff1)]:
61
+ - @atlaspack/types-internal@2.25.0
62
+ - @atlaspack/utils@3.4.0
63
+ - @atlaspack/logger@2.14.50
64
+ - @atlaspack/profiler@2.15.19
65
+
66
+ ## 2.14.57
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies []:
71
+ - @atlaspack/build-cache@2.13.14
72
+ - @atlaspack/types-internal@2.24.2
73
+ - @atlaspack/utils@3.3.9
74
+ - @atlaspack/logger@2.14.49
75
+ - @atlaspack/profiler@2.15.18
76
+
77
+ ## 2.14.56
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies []:
82
+ - @atlaspack/logger@2.14.48
83
+ - @atlaspack/utils@3.3.8
84
+ - @atlaspack/types-internal@2.24.1
85
+ - @atlaspack/profiler@2.15.17
86
+
87
+ ## 2.14.55
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [[`857962a`](https://github.com/atlassian-labs/atlaspack/commit/857962a352bb0aebaf74a8765e8c44d7e875a4e9)]:
92
+ - @atlaspack/types-internal@2.24.0
93
+ - @atlaspack/logger@2.14.47
94
+ - @atlaspack/utils@3.3.7
95
+ - @atlaspack/build-cache@2.13.13
96
+ - @atlaspack/profiler@2.15.16
97
+
98
+ ## 2.14.54
99
+
100
+ ### Patch Changes
101
+
102
+ - Updated dependencies [[`d8e984b`](https://github.com/atlassian-labs/atlaspack/commit/d8e984b7f6d04fa03707fa299bfd8b8bf9f58280)]:
103
+ - @atlaspack/utils@3.3.6
104
+ - @atlaspack/logger@2.14.46
105
+ - @atlaspack/build-cache@2.13.12
106
+ - @atlaspack/types-internal@2.23.2
107
+ - @atlaspack/profiler@2.15.15
108
+
109
+ ## 2.14.53
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies []:
114
+ - @atlaspack/logger@2.14.45
115
+ - @atlaspack/utils@3.3.5
116
+ - @atlaspack/build-cache@2.13.11
117
+ - @atlaspack/types-internal@2.23.1
118
+ - @atlaspack/profiler@2.15.14
119
+
120
+ ## 2.14.52
121
+
122
+ ### Patch Changes
123
+
124
+ - Updated dependencies [[`e058f0e`](https://github.com/atlassian-labs/atlaspack/commit/e058f0e7a0423ba9373e85a7dbd5c1dd43b47916)]:
125
+ - @atlaspack/types-internal@2.23.0
126
+ - @atlaspack/logger@2.14.44
127
+ - @atlaspack/profiler@2.15.13
128
+ - @atlaspack/utils@3.3.4
129
+ - @atlaspack/build-cache@2.13.10
130
+
131
+ ## 2.14.51
132
+
133
+ ### Patch Changes
134
+
135
+ - Updated dependencies []:
136
+ - @atlaspack/logger@2.14.43
137
+ - @atlaspack/utils@3.3.3
138
+ - @atlaspack/profiler@2.15.12
139
+ - @atlaspack/types-internal@2.22.8
140
+
141
+ ## 2.14.50
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies []:
146
+ - @atlaspack/logger@2.14.42
147
+ - @atlaspack/utils@3.3.2
148
+ - @atlaspack/build-cache@2.13.9
149
+ - @atlaspack/types-internal@2.22.7
150
+ - @atlaspack/profiler@2.15.11
151
+
152
+ ## 2.14.49
153
+
154
+ ### Patch Changes
155
+
156
+ - Updated dependencies []:
157
+ - @atlaspack/logger@2.14.41
158
+ - @atlaspack/utils@3.3.1
159
+ - @atlaspack/build-cache@2.13.8
160
+ - @atlaspack/types-internal@2.22.6
161
+ - @atlaspack/profiler@2.15.10
162
+
163
+ ## 2.14.48
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [[`47aa84e`](https://github.com/atlassian-labs/atlaspack/commit/47aa84e44c61066072a5bf3d57678565b9d2c5a3), [`565bab3`](https://github.com/atlassian-labs/atlaspack/commit/565bab3771cc334659d873cabff4cdfac0860cc7)]:
168
+ - @atlaspack/utils@3.3.0
169
+ - @atlaspack/build-cache@2.13.7
170
+ - @atlaspack/profiler@2.15.9
171
+ - @atlaspack/logger@2.14.40
172
+ - @atlaspack/types-internal@2.22.5
173
+
174
+ ## 2.14.47
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies []:
179
+ - @atlaspack/logger@2.14.39
180
+ - @atlaspack/utils@3.2.8
181
+ - @atlaspack/profiler@2.15.8
182
+ - @atlaspack/types-internal@2.22.4
183
+
184
+ ## 2.14.46
185
+
186
+ ### Patch Changes
187
+
188
+ - Updated dependencies [[`02cc8b3`](https://github.com/atlassian-labs/atlaspack/commit/02cc8b32c06ca6b51806b33f6f707ca06e55e957)]:
189
+ - @atlaspack/types-internal@2.22.3
190
+ - @atlaspack/logger@2.14.38
191
+ - @atlaspack/utils@3.2.7
192
+ - @atlaspack/profiler@2.15.7
193
+
194
+ ## 2.14.45
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies []:
199
+ - @atlaspack/types-internal@2.22.2
200
+ - @atlaspack/utils@3.2.6
201
+ - @atlaspack/logger@2.14.37
202
+ - @atlaspack/profiler@2.15.6
203
+
204
+ ## 2.14.44
205
+
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies []:
209
+ - @atlaspack/logger@2.14.36
210
+ - @atlaspack/utils@3.2.5
211
+ - @atlaspack/types-internal@2.22.1
212
+ - @atlaspack/profiler@2.15.5
213
+
214
+ ## 2.14.43
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [[`00fa643`](https://github.com/atlassian-labs/atlaspack/commit/00fa6433202bfd3311479f6314c9ec878a789f2c)]:
219
+ - @atlaspack/types-internal@2.22.0
220
+ - @atlaspack/logger@2.14.35
221
+ - @atlaspack/profiler@2.15.4
222
+ - @atlaspack/utils@3.2.4
223
+
224
+ ## 2.14.42
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies []:
229
+ - @atlaspack/logger@2.14.34
230
+ - @atlaspack/utils@3.2.3
231
+ - @atlaspack/types-internal@2.21.3
232
+ - @atlaspack/profiler@2.15.3
233
+
234
+ ## 2.14.41
235
+
236
+ ### Patch Changes
237
+
238
+ - Updated dependencies []:
239
+ - @atlaspack/logger@2.14.33
240
+ - @atlaspack/utils@3.2.2
241
+ - @atlaspack/types-internal@2.21.2
242
+ - @atlaspack/profiler@2.15.2
243
+
244
+ ## 2.14.40
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies []:
249
+ - @atlaspack/logger@2.14.32
250
+ - @atlaspack/utils@3.2.1
251
+ - @atlaspack/types-internal@2.21.1
252
+ - @atlaspack/profiler@2.15.1
253
+
254
+ ## 2.14.39
255
+
256
+ ### Patch Changes
257
+
258
+ - Updated dependencies [[`8eb84ee`](https://github.com/atlassian-labs/atlaspack/commit/8eb84ee61a42bfe87c58079b610802b07a6a13e4), [`73168c2`](https://github.com/atlassian-labs/atlaspack/commit/73168c275a5d9abff9907bcf536b340bca1ed5f0), [`617a318`](https://github.com/atlassian-labs/atlaspack/commit/617a318ddc9419b38360257353fec50b9051ee13)]:
259
+ - @atlaspack/types-internal@2.21.0
260
+ - @atlaspack/utils@3.2.0
261
+ - @atlaspack/profiler@2.15.0
262
+ - @atlaspack/logger@2.14.31
263
+
264
+ ## 2.14.38
265
+
266
+ ### Patch Changes
267
+
268
+ - Updated dependencies [[`7d7a55d`](https://github.com/atlassian-labs/atlaspack/commit/7d7a55dd6395ec391a2e4c33b3dec0d1ea477d4c)]:
269
+ - @atlaspack/utils@3.1.2
270
+ - @atlaspack/types-internal@2.20.8
271
+ - @atlaspack/logger@2.14.30
272
+ - @atlaspack/profiler@2.14.35
273
+
274
+ ## 2.14.37
275
+
276
+ ### Patch Changes
277
+
278
+ - Updated dependencies []:
279
+ - @atlaspack/logger@2.14.29
280
+ - @atlaspack/utils@3.1.1
281
+ - @atlaspack/types-internal@2.20.7
282
+ - @atlaspack/profiler@2.14.34
283
+
284
+ ## 2.14.36
285
+
286
+ ### Patch Changes
287
+
288
+ - Updated dependencies [[`5776be2`](https://github.com/atlassian-labs/atlaspack/commit/5776be21f70a3f2b9471ba33da3ba1a883f21f1a)]:
289
+ - @atlaspack/utils@3.1.0
290
+ - @atlaspack/logger@2.14.28
291
+ - @atlaspack/types-internal@2.20.6
292
+ - @atlaspack/profiler@2.14.33
293
+
294
+ ## 2.14.35
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [[`c372f3f`](https://github.com/atlassian-labs/atlaspack/commit/c372f3fd6fce8200d5cf47f41bc7895c6cbb5558), [`17dfea9`](https://github.com/atlassian-labs/atlaspack/commit/17dfea9e9f3169807808520df9c09ebf70dc8b10)]:
299
+ - @atlaspack/types-internal@2.20.5
300
+ - @atlaspack/utils@3.0.3
301
+ - @atlaspack/logger@2.14.27
302
+ - @atlaspack/profiler@2.14.32
303
+
304
+ ## 2.14.34
305
+
306
+ ### Patch Changes
307
+
308
+ - [#782](https://github.com/atlassian-labs/atlaspack/pull/782) [`25cbee6`](https://github.com/atlassian-labs/atlaspack/commit/25cbee625fb47ac20423fe34ff37bc818a807245) Thanks [@yamadapc](https://github.com/yamadapc)! - Initial atlaspack-inspector release
309
+
310
+ - Updated dependencies []:
311
+ - @atlaspack/types-internal@2.20.4
312
+ - @atlaspack/utils@3.0.2
313
+ - @atlaspack/logger@2.14.26
314
+ - @atlaspack/profiler@2.14.31
315
+
316
+ ## 2.14.33
317
+
318
+ ### Patch Changes
319
+
320
+ - Updated dependencies [[`236e546`](https://github.com/atlassian-labs/atlaspack/commit/236e5465863dca6044a7191e05260a5b924c342e)]:
321
+ - @atlaspack/utils@3.0.1
322
+ - @atlaspack/types-internal@2.20.3
323
+ - @atlaspack/logger@2.14.25
324
+ - @atlaspack/profiler@2.14.30
325
+
326
+ ## 2.14.32
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [[`1180103`](https://github.com/atlassian-labs/atlaspack/commit/118010351ed444f8178988afb3f77807154dd933)]:
331
+ - @atlaspack/utils@3.0.0
332
+ - @atlaspack/types-internal@2.20.2
333
+ - @atlaspack/logger@2.14.24
334
+ - @atlaspack/profiler@2.14.29
335
+
336
+ ## 2.14.31
337
+
338
+ ### Patch Changes
339
+
340
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
341
+
342
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922)]:
343
+ - @atlaspack/build-cache@2.13.6
344
+ - @atlaspack/diagnostic@2.14.4
345
+ - @atlaspack/logger@2.14.23
346
+ - @atlaspack/profiler@2.14.28
347
+ - @atlaspack/types-internal@2.20.1
348
+ - @atlaspack/utils@2.19.3
349
+
350
+ ## 2.14.30
351
+
352
+ ### Patch Changes
353
+
354
+ - Updated dependencies [[`eedcbc4`](https://github.com/atlassian-labs/atlaspack/commit/eedcbc408fc1e86a2a8e25f1a41c57146d8529e1), [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572)]:
355
+ - @atlaspack/types-internal@2.20.0
356
+ - @atlaspack/utils@2.19.2
357
+ - @atlaspack/logger@2.14.22
358
+ - @atlaspack/profiler@2.14.27
359
+
360
+ ## 2.14.29
361
+
362
+ ### Patch Changes
363
+
364
+ - Updated dependencies []:
365
+ - @atlaspack/types-internal@2.19.5
366
+ - @atlaspack/utils@2.19.1
367
+ - @atlaspack/logger@2.14.21
368
+ - @atlaspack/profiler@2.14.26
369
+
370
+ ## 2.14.28
371
+
372
+ ### Patch Changes
373
+
374
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767)]:
375
+ - @atlaspack/utils@2.19.0
376
+ - @atlaspack/types-internal@2.19.4
377
+ - @atlaspack/logger@2.14.20
378
+ - @atlaspack/profiler@2.14.25
379
+
380
+ ## 2.14.27
381
+
382
+ ### Patch Changes
383
+
384
+ - Updated dependencies []:
385
+ - @atlaspack/types-internal@2.19.3
386
+ - @atlaspack/utils@2.18.4
387
+ - @atlaspack/logger@2.14.19
388
+ - @atlaspack/profiler@2.14.24
389
+
390
+ ## 2.14.26
391
+
392
+ ### Patch Changes
393
+
394
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
395
+
396
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2)]:
397
+ - @atlaspack/types-internal@2.19.2
398
+ - @atlaspack/build-cache@2.13.5
399
+ - @atlaspack/diagnostic@2.14.3
400
+ - @atlaspack/profiler@2.14.23
401
+ - @atlaspack/logger@2.14.18
402
+ - @atlaspack/utils@2.18.3
403
+
404
+ ## 2.14.25
405
+
406
+ ### Patch Changes
407
+
408
+ - Updated dependencies []:
409
+ - @atlaspack/types-internal@2.19.1
410
+ - @atlaspack/utils@2.18.2
411
+ - @atlaspack/logger@2.14.17
412
+ - @atlaspack/profiler@2.14.22
413
+
414
+ ## 2.14.24
415
+
416
+ ### Patch Changes
417
+
418
+ - Updated dependencies [[`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45)]:
419
+ - @atlaspack/types-internal@2.19.0
420
+ - @atlaspack/logger@2.14.16
421
+ - @atlaspack/utils@2.18.1
422
+ - @atlaspack/profiler@2.14.21
423
+
424
+ ## 2.14.23
425
+
426
+ ### Patch Changes
427
+
428
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
429
+ - @atlaspack/utils@2.18.0
430
+ - @atlaspack/types-internal@2.18.0
431
+ - @atlaspack/logger@2.14.15
432
+ - @atlaspack/profiler@2.14.20
433
+
434
+ ## 2.14.22
435
+
436
+ ### Patch Changes
437
+
438
+ - [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
439
+
440
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94), [`43fdd22`](https://github.com/atlassian-labs/atlaspack/commit/43fdd223860fbc97af17d68c65419b97412cb888)]:
441
+ - @atlaspack/types-internal@2.17.0
442
+ - @atlaspack/build-cache@2.13.4
443
+ - @atlaspack/diagnostic@2.14.2
444
+ - @atlaspack/profiler@2.14.19
445
+ - @atlaspack/logger@2.14.14
446
+ - @atlaspack/utils@2.17.4
447
+
448
+ ## 2.14.21
449
+
450
+ ### Patch Changes
451
+
452
+ - Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
453
+ - @atlaspack/types-internal@2.16.0
454
+ - @atlaspack/profiler@2.14.18
455
+ - @atlaspack/utils@2.17.3
456
+
457
+ ## 2.14.20
458
+
459
+ ### Patch Changes
460
+
461
+ - Updated dependencies []:
462
+ - @atlaspack/types-internal@2.15.2
463
+ - @atlaspack/utils@2.17.2
464
+ - @atlaspack/profiler@2.14.17
465
+
466
+ ## 2.14.19
467
+
468
+ ### Patch Changes
469
+
470
+ - Updated dependencies []:
471
+ - @atlaspack/types-internal@2.15.1
472
+ - @atlaspack/utils@2.17.1
473
+ - @atlaspack/profiler@2.14.16
474
+
475
+ ## 2.14.18
476
+
477
+ ### Patch Changes
478
+
479
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56)]:
480
+ - @atlaspack/utils@2.17.0
481
+ - @atlaspack/types-internal@2.15.0
482
+ - @atlaspack/logger@2.14.13
483
+ - @atlaspack/profiler@2.14.15
484
+
485
+ ## 2.14.17
486
+
487
+ ### Patch Changes
488
+
489
+ - Updated dependencies []:
490
+ - @atlaspack/logger@2.14.12
491
+ - @atlaspack/utils@2.16.1
492
+
493
+ ## 2.14.16
494
+
495
+ ### Patch Changes
496
+
497
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
498
+ - @atlaspack/utils@2.16.0
499
+ - @atlaspack/types-internal@2.14.14
500
+ - @atlaspack/profiler@2.14.14
501
+
502
+ ## 2.14.15
503
+
504
+ ### Patch Changes
505
+
506
+ - Updated dependencies []:
507
+ - @atlaspack/types-internal@2.14.13
508
+ - @atlaspack/utils@2.15.3
509
+ - @atlaspack/profiler@2.14.13
510
+
511
+ ## 2.14.14
512
+
513
+ ### Patch Changes
514
+
515
+ - Updated dependencies []:
516
+ - @atlaspack/types-internal@2.14.12
517
+ - @atlaspack/utils@2.15.2
518
+ - @atlaspack/profiler@2.14.12
519
+
520
+ ## 2.14.13
521
+
522
+ ### Patch Changes
523
+
524
+ - [#650](https://github.com/atlassian-labs/atlaspack/pull/650) [`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb) Thanks [@alshdavid](https://github.com/alshdavid)! - Remove package.json#exports
525
+
526
+ - Updated dependencies [[`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb)]:
527
+ - @atlaspack/logger@2.14.11
528
+ - @atlaspack/utils@2.15.1
529
+ - @atlaspack/types-internal@2.14.11
530
+ - @atlaspack/profiler@2.14.11
531
+
532
+ ## 2.14.12
533
+
534
+ ### Patch Changes
535
+
536
+ - Updated dependencies [[`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
537
+ - @atlaspack/utils@2.15.0
538
+ - @atlaspack/types-internal@2.14.10
539
+ - @atlaspack/profiler@2.14.10
540
+
541
+ ## 2.14.11
542
+
543
+ ### Patch Changes
544
+
545
+ - Updated dependencies []:
546
+ - @atlaspack/types-internal@2.14.9
547
+ - @atlaspack/utils@2.14.11
548
+ - @atlaspack/profiler@2.14.9
549
+
550
+ ## 2.14.10
551
+
552
+ ### Patch Changes
553
+
554
+ - Updated dependencies [[`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b)]:
555
+ - @atlaspack/types-internal@2.14.8
556
+ - @atlaspack/profiler@2.14.8
557
+ - @atlaspack/logger@2.14.10
558
+ - @atlaspack/utils@2.14.10
559
+
560
+ ## 2.14.9
561
+
562
+ ### Patch Changes
563
+
564
+ - Updated dependencies []:
565
+ - @atlaspack/logger@2.14.9
566
+ - @atlaspack/utils@2.14.9
567
+ - @atlaspack/types-internal@2.14.7
568
+ - @atlaspack/profiler@2.14.7
569
+
3
570
  ## 2.14.8
4
571
 
5
572
  ### Patch Changes
package/dist/Handle.js ADDED
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const build_cache_1 = require("@atlaspack/build-cache");
7
+ const package_json_1 = __importDefault(require("../package.json"));
8
+ let HANDLE_ID = 0;
9
+ const handleById = new Map();
10
+ class Handle {
11
+ constructor(opts) {
12
+ this.id = opts.id ?? ++HANDLE_ID;
13
+ this.fn = opts.fn;
14
+ this.childId = opts.childId;
15
+ handleById.set(this.id, this);
16
+ }
17
+ dispose() {
18
+ handleById.delete(this.id);
19
+ }
20
+ serialize() {
21
+ return {
22
+ id: this.id,
23
+ childId: this.childId,
24
+ };
25
+ }
26
+ static deserialize(opts) {
27
+ return new Handle(opts);
28
+ }
29
+ }
30
+ exports.default = Handle;
31
+ // Register the Handle as a serializable class so that it will properly be deserialized
32
+ // by anything that uses WorkerFarm.
33
+ (0, build_cache_1.registerSerializableClass)(`${package_json_1.default.version}:Handle`, Handle);