Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: upstash/workflow-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.12
Choose a base ref
...
head repository: upstash/workflow-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.2.13
Choose a head ref
  • 9 commits
  • 31 files changed
  • 1 contributor

Commits on Mar 21, 2025

  1. DX-1691: Add workflow parameter to context.call (#75)

    * feat: add waitForResult parameter to invoke
    
    * fix: return types
    
    * fix: pass workflow to context.call
    
    * fix: fmt
    
    * fix: flaky invoke test
    
    test was checking the result of context.notify in a loop, which resulted in different number of calls. fixed it by waiting for a long while and notifying once.
    
    * fix: timeout issues in test
    
    * ci: fix wrangler deploy
    
    * fix: review
    CahidArda authored Mar 21, 2025
    Configuration menu
    Copy the full SHA
    cb28b8e View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2025

  1. Refactor internal steps, headers and body creation (#87)

    * fix: refactor step submissions
    
    * fix: bump ai dependencies and fix tests
    
    * fix: refactor getHeaders method
    
    * fix: tests
    
    * fix: remove comment
    
    * fix: fmt
    
    * ci: fix wrangler publish
    
    * feat: fix callback-failurecallback headers
    
    handles https://linear.app/upstash/issue/DX-1718/workflow-js-fix-fromcallback-headers
    
    * fix: tests
    
    * fix: review
    
    * fix: rm unused invokeWorkflow
    
    * fix: test
    
    * fix: express dependency
    
    we were getting type errors after @types/express v5.0.1 was released a week ago. Pinning the version of this package in the workflow-js and examples/express to 5.0.0 fixed the issue. But this wasn't a good solution in the long term.
    
    another solution was removing the dependency from examples/express and keeping it in workflow-js. We don't import anything from @types/express but we still need it in our dependencies.
    
    * fix: add debug logs
    CahidArda authored Apr 4, 2025
    Configuration menu
    Copy the full SHA
    f868cf1 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2025

  1. Configuration menu
    Copy the full SHA
    ad2eafc View commit details
    Browse the repository at this point in the history

Commits on Apr 18, 2025

  1. fix: use process.env if context.env isn't defined in hono (#92)

    It looks like context.env is only defined in Cloudflare Workers. https://hono.dev/docs/api/context#env
    
    When the serve method from hono is used in vercel, context.env is undefined which causes an error.
    
    Fixed the issue by checking if context.env is defined and falling back to process.env if it isn't.
    
    Fixes: #91
    CahidArda authored Apr 18, 2025
    Configuration menu
    Copy the full SHA
    83134d6 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2025

  1. Fix: Add warning for non-string step names (#96)

    * fix: only allow string step names
    
    * fix: lint
    
    * fix: use warn instead of throwing in non-string step name
    CahidArda authored May 9, 2025
    Configuration menu
    Copy the full SHA
    9bc874e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    eb64f4b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    038bad4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    481f758 View commit details
    Browse the repository at this point in the history
  5. DX-1829: Add period and rate to flow control and deprecate ratePerSec…

    …ond (#101)
    
    * feat: add flow control
    
    * fix: tests
    
    * fix: fmt
    
    * fix: mock qstash methods of client in test
    CahidArda authored May 9, 2025
    Configuration menu
    Copy the full SHA
    06762fd View commit details
    Browse the repository at this point in the history
Loading