npm @temporalio/worker 1.3.0

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

Bug Fixes

Features

  • πŸ’₯ Improvements to @temporalio/testing (#865 and #873)

    BREAKING CHANGE: Breaking for the testing package in some of the more advanced and rarely used options:

    • No longer accepting runInNormalTime when waiting for workflow result
    • TestWorkflowEnvironmentOptions is completely redone

    [Given that these were rarely used and the testing package isn't meant for production use, we don't think this change warrants a major version bump.]

    TestWorkflowEnvironment.create is deprecated in favor of:

    Added TestWorkflowEnvironment.currentTimeMs.

  • Various minor features (#865)

    • Add Connection.healthService and generate testservice and health in proto package
    • Updated ci to use sdk-ci namespace for testing with cloud.
    • Use ephemeral server from Core (supports both time skipping and temporalite)
    • Test server is now only downloaded on first use
    • Removed some unused dependencies
    • Refactored core bridge into multiple files
    • Closes #834
    • Closes #844
  • [client] Add a high-level meta Client class (#870)

    We now recommend using this instead of our other clients:

    import { Client } from '@temporalio/client';
    
    const client = new Client(options);
    
    await client.workflow.start();
    await client.activity.heartbeat();
    await client.activity.complete();
  • Add ActivityOptions.allowEagerDispatch (default true) (#873)

  • [testing] Use temporal.download for downloading test server (#864)

  • Add Webpack rule to auto instrument Workflows for code coverage, add augmentWorkerOptions() (#858, thanks to @vkarpov15 πŸ™)

Documentation

  • Improve API reference (#871)
  • Publish unchanged packages (#862)
  • Update nyc-test-coverage README (#866)

Miscellaneous Tasks

  • In-process verdaccio server (#861, thanks to @mjameswh πŸ™)

Don't miss a new worker release

NewReleases is sending notifications on new releases.