@atlaspack/workers 2.14.5-canary.49 → 2.14.5-canary.491

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