@gesslar/actioneer 0.4.0 → 1.0.2

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/package.json CHANGED
@@ -1,7 +1,25 @@
1
1
  {
2
2
  "name": "@gesslar/actioneer",
3
- "version": "0.4.0",
4
- "description": "Ready? Set?? ACTION!! pew! pew! pew!",
3
+ "description": "The best action pipeline thingie this side of Tatooine, or your money back.",
4
+ "author": "gesslar",
5
+ "version": "1.0.2",
6
+ "license": "Unlicense",
7
+ "homepage": "https://github.com/gesslar/toolkit#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/gesslar/actioneer.git"
11
+ },
12
+ "keywords": [
13
+ "actioneer",
14
+ "pipeline",
15
+ "workflow",
16
+ "sabrina",
17
+ "salem",
18
+ "package",
19
+ "composition",
20
+ "lasagna"
21
+ ],
22
+ "packageManager": "pnpm@10.26.2",
5
23
  "main": "./src/index.js",
6
24
  "type": "module",
7
25
  "exports": {
@@ -23,39 +41,18 @@
23
41
  "lint": "eslint src/",
24
42
  "lint:fix": "eslint src/ --fix",
25
43
  "types:build": "tsc -p tsconfig.types.json && eslint --fix \"src/types/**/*.d.ts\"",
26
- "submit": "npm publish --access public --//registry.npmjs.org/:_authToken=\"${NPM_ACCESS_TOKEN}\"",
27
- "update": "npx npm-check-updates -u && npm install",
44
+ "submit": "pnpm publish --access public --//registry.npmjs.org/:_authToken=\"${NPM_ACCESS_TOKEN}\"",
45
+ "update": "pnpm up -L",
28
46
  "test": "node --test tests/unit/*.test.js",
29
47
  "test:unit": "node --test tests/unit/*.test.js",
30
48
  "pr": "gt submit --publish --restack --ai"
31
49
  },
32
- "repository": {
33
- "type": "git",
34
- "url": "git+https://github.com/gesslar/actioneer.git"
50
+ "dependencies": {
51
+ "@gesslar/toolkit": "^3.0.1"
35
52
  },
36
- "keywords": [
37
- "actioneer",
38
- "pipeline",
39
- "workflow",
40
- "sabrina",
41
- "salem",
42
- "package",
43
- "composition",
44
- "lasagna"
45
- ],
46
- "author": "gesslar",
47
- "license": "Unlicense",
48
- "homepage": "https://github.com/gesslar/toolkit#readme",
49
53
  "devDependencies": {
50
- "@stylistic/eslint-plugin": "^5.6.1",
51
- "@types/node": "^25.0.3",
52
- "@typescript-eslint/eslint-plugin": "^8.50.1",
53
- "@typescript-eslint/parser": "^8.50.1",
54
+ "@gesslar/uglier": "^0.0.9",
54
55
  "eslint": "^9.39.2",
55
- "eslint-plugin-jsdoc": "^61.5.0",
56
56
  "typescript": "^5.9.3"
57
- },
58
- "dependencies": {
59
- "@gesslar/toolkit": "^2.7.1"
60
57
  }
61
58
  }
@@ -1,5 +1,5 @@
1
1
  import {setTimeout as timeout} from "timers/promises"
2
- import {Data, FileObject, Sass, Util, Valid} from "@gesslar/toolkit"
2
+ import {Data, FileObject, Sass, Promised, Util, Valid} from "@gesslar/toolkit"
3
3
 
4
4
  /**
5
5
  * @typedef {(message: string, level?: number, ...args: Array<unknown>) => void} DebugFn
@@ -203,7 +203,7 @@ export default class ActionHooks {
203
203
 
204
204
  try {
205
205
  debug("Starting Promise race for hook: %o", 4, hookName)
206
- await Util.race([
206
+ await Promised.race([
207
207
  hookFunction(),
208
208
  expireAsync
209
209
  ])
@@ -1,6 +1,5 @@
1
- import {Data, Sass, Util, Valid} from "@gesslar/toolkit"
1
+ import {Promised, Data, Sass, Valid} from "@gesslar/toolkit"
2
2
 
3
- import ActionBuilder from "./ActionBuilder.js"
4
3
  import {ACTIVITY} from "./Activity.js"
5
4
  import Piper from "./Piper.js"
6
5
 
@@ -143,7 +142,7 @@ export default class ActionRunner extends Piper {
143
142
  settled = await runner.pipe(splitContexts)
144
143
  } else {
145
144
  // For plain functions, process each split context
146
- settled = await Util.settleAll(
145
+ settled = await Promised.settle(
147
146
  splitContexts.map(ctx => this.#execute(activity, ctx))
148
147
  )
149
148
  }
package/src/lib/Piper.js CHANGED
@@ -9,7 +9,7 @@
9
9
  * - Error handling and reporting
10
10
  */
11
11
 
12
- import {Sass, Tantrum, Util} from "@gesslar/toolkit"
12
+ import {Promised, Sass, Tantrum} from "@gesslar/toolkit"
13
13
 
14
14
  export default class Piper {
15
15
  #debug
@@ -108,7 +108,7 @@ export default class Piper {
108
108
  }
109
109
  }
110
110
 
111
- const setupResult = await Util.settleAll(
111
+ const setupResult = await Promised.settle(
112
112
  [...this.#lifeCycle.get("setup")].map(e => e())
113
113
  )
114
114
 
@@ -126,7 +126,7 @@ export default class Piper {
126
126
  await Promise.all(workers)
127
127
  } finally {
128
128
  // Run cleanup hooks
129
- const teardownResult = await Util.settleAll(
129
+ const teardownResult = await Promised.settle(
130
130
  [...this.#lifeCycle.get("teardown")].map(e => e())
131
131
  )
132
132