@dbos-inc/dbos-sdk 1.11.4-preview → 1.11.6-preview

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. package/dbos-config.schema.json +1 -4
  2. package/dist/src/communicator.d.ts +1 -1
  3. package/dist/src/communicator.d.ts.map +1 -1
  4. package/dist/src/context.d.ts +2 -0
  5. package/dist/src/context.d.ts.map +1 -1
  6. package/dist/src/context.js +3 -2
  7. package/dist/src/context.js.map +1 -1
  8. package/dist/src/dbos-executor.d.ts +11 -11
  9. package/dist/src/dbos-executor.d.ts.map +1 -1
  10. package/dist/src/dbos-executor.js +3 -11
  11. package/dist/src/dbos-executor.js.map +1 -1
  12. package/dist/src/dbos-runtime/config.d.ts.map +1 -1
  13. package/dist/src/dbos-runtime/config.js +0 -2
  14. package/dist/src/dbos-runtime/config.js.map +1 -1
  15. package/dist/src/dbos-runtime/runtime.d.ts.map +1 -1
  16. package/dist/src/dbos-runtime/runtime.js.map +1 -1
  17. package/dist/src/debugger/debug_workflow.d.ts +9 -9
  18. package/dist/src/debugger/debug_workflow.d.ts.map +1 -1
  19. package/dist/src/debugger/debug_workflow.js +2 -4
  20. package/dist/src/debugger/debug_workflow.js.map +1 -1
  21. package/dist/src/httpServer/handler.d.ts +4 -4
  22. package/dist/src/httpServer/handler.d.ts.map +1 -1
  23. package/dist/src/httpServer/handler.js +0 -7
  24. package/dist/src/httpServer/handler.js.map +1 -1
  25. package/dist/src/httpServer/server.js.map +1 -1
  26. package/dist/src/kafka/kafka.js.map +1 -1
  27. package/dist/src/scheduler/scheduler.js.map +1 -1
  28. package/dist/src/system_database.d.ts +17 -15
  29. package/dist/src/system_database.d.ts.map +1 -1
  30. package/dist/src/system_database.js +38 -8
  31. package/dist/src/system_database.js.map +1 -1
  32. package/dist/src/telemetry/logs.d.ts.map +1 -1
  33. package/dist/src/telemetry/logs.js +6 -4
  34. package/dist/src/telemetry/logs.js.map +1 -1
  35. package/dist/src/telemetry/traces.d.ts +1 -0
  36. package/dist/src/telemetry/traces.d.ts.map +1 -1
  37. package/dist/src/telemetry/traces.js +5 -2
  38. package/dist/src/telemetry/traces.js.map +1 -1
  39. package/dist/src/testing/testing_runtime.d.ts +6 -6
  40. package/dist/src/testing/testing_runtime.d.ts.map +1 -1
  41. package/dist/src/testing/testing_runtime.js +0 -7
  42. package/dist/src/testing/testing_runtime.js.map +1 -1
  43. package/dist/src/transaction.d.ts +1 -1
  44. package/dist/src/transaction.d.ts.map +1 -1
  45. package/dist/src/transaction.js.map +1 -1
  46. package/dist/src/user_database.d.ts.map +1 -1
  47. package/dist/src/user_database.js +1 -4
  48. package/dist/src/user_database.js.map +1 -1
  49. package/dist/src/workflow.d.ts +19 -19
  50. package/dist/src/workflow.d.ts.map +1 -1
  51. package/dist/src/workflow.js +0 -5
  52. package/dist/src/workflow.js.map +1 -1
  53. package/dist/tsconfig.build.tsbuildinfo +1 -1
  54. package/migrations/20240516004341_application_version.js +23 -0
  55. package/package.json +1 -1
  56. package/dist/src/dbos-runtime/applicationVersion.d.ts +0 -3
  57. package/dist/src/dbos-runtime/applicationVersion.d.ts.map +0 -1
  58. package/dist/src/dbos-runtime/applicationVersion.js +0 -13
  59. package/dist/src/dbos-runtime/applicationVersion.js.map +0 -1
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @param { import("knex").Knex } knex
3
+ * @returns { Promise<void> }
4
+ */
5
+ exports.up = function(knex) {
6
+ return knex.schema.withSchema('dbos')
7
+ .alterTable('workflow_status', function(table) {
8
+ table.text('application_version');
9
+ table.text('application_id');
10
+ })
11
+ };
12
+
13
+ /**
14
+ * @param { import("knex").Knex } knex
15
+ * @returns { Promise<void> }
16
+ */
17
+ exports.down = function(knex) {
18
+ return knex.schema.withSchema('dbos')
19
+ .alterTable('workflow_status', function(table) {
20
+ table.dropColumn('application_version');
21
+ table.dropColumn('application_id');
22
+ })
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/dbos-sdk",
3
- "version": "1.11.4-preview",
3
+ "version": "1.11.6-preview",
4
4
  "description": "A Typescript framework built on the database",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1,3 +0,0 @@
1
- export declare function getApplicationVersion(): string | undefined;
2
- export declare function setApplicationVersion(version: string): void;
3
- //# sourceMappingURL=applicationVersion.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.d.ts","sourceRoot":"","sources":["../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":"AAAA,wBAAgB,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE1D;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAE3D"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.setApplicationVersion = exports.getApplicationVersion = void 0;
4
- function getApplicationVersion() {
5
- return applicationVersion;
6
- }
7
- exports.getApplicationVersion = getApplicationVersion;
8
- function setApplicationVersion(version) {
9
- applicationVersion = version;
10
- }
11
- exports.setApplicationVersion = setApplicationVersion;
12
- let applicationVersion = undefined;
13
- //# sourceMappingURL=applicationVersion.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicationVersion.js","sourceRoot":"","sources":["../../../src/dbos-runtime/applicationVersion.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB;IACjC,OAAO,kBAAkB,CAAC;AAC9B,CAAC;AAFD,sDAEC;AAED,SAAgB,qBAAqB,CAAC,OAAe;IACjD,kBAAkB,GAAG,OAAO,CAAC;AACjC,CAAC;AAFD,sDAEC;AAED,IAAI,kBAAkB,GAAuB,SAAS,CAAC"}