npm @temporalio/workflow 1.1.0

latest releases: 1.13.0, 1.12.3, 1.12.2...
3 years ago

Bug Fixes

  • 💥 [worker] Remove unnecessary ReplayWorkerOptions (#816)

    BREAKING CHANGE: While this is technically breaking (if you pass options that are irrelevant to replay like maxActivitiesPerSecond, you'll get a compilation error), we decided it did not warrant a major version bump, as it doesn't affect production code (replay is a testing feature) and is only a type change (is caught at compile type by TS users and doesn't affect JS users).

  • Warn instead of throwing when getting workflowBundle with workflowsPath and bundlerOptions (#833)

    ⚠️ NOTE: We now prefer taking workflowBundle over workflowsPath when both are provided, which is the correct behavior and what users should expect.

    We also now warn that workflow interceptors are ignored when using workflowBundle.

  • [workflow] Make breakpoints work inside workflow isolate context (#819)

    ⚠️ NOTE: Bundles created with bundleWorkflowCode should only be used for calling Worker.create when the exact same version of @temporalio/worker is used. (If you don't pin to exact versions in your package.json, then you should use a lockfile, and both the machine that runs bundleWorkflowCode and Worker.create should run npm ci, not npm install.)

    ⚠️ DEPRECATION: sourceMap and sourceMapPath are now deprecated. We've inlined source maps, so now this works:

    const { code } = await bundleWorkflowCode({ workflowsPath });
    const worker = await Worker.create({ workflowBundle: { code }, ...otherOptions });
  • Avoid using dynamic import in @temporalio/testing (#805)

  • [worker] Don't start activity poller if no activities registered (#808)

  • Update proto3-json-serializer to ^1.0.3 (#809)

  • Help protobufjs find long in Yarn3 (#810) (#814)

  • Add @types/long to client (#735)

  • [worker] Improve worker default options heuristics (#802)

  • Use GITHUB_TOKEN in create-project for CI (#721)

Features

  • 💥 [worker] Add webpack configuration, closes #537 (#815)

    This was our most-upvoted feature request! (9 👍's.) See WorkerOptions.bundlerOptions.webpackConfigHook for usage.

    BREAKING CHANGE: If you provide both workflowBundle & workflowsPath or both workflowBundle & bundlerOptions to Worker.create, a ValueError will now be thrown. While this is technically breaking, TODO

  • Add @temporalio/nyc-test-coverage package (#798, thanks to @vkarpov15 🙏)

    This package adds code coverage for Istanbul. It's currently in beta: the API may be unstable as we gather feedback on it from users. To try it out, see this code snippet for current usage.

  • [common] Improve ApplicationFailure arguments; add .create and .fromError (#767)

    See ApplicationFailure.create and ApplicationFailure.fromError

  • Expose additional console methods to workflow context (#831)

    console.[error|warn|info|debug] can now be called from Workflow code, in addition to console.log

Documentation

  • Add package list to README (#803)
  • Add API doc for bundleWorkflowCode, fixes #792 (#793)
  • Surface missing core-bridge exports (#812)
  • Export missing ApplicationFailureOptions (#823)
  • Improve API reference (#826)

Don't miss a new workflow release

NewReleases is sending notifications on new releases.