@pikku/schedule 0.12.2 → 0.12.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 0.12.4
2
+
3
+ ### Patch Changes
4
+
5
+ - daec082: Drop Node 22 support — the minimum supported runtime is now Node 24 (LTS).
6
+
7
+ Node 22 deadlocks `pikku dev` at `loadUserBootstrap` (tsx `register()` + `require(esm)` cycle handling on node 22.12+), and Node 20 is already below our floor. The `engines.node` requirement is raised to `>=24` across all packages, matching `.nvmrc` and the CI test matrix. Closes #751.
8
+
9
+ - Updated dependencies [7b17b14]
10
+ - Updated dependencies [daec082]
11
+ - Updated dependencies [e0fd352]
12
+ - @pikku/core@0.12.58
13
+
14
+ ## 0.12.3
15
+
16
+ ### Patch Changes
17
+
18
+ - 41ce2cb: Upgrade to TypeScript 6 and raise the minimum Node.js version to 22.
19
+
20
+ All packages now build against `typescript@^6.0.3` and declare `engines.node >= 22`. Internal tooling (`ts-json-schema-generator`, `zod-to-ts`) was bumped to TypeScript 6-compatible releases.
21
+
22
+ - Updated dependencies [41ce2cb]
23
+ - @pikku/core@0.12.44
24
+
1
25
  ## 0.12.0
2
26
 
3
27
  ## 0.12.2
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@pikku/schedule",
3
- "version": "0.12.2",
3
+ "version": "0.12.4",
4
4
  "author": "yasser.fadl@gmail.com",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",
7
7
  "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
8
9
  "type": "module",
9
10
  "scripts": {
10
11
  "tsc": "tsc",
@@ -13,20 +14,28 @@
13
14
  "release": "npm run build && npm test",
14
15
  "test": "bash run-tests.sh",
15
16
  "test:watch": "bash run-tests.sh --watch",
16
- "test:coverage": "bash run-tests.sh --coverage"
17
+ "test:coverage": "bash run-tests.sh --coverage",
18
+ "prepublishOnly": "yarn build"
17
19
  },
18
20
  "peerDependencies": {
19
- "@pikku/core": "^0.12.2"
21
+ "@pikku/core": "^0.12.58"
20
22
  },
21
23
  "devDependencies": {
22
24
  "@types/node": "^24.11.0",
23
- "typescript": "^5.9"
25
+ "typescript": "^6.0.3"
24
26
  },
25
27
  "engines": {
26
- "node": ">=18"
28
+ "node": ">=24"
27
29
  },
28
30
  "dependencies": {
29
31
  "cron": "^4.4.0",
30
32
  "cron-schedule": "^5.0.4"
33
+ },
34
+ "exports": {
35
+ ".": {
36
+ "types": "./dist/index.d.ts",
37
+ "import": "./dist/index.js",
38
+ "default": "./dist/index.js"
39
+ }
31
40
  }
32
41
  }
package/run-tests.sh CHANGED
@@ -38,16 +38,16 @@ if [ ${#files[@]} -eq 0 ]; then
38
38
  fi
39
39
 
40
40
  # Construct the node command
41
- node_cmd="node --import tsx --test"
41
+ node_cmd=(node --import tsx --test)
42
42
 
43
43
  # Append options based on flags
44
44
  if [ "$watch_mode" = true ]; then
45
- node_cmd="$node_cmd --watch"
45
+ node_cmd+=(--watch)
46
46
  fi
47
47
 
48
48
  if [ "$coverage_mode" = true ]; then
49
- node_cmd="$node_cmd --test-coverage-include=\"src/**/*.{ts,js}\" --test-coverage-exclude=\"**/dist/**\" --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info"
49
+ node_cmd+=(--test-coverage-include="src/**/*.{ts,js}" --test-coverage-exclude="**/dist/**" --experimental-test-coverage --test-reporter=lcov --test-reporter-destination=lcov.info)
50
50
  fi
51
51
 
52
52
  # Execute the node command with the expanded list of files
53
- $node_cmd "${files[@]}"
53
+ "${node_cmd[@]}" "${files[@]}"
@@ -1 +1 @@
1
- {"root":["./src/in-memory-scheduler-service.ts","./src/index.ts"],"version":"5.9.3"}
1
+ {"root":["./src/in-memory-scheduler-service.ts","./src/index.ts"],"version":"6.0.3"}