@companion-module/tools 2.0.3 → 2.1.0

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,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.1.0](https://github.com/bitfocus/companion-module-tools/compare/v2.0.4...v2.1.0) (2024-09-23)
4
+
5
+
6
+ ### Features
7
+
8
+ * allow using node22 ([a9bbbaf](https://github.com/bitfocus/companion-module-tools/commit/a9bbbaf84dcf518c5a69ca44f33ca76f63b64a35))
9
+
10
+ ## [2.0.4](https://github.com/bitfocus/companion-module-tools/compare/v2.0.3...v2.0.4) (2024-09-16)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * ensure mjs files are interpreted as esm ([bf0fceb](https://github.com/bitfocus/companion-module-tools/commit/bf0fceb569bd1e193ebe23f95fb27110fb0d3391))
16
+
3
17
  ## [2.0.3](https://github.com/bitfocus/companion-module-tools/compare/v2.0.2...v2.0.3) (2024-09-11)
4
18
 
5
19
 
package/eslint/config.mjs CHANGED
@@ -70,6 +70,12 @@ export async function generateEslintConfig(options = {}) {
70
70
  files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
71
71
  ...(tseslint ? tseslint.configs.disableTypeChecked : {}),
72
72
  },
73
+ {
74
+ files: ['*.mjs'],
75
+ languageOptions: {
76
+ sourceType: 'module',
77
+ },
78
+ },
73
79
  tseslint
74
80
  ? {
75
81
  files: ['**/*.ts', '**/*.cts', '**/*.mts'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@companion-module/tools",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "companion-module-check": "scripts/check.js"
15
15
  },
16
16
  "engines": {
17
- "node": "^18.18"
17
+ "node": "^18.18 || ^22.8"
18
18
  },
19
19
  "files": [
20
20
  "eslint",
@@ -38,7 +38,7 @@
38
38
  "zx": "^8.1.6"
39
39
  },
40
40
  "peerDependencies": {
41
- "@companion-module/base": "^1.7.1",
41
+ "@companion-module/base": "^1.11.0",
42
42
  "eslint": "^9.0.0",
43
43
  "prettier": "^3.0.0",
44
44
  "typescript-eslint": "^8.2.0"
@@ -57,7 +57,7 @@ const manifest = {
57
57
  legacyIds: [...(pkgJson.legacy || [])],
58
58
 
59
59
  runtime: {
60
- type: 'node18',
60
+ type: 'node22',
61
61
  api: 'nodejs-ipc',
62
62
  apiVersion: '0.0.0',
63
63