@pgflow/core 0.0.23 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @pgflow/core
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [b362364]
8
+ - @pgflow/dsl@0.1.1
9
+
10
+ ## 0.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 7c40238: fix migration files to not set `search_path`
15
+
16
+ ### Patch Changes
17
+
18
+ - @pgflow/dsl@0.1.0
19
+
3
20
  ## 0.0.23
4
21
 
5
22
  ### Patch Changes
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.23",
3
+ "version": "0.1.1",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,7 +1,6 @@
1
1
  create extension if not exists pgmq version '1.4.4';
2
2
 
3
3
  create schema if not exists pgflow;
4
- set search_path to pgflow;
5
4
 
6
5
  --------------------------------------------------------------------------
7
6
  ------------------ TODO: fix me, UNSECURE --------------------------------
@@ -47,7 +46,7 @@ create table pgflow.flows (
47
46
  opt_max_attempts int not null default 3,
48
47
  opt_base_delay int not null default 1,
49
48
  opt_timeout int not null default 60,
50
- constraint slug_is_valid check (is_valid_slug(flow_slug)),
49
+ constraint slug_is_valid check (pgflow.is_valid_slug(flow_slug)),
51
50
  constraint opt_max_attempts_is_nonnegative check (opt_max_attempts >= 0),
52
51
  constraint opt_base_delay_is_nonnegative check (opt_base_delay >= 0),
53
52
  constraint opt_timeout_is_positive check (opt_timeout > 0)
@@ -55,7 +54,7 @@ create table pgflow.flows (
55
54
 
56
55
  -- Steps table - stores individual steps within flows
57
56
  create table pgflow.steps (
58
- flow_slug text not null references flows (flow_slug),
57
+ flow_slug text not null references pgflow.flows (flow_slug),
59
58
  step_slug text not null,
60
59
  step_type text not null default 'single',
61
60
  deps_count int not null default 0 check (deps_count >= 0),
@@ -63,7 +62,7 @@ create table pgflow.steps (
63
62
  opt_base_delay int,
64
63
  opt_timeout int,
65
64
  primary key (flow_slug, step_slug),
66
- check (is_valid_slug(step_slug)),
65
+ check (pgflow.is_valid_slug(step_slug)),
67
66
  check (step_type in ('single')),
68
67
  constraint opt_max_attempts_is_nonnegative check (opt_max_attempts is null or opt_max_attempts >= 0),
69
68
  constraint opt_base_delay_is_nonnegative check (opt_base_delay is null or opt_base_delay >= 0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.23",
3
+ "version": "0.1.1",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "postgres": "^3.4.5",
27
- "@pgflow/dsl": "0.0.23"
27
+ "@pgflow/dsl": "0.1.1"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public",