@fluidframework/task-manager 2.91.0 → 2.93.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/CHANGELOG.md +8 -0
- package/README.md +1 -1
- package/dist/legacy.d.ts +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/public.d.ts +1 -1
- package/dist/taskManagerFactory.d.ts.map +1 -1
- package/dist/taskManagerFactory.js +3 -0
- package/dist/taskManagerFactory.js.map +1 -1
- package/eslint.config.mts +1 -1
- package/internal.d.ts +1 -1
- package/legacy.d.ts +1 -1
- package/lib/legacy.d.ts +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/public.d.ts +1 -1
- package/lib/taskManagerFactory.d.ts.map +1 -1
- package/lib/taskManagerFactory.js +3 -0
- package/lib/taskManagerFactory.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +24 -25
- package/src/packageVersion.ts +1 -1
- package/src/taskManagerFactory.ts +3 -0
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ When making such a request please include if the configuration already works (an
|
|
|
57
57
|
|
|
58
58
|
### Supported Runtimes
|
|
59
59
|
|
|
60
|
-
- NodeJs ^
|
|
60
|
+
- NodeJs ^22.22.2 except that we will drop support for it [when NodeJs 22 loses its upstream support on 2027-04-30](https://github.com/nodejs/release#release-schedule), and will support a newer LTS version of NodeJS at least 1 year before 22 is end-of-life.
|
|
61
61
|
- Running Fluid in a Node.js environment with the `--no-experimental-fetch` flag is not supported.
|
|
62
62
|
- Modern browsers supporting the es2022 standard library: in response to asks we can add explicit support for using babel to polyfill to target specific standards or runtimes (meaning we can avoid/remove use of things that don't polyfill robustly, but otherwise target modern standards).
|
|
63
63
|
|
package/dist/legacy.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outDir ./dist" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
package/dist/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/task-manager";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.93.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/dist/packageVersion.js
CHANGED
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.pkgVersion = exports.pkgName = void 0;
|
|
10
10
|
exports.pkgName = "@fluidframework/task-manager";
|
|
11
|
-
exports.pkgVersion = "2.
|
|
11
|
+
exports.pkgVersion = "2.93.0";
|
|
12
12
|
//# sourceMappingURL=packageVersion.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/task-manager\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,8BAA8B,CAAC;AACzC,QAAA,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/task-manager\";\nexport const pkgVersion = \"2.93.0\";\n"]}
|
package/dist/public.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outDir ./dist" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagerFactory.d.ts","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,eAAe,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"taskManagerFactory.d.ts","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,eAAe,CAAC,YAAY,CAAC;IAIvE,gBAAuB,IAAI,oDAAoD;IAE/E,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,IAAI,OAAO,kBAAkB,CAAC,IAAI,CAEhD;IAED,IAAW,UAAU,IAAI,OAAO,kBAAkB,CAAC,UAAU,CAE5D;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,YAAY,CAAC;IAMjB,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY;CAKzE;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,8KAA6C,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -33,6 +33,9 @@ class TaskManagerFactory {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
exports.TaskManagerFactory = TaskManagerFactory;
|
|
36
|
+
// New type string, to be activated once the migration has been fully shipped dark and is safe to flip.
|
|
37
|
+
// See LegacyTypeAwareRegistry in packages/runtime/datastore/src/dataStoreRuntime.ts.
|
|
38
|
+
// public static readonly Type = "task-manager";
|
|
36
39
|
TaskManagerFactory.Type = "https://graph.microsoft.com/types/task-manager";
|
|
37
40
|
TaskManagerFactory.Attributes = {
|
|
38
41
|
type: TaskManagerFactory.Type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagerFactory.js","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAQH,0EAAqF;AAGrF,2DAAiD;AACjD,qDAAoD;AAEpD;;GAEG;AACH,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"taskManagerFactory.js","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAQH,0EAAqF;AAGrF,2DAAiD;AACjD,qDAAoD;AAEpD;;GAEG;AACH,MAAa,kBAAkB;IAY9B,IAAW,IAAI;QACd,OAAO,kBAAkB,CAAC,IAAI,CAAC;IAChC,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,kBAAkB,CAAC,UAAU,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,QAAgC,EAAE,EAAU;QACzD,MAAM,SAAS,GAAG,IAAI,iCAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACtE,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC;IAClB,CAAC;;AAtCF,gDAuCC;AAtCA,uGAAuG;AACvG,qFAAqF;AACrF,gDAAgD;AACzB,uBAAI,GAAG,gDAAgD,CAAC;AAExD,6BAAU,GAAuB;IACvD,IAAI,EAAE,kBAAkB,CAAC,IAAI;IAC7B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,8BAAU;CAC1B,CAAC;AA+BH;;;GAGG;AACU,QAAA,WAAW,GAAG,IAAA,iCAAsB,EAAC,kBAAkB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n} from \"@fluidframework/datastore-definitions/internal\";\nimport { createSharedObjectKind } from \"@fluidframework/shared-object-base/internal\";\n\nimport type { ITaskManager } from \"./interfaces.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\nimport { TaskManagerClass } from \"./taskManager.js\";\n\n/**\n * The factory that defines the task queue\n */\nexport class TaskManagerFactory implements IChannelFactory<ITaskManager> {\n\t// New type string, to be activated once the migration has been fully shipped dark and is safe to flip.\n\t// See LegacyTypeAwareRegistry in packages/runtime/datastore/src/dataStoreRuntime.ts.\n\t// public static readonly Type = \"task-manager\";\n\tpublic static readonly Type = \"https://graph.microsoft.com/types/task-manager\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: TaskManagerFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type(): typeof TaskManagerFactory.Type {\n\t\treturn TaskManagerFactory.Type;\n\t}\n\n\tpublic get attributes(): typeof TaskManagerFactory.Attributes {\n\t\treturn TaskManagerFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ITaskManager> {\n\t\tconst taskQueue = new TaskManagerClass(id, runtime, attributes);\n\t\tawait taskQueue.load(services);\n\t\treturn taskQueue;\n\t}\n\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ITaskManager {\n\t\tconst taskQueue = new TaskManagerClass(id, document, this.attributes);\n\t\ttaskQueue.initializeLocal();\n\t\treturn taskQueue;\n\t}\n}\n\n/**\n * {@inheritDoc ITaskManager}\n * @legacy @beta\n */\nexport const TaskManager = createSharedObjectKind(TaskManagerFactory);\n\n/**\n * {@inheritDoc ITaskManager}\n * @legacy @beta\n */\nexport type TaskManager = ITaskManager;\n"]}
|
package/eslint.config.mts
CHANGED
package/internal.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export * from "./lib/index.js";
|
package/legacy.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
export * from "./lib/legacy.js";
|
package/lib/legacy.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
package/lib/packageVersion.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
|
|
6
6
|
*/
|
|
7
7
|
export declare const pkgName = "@fluidframework/task-manager";
|
|
8
|
-
export declare const pkgVersion = "2.
|
|
8
|
+
export declare const pkgVersion = "2.93.0";
|
|
9
9
|
//# sourceMappingURL=packageVersion.d.ts.map
|
package/lib/packageVersion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,8BAA8B,CAAC;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/task-manager\";\nexport const pkgVersion = \"2.
|
|
1
|
+
{"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,8BAA8B,CAAC;AACtD,MAAM,CAAC,MAAM,UAAU,GAAG,QAAQ,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/task-manager\";\nexport const pkgVersion = \"2.93.0\";\n"]}
|
package/lib/public.d.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
/*
|
|
7
7
|
* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
8
|
-
* Generated by "flub generate entrypoints" in @fluid-tools/build-cli.
|
|
8
|
+
* Generated by "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat" in @fluid-tools/build-cli.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagerFactory.d.ts","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,eAAe,CAAC,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"taskManagerFactory.d.ts","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACX,kBAAkB,EAClB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;GAEG;AACH,qBAAa,kBAAmB,YAAW,eAAe,CAAC,YAAY,CAAC;IAIvE,gBAAuB,IAAI,oDAAoD;IAE/E,gBAAuB,UAAU,EAAE,kBAAkB,CAInD;IAEF,IAAW,IAAI,IAAI,OAAO,kBAAkB,CAAC,IAAI,CAEhD;IAED,IAAW,UAAU,IAAI,OAAO,kBAAkB,CAAC,UAAU,CAE5D;IAED;;OAEG;IACU,IAAI,CAChB,OAAO,EAAE,sBAAsB,EAC/B,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,gBAAgB,EAC1B,UAAU,EAAE,kBAAkB,GAC5B,OAAO,CAAC,YAAY,CAAC;IAMjB,MAAM,CAAC,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAE,MAAM,GAAG,YAAY;CAKzE;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,8KAA6C,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -29,6 +29,9 @@ export class TaskManagerFactory {
|
|
|
29
29
|
return taskQueue;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
+
// New type string, to be activated once the migration has been fully shipped dark and is safe to flip.
|
|
33
|
+
// See LegacyTypeAwareRegistry in packages/runtime/datastore/src/dataStoreRuntime.ts.
|
|
34
|
+
// public static readonly Type = "task-manager";
|
|
32
35
|
TaskManagerFactory.Type = "https://graph.microsoft.com/types/task-manager";
|
|
33
36
|
TaskManagerFactory.Attributes = {
|
|
34
37
|
type: TaskManagerFactory.Type,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taskManagerFactory.js","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAGrF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,kBAAkB;
|
|
1
|
+
{"version":3,"file":"taskManagerFactory.js","sourceRoot":"","sources":["../src/taskManagerFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAQH,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAGrF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAY9B,IAAW,IAAI;QACd,OAAO,kBAAkB,CAAC,IAAI,CAAC;IAChC,CAAC;IAED,IAAW,UAAU;QACpB,OAAO,kBAAkB,CAAC,UAAU,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,KAAK,CAAC,IAAI,CAChB,OAA+B,EAC/B,EAAU,EACV,QAA0B,EAC1B,UAA8B;QAE9B,MAAM,SAAS,GAAG,IAAI,gBAAgB,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC/B,OAAO,SAAS,CAAC;IAClB,CAAC;IAEM,MAAM,CAAC,QAAgC,EAAE,EAAU;QACzD,MAAM,SAAS,GAAG,IAAI,gBAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;QACtE,SAAS,CAAC,eAAe,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC;IAClB,CAAC;;AArCD,uGAAuG;AACvG,qFAAqF;AACrF,gDAAgD;AACzB,uBAAI,GAAG,gDAAgD,CAAC;AAExD,6BAAU,GAAuB;IACvD,IAAI,EAAE,kBAAkB,CAAC,IAAI;IAC7B,qBAAqB,EAAE,KAAK;IAC5B,cAAc,EAAE,UAAU;CAC1B,CAAC;AA+BH;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,sBAAsB,CAAC,kBAAkB,CAAC,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport type {\n\tIChannelAttributes,\n\tIChannelFactory,\n\tIFluidDataStoreRuntime,\n\tIChannelServices,\n} from \"@fluidframework/datastore-definitions/internal\";\nimport { createSharedObjectKind } from \"@fluidframework/shared-object-base/internal\";\n\nimport type { ITaskManager } from \"./interfaces.js\";\nimport { pkgVersion } from \"./packageVersion.js\";\nimport { TaskManagerClass } from \"./taskManager.js\";\n\n/**\n * The factory that defines the task queue\n */\nexport class TaskManagerFactory implements IChannelFactory<ITaskManager> {\n\t// New type string, to be activated once the migration has been fully shipped dark and is safe to flip.\n\t// See LegacyTypeAwareRegistry in packages/runtime/datastore/src/dataStoreRuntime.ts.\n\t// public static readonly Type = \"task-manager\";\n\tpublic static readonly Type = \"https://graph.microsoft.com/types/task-manager\";\n\n\tpublic static readonly Attributes: IChannelAttributes = {\n\t\ttype: TaskManagerFactory.Type,\n\t\tsnapshotFormatVersion: \"0.1\",\n\t\tpackageVersion: pkgVersion,\n\t};\n\n\tpublic get type(): typeof TaskManagerFactory.Type {\n\t\treturn TaskManagerFactory.Type;\n\t}\n\n\tpublic get attributes(): typeof TaskManagerFactory.Attributes {\n\t\treturn TaskManagerFactory.Attributes;\n\t}\n\n\t/**\n\t * {@inheritDoc @fluidframework/datastore-definitions#IChannelFactory.load}\n\t */\n\tpublic async load(\n\t\truntime: IFluidDataStoreRuntime,\n\t\tid: string,\n\t\tservices: IChannelServices,\n\t\tattributes: IChannelAttributes,\n\t): Promise<ITaskManager> {\n\t\tconst taskQueue = new TaskManagerClass(id, runtime, attributes);\n\t\tawait taskQueue.load(services);\n\t\treturn taskQueue;\n\t}\n\n\tpublic create(document: IFluidDataStoreRuntime, id: string): ITaskManager {\n\t\tconst taskQueue = new TaskManagerClass(id, document, this.attributes);\n\t\ttaskQueue.initializeLocal();\n\t\treturn taskQueue;\n\t}\n}\n\n/**\n * {@inheritDoc ITaskManager}\n * @legacy @beta\n */\nexport const TaskManager = createSharedObjectKind(TaskManagerFactory);\n\n/**\n * {@inheritDoc ITaskManager}\n * @legacy @beta\n */\nexport type TaskManager = ITaskManager;\n"]}
|
package/lib/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/task-manager",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.93.0",
|
|
4
4
|
"description": "Distributed data structure for queueing exclusive tasks",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -81,33 +81,33 @@
|
|
|
81
81
|
"temp-directory": "nyc/.nyc_output"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
-
"@fluid-internal/client-utils": "~2.
|
|
85
|
-
"@fluidframework/container-definitions": "~2.
|
|
86
|
-
"@fluidframework/container-runtime-definitions": "~2.
|
|
87
|
-
"@fluidframework/core-interfaces": "~2.
|
|
88
|
-
"@fluidframework/core-utils": "~2.
|
|
89
|
-
"@fluidframework/datastore-definitions": "~2.
|
|
90
|
-
"@fluidframework/driver-definitions": "~2.
|
|
91
|
-
"@fluidframework/driver-utils": "~2.
|
|
92
|
-
"@fluidframework/runtime-definitions": "~2.
|
|
93
|
-
"@fluidframework/shared-object-base": "~2.
|
|
84
|
+
"@fluid-internal/client-utils": "~2.93.0",
|
|
85
|
+
"@fluidframework/container-definitions": "~2.93.0",
|
|
86
|
+
"@fluidframework/container-runtime-definitions": "~2.93.0",
|
|
87
|
+
"@fluidframework/core-interfaces": "~2.93.0",
|
|
88
|
+
"@fluidframework/core-utils": "~2.93.0",
|
|
89
|
+
"@fluidframework/datastore-definitions": "~2.93.0",
|
|
90
|
+
"@fluidframework/driver-definitions": "~2.93.0",
|
|
91
|
+
"@fluidframework/driver-utils": "~2.93.0",
|
|
92
|
+
"@fluidframework/runtime-definitions": "~2.93.0",
|
|
93
|
+
"@fluidframework/shared-object-base": "~2.93.0"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
97
97
|
"@biomejs/biome": "~2.4.5",
|
|
98
|
-
"@fluid-internal/mocha-test-setup": "~2.
|
|
99
|
-
"@fluid-private/stochastic-test-utils": "~2.
|
|
100
|
-
"@fluid-private/test-dds-utils": "~2.
|
|
101
|
-
"@fluid-tools/build-cli": "^0.
|
|
98
|
+
"@fluid-internal/mocha-test-setup": "~2.93.0",
|
|
99
|
+
"@fluid-private/stochastic-test-utils": "~2.93.0",
|
|
100
|
+
"@fluid-private/test-dds-utils": "~2.93.0",
|
|
101
|
+
"@fluid-tools/build-cli": "^0.64.0",
|
|
102
102
|
"@fluidframework/build-common": "^2.0.3",
|
|
103
|
-
"@fluidframework/build-tools": "^0.
|
|
104
|
-
"@fluidframework/eslint-config-fluid": "
|
|
105
|
-
"@fluidframework/task-manager-previous": "npm:@fluidframework/task-manager@2.
|
|
106
|
-
"@fluidframework/test-runtime-utils": "~2.
|
|
107
|
-
"@fluidframework/test-utils": "~2.
|
|
108
|
-
"@microsoft/api-extractor": "7.
|
|
103
|
+
"@fluidframework/build-tools": "^0.64.0",
|
|
104
|
+
"@fluidframework/eslint-config-fluid": "^9.0.0",
|
|
105
|
+
"@fluidframework/task-manager-previous": "npm:@fluidframework/task-manager@2.92.0",
|
|
106
|
+
"@fluidframework/test-runtime-utils": "~2.93.0",
|
|
107
|
+
"@fluidframework/test-utils": "~2.93.0",
|
|
108
|
+
"@microsoft/api-extractor": "7.58.1",
|
|
109
109
|
"@types/mocha": "^10.0.10",
|
|
110
|
-
"@types/node": "~
|
|
110
|
+
"@types/node": "~22.19.17",
|
|
111
111
|
"c8": "^10.1.3",
|
|
112
112
|
"concurrently": "^9.2.1",
|
|
113
113
|
"copyfiles": "^2.4.1",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"api": "fluid-build . --task api",
|
|
128
|
-
"api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist",
|
|
128
|
+
"api-extractor:commonjs": "flub generate entrypoints --resolutionConditions require --outFileLegacyBeta legacy --outDir ./dist",
|
|
129
129
|
"api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat",
|
|
130
130
|
"build": "fluid-build . --task build",
|
|
131
131
|
"build:api-reports": "concurrently \"npm:build:api-reports:*\"",
|
|
@@ -166,7 +166,6 @@
|
|
|
166
166
|
"test:mocha:esm": "mocha",
|
|
167
167
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
168
168
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
169
|
-
"typetests:gen": "flub generate typetests --dir . -v"
|
|
170
|
-
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
169
|
+
"typetests:gen": "flub generate typetests --dir . -v"
|
|
171
170
|
}
|
|
172
171
|
}
|
package/src/packageVersion.ts
CHANGED
|
@@ -19,6 +19,9 @@ import { TaskManagerClass } from "./taskManager.js";
|
|
|
19
19
|
* The factory that defines the task queue
|
|
20
20
|
*/
|
|
21
21
|
export class TaskManagerFactory implements IChannelFactory<ITaskManager> {
|
|
22
|
+
// New type string, to be activated once the migration has been fully shipped dark and is safe to flip.
|
|
23
|
+
// See LegacyTypeAwareRegistry in packages/runtime/datastore/src/dataStoreRuntime.ts.
|
|
24
|
+
// public static readonly Type = "task-manager";
|
|
22
25
|
public static readonly Type = "https://graph.microsoft.com/types/task-manager";
|
|
23
26
|
|
|
24
27
|
public static readonly Attributes: IChannelAttributes = {
|