Skip to content

Commit

Permalink
feat!: Upgrade to workflow 5.33.1 (#27)
Browse files Browse the repository at this point in the history
* Upgrade to workflow 5.33.0

* Fix package reference

* Use 5.33.1 instead of 5.33.0

This fixes a regression we'd rather not promote.
  • Loading branch information
kenlyon authored Jun 21, 2023
1 parent b88bdec commit af60c84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/templates/activity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { IActivityHandler } from "@vertigis/workflow/runtime";
import type { IActivityHandler } from "@vertigis/workflow";

/** An interface that defines the inputs of the activity. */
interface FooInputs {
Expand Down
5 changes: 1 addition & 4 deletions lib/templates/element.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
import * as React from "react";
import {
FormElementProps,
FormElementRegistration,
} from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";

/**
* The generic type argument provided to `FormElementProps<T>` controls the type
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"devDependencies": {
"@types/jest": "^26.0.24",
"@types/node": "^16.11.32",
"@vertigis/workflow": "^5.32.1",
"@vertigis/workflow": "^5.33.1",
"conventional-changelog-conventionalcommits": "^4.5.0",
"cross-env": "^7.0.3",
"execa": "^5.0.0",
Expand Down
10 changes: 5 additions & 5 deletions test/unit/compilerUtils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ describe("getProjectMetadata", () => {
describe("elements", () => {
it("passes basic sanity", () => {
const activitySource = `
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
import React from "react";
interface Props extends FormElementProps<string> {
Expand Down Expand Up @@ -677,7 +677,7 @@ describe("getProjectMetadata", () => {

it("includes elements with basic props interface", () => {
const activitySource = `
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
import React from "react";
interface Props extends FormElementProps<string> {}
Expand Down Expand Up @@ -718,7 +718,7 @@ describe("getProjectMetadata", () => {

it("throws error for invalid `component` value", () => {
const activitySource = `
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
const Foo = 42;
Expand All @@ -740,7 +740,7 @@ describe("getProjectMetadata", () => {

it("throws error for shorthand `id` expression", () => {
const activitySource = `
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
const Foo = () => null;
Expand All @@ -764,7 +764,7 @@ describe("getProjectMetadata", () => {

it("throws error for incorrect type of `id` value", () => {
const activitySource = `
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow/runtime";
import { FormElementProps, FormElementRegistration } from "@vertigis/workflow";
const Foo = () => null;
Expand Down

0 comments on commit af60c84

Please sign in to comment.