@hatchet-dev/typescript-sdk 1.10.3 → 1.10.4-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "1.10.3",
3
+ "version": "1.10.4-alpha.0",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -50,7 +50,8 @@ class Worker {
50
50
  */
51
51
  registerWorkflows(workflows) {
52
52
  return __awaiter(this, void 0, void 0, function* () {
53
- for (const wf of workflows || []) {
53
+ const shuffled = [...(workflows || [])].sort(() => Math.random() - 0.5);
54
+ for (const wf of shuffled) {
54
55
  if (wf instanceof declaration_1.BaseWorkflowDeclaration) {
55
56
  // TODO check if tenant is V1
56
57
  yield this.nonDurable.registerWorkflowV1(wf);
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.10.3";
1
+ export declare const HATCHET_VERSION = "1.10.4-alpha.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.10.3';
4
+ exports.HATCHET_VERSION = '1.10.4-alpha.0';