Skip to content

Commit 91ed8e3

Browse files
feat!: remove legacy lib wildcard entrypoint forwarding
1 parent 8de0b38 commit 91ed8e3

39 files changed

Lines changed: 58 additions & 70 deletions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Undocumented entrypoints are no longer supported.

‎contrib/interceptors-opentelemetry-v2/package.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
"./lib/*.js": {
3030
"types": "./lib/*.d.ts",
3131
"default": "./lib/*.js"
32-
},
33-
"./lib/*": {
34-
"types": "./lib/*.d.ts",
35-
"default": "./lib/*.js"
3632
}
3733
},
3834
"typesVersions": {

‎contrib/interceptors-opentelemetry-v2/src/workflow/workflow-imports-impl.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*
55
* @module
66
*/
7+
/** @lintignore These exports replace the stub's exports at bundle time; Knip cannot follow the webpack alias. */
78
export {
89
inWorkflowContext,
910
proxySinks,

‎contrib/interceptors-opentelemetry-v2/src/workflow/workflow-imports.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const workflowInfo: typeof workflowInfoT = () => {
2828

2929
export const ContinueAsNew = class ContinueAsNew {} as unknown as typeof ContinueAsNewT;
3030

31+
/** @lintignore Keep the stub's exports aligned with the implementation swapped in by the workflow bundler. */
3132
export const AsyncLocalStorage = class AsyncLocalStorage {} as unknown as typeof AsyncLocalStorageT;
3233

3334
export const proxySinks: typeof proxySinksT = () => {

‎contrib/interceptors-opentelemetry/package.json‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@
2929
"./lib/*.js": {
3030
"types": "./lib/*.d.ts",
3131
"default": "./lib/*.js"
32-
},
33-
"./lib/*": {
34-
"types": "./lib/*.d.ts",
35-
"default": "./lib/*.js"
3632
}
3733
},
3834
"typesVersions": {

‎contrib/interceptors-opentelemetry/src/workflow/workflow-imports-impl.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
*
55
* @module
66
*/
7+
/** @lintignore These exports replace the stub's exports at bundle time; Knip cannot follow the webpack alias. */
78
export { inWorkflowContext, proxySinks, workflowInfo, AsyncLocalStorage, ContinueAsNew } from '@temporalio/workflow';
9+
/** @lintignore These exports replace the stub's exports at bundle time; Knip cannot follow the webpack alias. */
810
export { getActivator, SdkFlags } from '@temporalio/workflow/internal';

‎contrib/interceptors-opentelemetry/src/workflow/workflow-imports.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const workflowInfo: typeof workflowInfoT = () => {
2828

2929
export const ContinueAsNew = class ContinueAsNew {} as unknown as typeof ContinueAsNewT;
3030

31+
/** @lintignore Keep the stub's exports aligned with the implementation swapped in by the workflow bundler. */
3132
export const AsyncLocalStorage = class AsyncLocalStorage {} as unknown as typeof AsyncLocalStorageT;
3233

3334
export const getActivator: typeof getActivatorT = () => {

‎contrib/workflow-streams/src/client.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ import {
2828
type Payload,
2929
type PayloadConverter,
3030
} from '@temporalio/common';
31-
import type { Duration } from '@temporalio/common/lib/time';
32-
import { msToNumber } from '@temporalio/common/lib/time';
31+
import type { Duration } from '@temporalio/common/time';
32+
import { msToNumber } from '@temporalio/common/time';
3333
import { decodePayloadWire, encodePayloadWire } from './codec';
3434
import { isPayload } from './is-payload';
3535
import type { PollInput, PollResult, WorkflowStreamItem, PublishEntry, PublishInput } from './types';

‎contrib/workflow-streams/src/workflow.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import {
3737
defaultPayloadConverter,
3838
} from '@temporalio/workflow';
3939
import { ApplicationFailure, type Payload, type Workflow } from '@temporalio/common';
40-
import type { Duration } from '@temporalio/common/lib/time';
41-
import { msToNumber } from '@temporalio/common/lib/time';
40+
import type { Duration } from '@temporalio/common/time';
41+
import { msToNumber } from '@temporalio/common/time';
4242
import { decodePayloadWire, encodePayloadProto, encodePayloadWire, encodeBase64 } from './codec';
4343
import { isPayload, isUint8ArrayLike } from './is-payload';
4444
import type { PollInput, PollResult, WorkflowStreamState, PublishInput, WorkflowStreamWireItem } from './types';

‎packages/activity/src/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ import type {
130130
RetryPolicy,
131131
} from '@temporalio/common';
132132
import { IllegalStateError } from '@temporalio/common';
133-
import { msToNumber } from '@temporalio/common/lib/time';
133+
import { msToNumber } from '@temporalio/common/time';
134134

135135
import type { Client } from '@temporalio/client';
136136

0 commit comments

Comments
 (0)