nightingale-types 11.7.4 → 12.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/.eslintrc.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "root": true,
3
- "extends": ["@pob/eslint-config/root-commonjs"],
3
+ "extends": ["@pob/eslint-config/root-module"],
4
4
  "ignorePatterns": ["*.d.ts", "/dist"]
5
5
  }
package/CHANGELOG.md CHANGED
@@ -3,6 +3,49 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [12.1.1](https://github.com/christophehurpeau/nightingale/compare/v12.1.0...v12.1.1) (2022-01-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * properly configure package type ([2e0cbf5](https://github.com/christophehurpeau/nightingale/commit/2e0cbf555bd3b9fa3c3851025452937f64408aa8))
12
+
13
+
14
+
15
+
16
+
17
+ # [12.1.0](https://github.com/christophehurpeau/nightingale/compare/v12.0.1...v12.1.0) (2021-12-15)
18
+
19
+ **Note:** Version bump only for package nightingale-types
20
+
21
+
22
+
23
+
24
+
25
+ ## [12.0.1](https://github.com/christophehurpeau/nightingale/compare/v12.0.0...v12.0.1) (2021-12-12)
26
+
27
+ **Note:** Version bump only for package nightingale-types
28
+
29
+
30
+
31
+
32
+
33
+ # [12.0.0](https://github.com/christophehurpeau/nightingale/compare/v11.9.0...v12.0.0) (2021-12-11)
34
+
35
+
36
+ ### Build System
37
+
38
+ * node 14 and remove dev builds ([432ecd1](https://github.com/christophehurpeau/nightingale/commit/432ecd1faafd0419f57dea00fce560e4cccc207f))
39
+
40
+
41
+ ### BREAKING CHANGES
42
+
43
+ * requires node 14
44
+
45
+
46
+
47
+
48
+
6
49
  ## [11.7.4](https://github.com/christophehurpeau/nightingale/compare/v11.7.3...v11.7.4) (2021-11-27)
7
50
 
8
51
 
@@ -7,4 +7,4 @@ const nightingaleLevels = require('nightingale-levels');
7
7
 
8
8
 
9
9
  exports.Level = nightingaleLevels.Level;
10
- //# sourceMappingURL=index-node12.cjs.js.map
10
+ //# sourceMappingURL=index-node14.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-node14.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +1,2 @@
1
1
  export { Level } from 'nightingale-levels';
2
- //# sourceMappingURL=index-node12.mjs.map
2
+ //# sourceMappingURL=index-node14.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-node14.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-types",
3
- "version": "11.7.4",
3
+ "version": "12.1.1",
4
4
  "description": "Nightingale types for typescript",
5
5
  "keywords": [
6
6
  "logger"
@@ -13,9 +13,9 @@
13
13
  "directory": "packages/nightingale-types"
14
14
  },
15
15
  "homepage": "https://github.com/christophehurpeau/nightingale",
16
- "type": "commonjs",
16
+ "type": "module",
17
17
  "engines": {
18
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
18
+ "node": "^14.13.1 || >=16.0.0"
19
19
  },
20
20
  "browserslist": [
21
21
  "defaults",
@@ -24,7 +24,7 @@
24
24
  "not safari < 10",
25
25
  "not ios_saf < 10"
26
26
  ],
27
- "main": "./dist/index-node12.cjs.js",
27
+ "main": "./dist/index-node14.cjs.js",
28
28
  "types": "./dist/index.d.ts",
29
29
  "module": "./dist/index-browser.es.js",
30
30
  "browser": "./dist/index-browser.es.js",
@@ -32,39 +32,25 @@
32
32
  "./package.json": "./package.json",
33
33
  ".": {
34
34
  "node": {
35
- "development": {
36
- "import": "./dist/index-node12-dev.mjs",
37
- "require": "./dist/index-node12-dev.cjs.js"
38
- },
39
- "import": "./dist/index-node12.mjs",
40
- "require": "./dist/index-node12.cjs.js"
35
+ "import": "./dist/index-node14.mjs",
36
+ "require": "./dist/index-node14.cjs.js"
41
37
  },
42
38
  "browser": {
43
39
  "browser:modern": {
44
- "development": {
45
- "import": "./dist/index-browsermodern-dev.es.js"
46
- },
47
40
  "import": "./dist/index-browsermodern.es.js"
48
41
  },
49
- "development": {
50
- "import": "./dist/index-browser-dev.es.js",
51
- "require": "./dist/index-browser-dev.cjs.js"
52
- },
53
42
  "import": "./dist/index-browser.es.js",
54
43
  "require": "./dist/index-browser.cjs.js"
55
44
  }
56
45
  }
57
46
  },
58
- "module:node": "./dist/index-node12.mjs",
59
- "module:node-dev": "./dist/index-node12-dev.mjs",
60
- "module:browser": "./dist/index-browser.es.js",
61
- "module:browser-dev": "./dist/index-browser-dev.es.js",
47
+ "module:node": "./dist/index-node14.mjs",
62
48
  "module:modern-browsers": "./dist/index-browsermodern.es.js",
63
- "module:modern-browsers-dev": "./dist/index-browsermodern-dev.es.js",
64
49
  "sideEffects": false,
65
50
  "scripts": {
66
51
  "build": "pob-build && yarn run build:definitions",
67
52
  "build:definitions": "tsc -p tsconfig.build.json",
53
+ "clean": "rm -Rf dist",
68
54
  "lint": "yarn run lint:eslint",
69
55
  "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-types",
70
56
  "watch": "pob-watch"
@@ -78,7 +64,7 @@
78
64
  "babelEnvs": [
79
65
  {
80
66
  "target": "node",
81
- "version": "12",
67
+ "version": "14",
82
68
  "formats": [
83
69
  "cjs",
84
70
  "es"
@@ -104,16 +90,14 @@
104
90
  ]
105
91
  },
106
92
  "dependencies": {
107
- "nightingale-levels": "^11.7.2"
93
+ "nightingale-levels": "12.1.1"
108
94
  },
109
95
  "devDependencies": {
110
- "@babel/core": "7.16.0",
111
- "@babel/preset-env": "7.16.4",
112
- "babel-preset-latest-node": "5.5.1",
96
+ "@babel/core": "7.16.7",
97
+ "@babel/preset-env": "7.16.7",
113
98
  "babel-preset-modern-browsers": "15.0.2",
114
- "pob-babel": "28.5.0",
115
- "rollup": "2.60.1",
116
- "typescript": "4.5.2"
99
+ "pob-babel": "29.6.1",
100
+ "typescript": "4.5.4"
117
101
  },
118
- "gitHead": "70f6b4ba634ff778fc94bef7e2455e8b6a7db06a"
102
+ "gitHead": "719598e0a3d508801b18542a1054301200b62ed0"
119
103
  }
@@ -6,5 +6,22 @@
6
6
  },
7
7
  "plugins": ["@typescript-eslint"],
8
8
  "extends": ["@pob/eslint-config-typescript"],
9
- "ignorePatterns": ["*.d.ts"]
9
+ "ignorePatterns": ["*.d.ts"],
10
+ "overrides": [
11
+ {
12
+ "files": ["**/*.test.ts", "__tests__/**/*.ts"],
13
+ "extends": ["@pob/eslint-config-typescript/test"],
14
+ "env": {
15
+ "jest": true
16
+ },
17
+ "rules": {
18
+ "import/no-extraneous-dependencies": [
19
+ "error",
20
+ {
21
+ "devDependencies": true
22
+ }
23
+ ]
24
+ }
25
+ }
26
+ ]
10
27
  }
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nightingaleLevels = require('nightingale-levels');
6
-
7
-
8
-
9
- exports.Level = nightingaleLevels.Level;
10
- //# sourceMappingURL=index-browser-dev.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export { Level } from 'nightingale-levels';
2
- //# sourceMappingURL=index-browser-dev.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser-dev.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export { Level } from 'nightingale-levels';
2
- //# sourceMappingURL=index-browsermodern-dev.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browsermodern-dev.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const nightingaleLevels = require('nightingale-levels');
6
-
7
-
8
-
9
- exports.Level = nightingaleLevels.Level;
10
- //# sourceMappingURL=index-node12-dev.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12-dev.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1,2 +0,0 @@
1
- export { Level } from 'nightingale-levels';
2
- //# sourceMappingURL=index-node12-dev.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12-dev.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node12.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}