@temporalio/common
Advanced tools
Comparing version 0.19.0-rc.1 to 0.19.0
@@ -7,3 +7,3 @@ import { PayloadCodec } from './payload-codec'; | ||
* | ||
* The default `DataConverter` supports `Uint8Array`, and JSON serializables (so if | ||
* The default `DataConverter` supports `undefined`, `Uint8Array`, and JSON serializables (so if | ||
* [`JSON.stringify(yourArgOrRetval)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) | ||
@@ -47,1 +47,2 @@ * works, the default data converter will work). Protobufs are supported via [this | ||
} | ||
export declare const defaultDataConverter: LoadedDataConverter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defaultDataConverter = void 0; | ||
const payload_codec_1 = require("./payload-codec"); | ||
const payload_converter_1 = require("./payload-converter"); | ||
exports.defaultDataConverter = { | ||
payloadConverter: payload_converter_1.defaultPayloadConverter, | ||
payloadCodec: payload_codec_1.defaultPayloadCodec, | ||
}; | ||
//# sourceMappingURL=data-converter.js.map |
@@ -1,3 +0,3 @@ | ||
import type * as iface from '@temporalio/proto/lib/coresdk'; | ||
export declare type Payload = iface.coresdk.common.IPayload; | ||
import type { coresdk } from '@temporalio/proto/lib/coresdk'; | ||
export declare type Payload = coresdk.common.IPayload; | ||
/** | ||
@@ -4,0 +4,0 @@ * Transform an *ascii* string into a Uint8Array |
@@ -62,3 +62,3 @@ import type { temporal } from '@temporalio/proto/lib/coresdk'; | ||
* | ||
* The {@link type} property is used by {@link io.temporal.common.RetryOptions} to determine if | ||
* The {@link type} property is used by {@link temporal.common.RetryOptions} to determine if | ||
* an instance of this exception is non retryable. Another way to avoid retrying an exception of | ||
@@ -65,0 +65,0 @@ * this type is by setting {@link nonRetryable} flag to `true`. |
@@ -71,3 +71,3 @@ "use strict"; | ||
* | ||
* The {@link type} property is used by {@link io.temporal.common.RetryOptions} to determine if | ||
* The {@link type} property is used by {@link temporal.common.RetryOptions} to determine if | ||
* an instance of this exception is non retryable. Another way to avoid retrying an exception of | ||
@@ -202,2 +202,4 @@ * this type is by setting {@link nonRetryable} flag to `true`. | ||
/\s+at Activator\.\S+NextHandler \(webpack-internal:\/\/\/.*\/internals\.[jt]s:\d+:\d+\)/, | ||
/** Workflow run anything in context */ | ||
/\s+at Script\.runInContext/, | ||
]; | ||
@@ -204,0 +206,0 @@ /** |
{ | ||
"name": "@temporalio/common", | ||
"version": "0.19.0-rc.1", | ||
"version": "0.19.0", | ||
"description": "Common library for code that's used across the Client, Worker, and/or Workflow", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@temporalio/internal-workflow-common": "^0.19.0-rc.1", | ||
"@temporalio/internal-workflow-common": "^0.19.0", | ||
"proto3-json-serializer": "^0.1.6" | ||
@@ -27,6 +27,6 @@ }, | ||
"devDependencies": { | ||
"@temporalio/proto": "^0.19.0-rc.1", | ||
"@temporalio/proto": "^0.19.0", | ||
"protobufjs": "^6.11.2" | ||
}, | ||
"gitHead": "186341ed7285e468c145121433f2c239e53934a6" | ||
"gitHead": "02748d3fc3f321669ffa09f0ca012b81900b0fc0" | ||
} |
@@ -1,3 +0,3 @@ | ||
import { PayloadCodec } from './payload-codec'; | ||
import { PayloadConverter } from './payload-converter'; | ||
import { defaultPayloadCodec, PayloadCodec } from './payload-codec'; | ||
import { defaultPayloadConverter, PayloadConverter } from './payload-converter'; | ||
@@ -8,3 +8,3 @@ /** | ||
* | ||
* The default `DataConverter` supports `Uint8Array`, and JSON serializables (so if | ||
* The default `DataConverter` supports `undefined`, `Uint8Array`, and JSON serializables (so if | ||
* [`JSON.stringify(yourArgOrRetval)`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#description) | ||
@@ -50,1 +50,6 @@ * works, the default data converter will work). Protobufs are supported via [this | ||
} | ||
export const defaultDataConverter: LoadedDataConverter = { | ||
payloadConverter: defaultPayloadConverter, | ||
payloadCodec: defaultPayloadCodec, | ||
}; |
@@ -1,5 +0,5 @@ | ||
import type * as iface from '@temporalio/proto/lib/coresdk'; | ||
import { TextEncoder, TextDecoder } from './encoding'; | ||
import type { coresdk } from '@temporalio/proto/lib/coresdk'; | ||
import { TextDecoder, TextEncoder } from './encoding'; | ||
export type Payload = iface.coresdk.common.IPayload; | ||
export type Payload = coresdk.common.IPayload; | ||
@@ -6,0 +6,0 @@ /** |
@@ -82,3 +82,3 @@ import { checkExtends, hasOwnProperties, isRecord } from '@temporalio/internal-workflow-common'; | ||
* | ||
* The {@link type} property is used by {@link io.temporal.common.RetryOptions} to determine if | ||
* The {@link type} property is used by {@link temporal.common.RetryOptions} to determine if | ||
* an instance of this exception is non retryable. Another way to avoid retrying an exception of | ||
@@ -230,2 +230,4 @@ * this type is by setting {@link nonRetryable} flag to `true`. | ||
/\s+at Activator\.\S+NextHandler \(webpack-internal:\/\/\/.*\/internals\.[jt]s:\d+:\d+\)/, | ||
/** Workflow run anything in context */ | ||
/\s+at Script\.runInContext/, | ||
]; | ||
@@ -232,0 +234,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
196118
3032
0