Skip to content

Commit 4f208a4

Browse files
authored
refactor!: Update activity and worker exports (#764)
1 parent 2d9b7d1 commit 4f208a4

File tree

4 files changed

+23
-14
lines changed

4 files changed

+23
-14
lines changed

packages/activity/src/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@
4646
import { msToNumber } from '@temporalio/internal-workflow-common';
4747
import { AbortSignal } from 'abort-controller';
4848
import { AsyncLocalStorage } from 'async_hooks';
49-
export { CancelledFailure } from '@temporalio/common';
49+
export { CancelledFailure, ApplicationFailure } from '@temporalio/common';
5050
export {
5151
ActivityFunction,
5252
ActivityInterface, // eslint-disable-line deprecation/deprecation
5353
UntypedActivities,
54+
errorMessage,
55+
errorCode,
5456
} from '@temporalio/internal-workflow-common';
55-
export * from '@temporalio/internal-workflow-common/lib/errors';
5657

5758
/**
5859
* Throw this error from an Activity in order to make the Worker forget about this Activity.

packages/create-project/src/helpers/samples.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,13 @@ export async function checkForPackageJson({ username, name, branch, filePath }:
7676

7777
const fullUrl = contentsUrl + packagePath + `?ref=${branch}`;
7878

79-
if (!(await isUrlOk(fullUrl))) {
79+
try {
80+
const response = await got.head(fullUrl);
81+
if (response.statusCode !== 200) {
82+
throw response;
83+
}
84+
} catch (e) {
85+
console.error(e);
8086
throw new Error(
8187
`Could not locate a package.json at ${chalk.red(
8288
`"${fullUrl}"`

packages/docs/docusaurus.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,25 @@ module.exports = {
4040
{
4141
items: [
4242
{
43-
label: 'NPM',
43+
label: 'SDK Docs',
44+
href: 'https://docs.temporal.io/typescript/introduction/',
45+
},
46+
{
47+
label: 'npm',
4448
href: 'https://www.npmjs.com/package/temporalio',
4549
},
4650
{
4751
label: 'Support Forum',
4852
href: 'https://community.temporal.io/',
4953
},
5054
{
51-
label: 'Public Slack',
52-
href: 'https://join.slack.com/t/temporalio/shared_invite/zt-onhti57l-J0bl~Tr7MqSUnIc1upjRkw',
53-
},
54-
{
55-
label: 'Temporal Careers',
56-
href: 'https://temporal.io/careers',
55+
label: 'Community Slack',
56+
href: 'https://temporal.io/slack',
5757
},
5858
],
5959
},
6060
{
6161
items: [
62-
{
63-
label: 'Temporal Documentation',
64-
to: 'https://docs.temporal.io',
65-
},
6662
{
6763
label: 'GitHub',
6864
href: 'https://github.com/temporalio/sdk-typescript',
@@ -75,6 +71,10 @@ module.exports = {
7571
label: 'YouTube',
7672
href: 'https://www.youtube.com/channel/UCGovZyy8OfFPNlNV0i1fI1g',
7773
},
74+
{
75+
label: 'Temporal Careers',
76+
href: 'https://temporal.io/careers',
77+
},
7878
],
7979
},
8080
],

packages/worker/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ export {
2121
CompiledWorkerOptions,
2222
WorkerOptions,
2323
WorkflowBundleOption,
24+
WorkflowBundlePathWithSourceMap,
2425
appendDefaultInterceptors,
2526
defaultSinks,
27+
ReplayWorkerOptions,
2628
} from './worker-options';
2729
export { ActivityInboundLogInterceptor, activityLogAttributes } from './activity-log-interceptor';
2830
export { WorkflowInboundLogInterceptor, workflowLogAttributes } from './workflow-log-interceptor';

0 commit comments

Comments
 (0)