@atlaspack/workers 2.14.5-canary.5 → 2.14.5-canary.500

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