nightingale-types 15.0.0 → 16.0.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 +13 -0
- package/README.md +7 -7
- package/dist/definitions/index.d.ts +2 -2
- package/dist/{index-node18.mjs → index-node20.mjs} +1 -1
- package/dist/index-node20.mjs.map +1 -0
- package/package.json +27 -26
- package/src/index.ts +2 -2
- package/dist/index-node18.mjs.map +0 -1
- package/src/.eslintrc.json +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
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
|
+
## [16.0.0](https://github.com/christophehurpeau/nightingale/compare/v15.0.0...v16.0.0) (2025-03-30)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* drop node 18
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* drop node 18 ([1b11a55](https://github.com/christophehurpeau/nightingale/commit/1b11a55dd24c9435be50519a748316079f554414))
|
|
15
|
+
|
|
16
|
+
Version bump for dependency: nightingale-levels
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [15.0.0](https://github.com/christophehurpeau/nightingale/compare/v14.2.1...v15.0.0) (2023-12-25)
|
|
7
20
|
|
|
8
21
|
|
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<
|
|
1
|
+
<h1 align="center">
|
|
2
2
|
nightingale-types
|
|
3
|
-
</
|
|
3
|
+
</h1>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
Nightingale types for typescript
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/v/nightingale-types.svg?style=flat-square"></a>
|
|
11
|
-
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/dw/nightingale-types.svg?style=flat-square"></a>
|
|
12
|
-
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/node/v/nightingale-types.svg?style=flat-square"></a>
|
|
13
|
-
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/types/nightingale-types.svg?style=flat-square"></a>
|
|
10
|
+
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/v/nightingale-types.svg?style=flat-square" alt="npm version"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/dw/nightingale-types.svg?style=flat-square" alt="npm downloads"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/node/v/nightingale-types.svg?style=flat-square" alt="node version"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/nightingale-types"><img src="https://img.shields.io/npm/types/nightingale-types.svg?style=flat-square" alt="types"></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
## Install
|
|
@@ -22,5 +22,5 @@ npm install --save nightingale-types
|
|
|
22
22
|
## Usage
|
|
23
23
|
|
|
24
24
|
```js
|
|
25
|
-
import type { Level } from
|
|
25
|
+
import type { Level } from "nightingale-types";
|
|
26
26
|
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Level } from
|
|
2
|
-
export { Level } from
|
|
1
|
+
import type { Level } from "nightingale-levels";
|
|
2
|
+
export { Level } from "nightingale-levels";
|
|
3
3
|
export type Styles = string[] | undefined;
|
|
4
4
|
export interface Metadata {
|
|
5
5
|
context?: Record<string, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Level } from 'nightingale-levels';
|
|
2
|
-
//# sourceMappingURL=index-
|
|
2
|
+
//# sourceMappingURL=index-node20.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-node20.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nightingale-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "Nightingale types for typescript",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logger"
|
|
@@ -15,18 +15,10 @@
|
|
|
15
15
|
"homepage": "https://github.com/christophehurpeau/nightingale",
|
|
16
16
|
"type": "module",
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": ">=
|
|
18
|
+
"node": ">=20.9.0"
|
|
19
19
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
"defaults",
|
|
23
|
-
"> 0.2%",
|
|
24
|
-
"not ie < 12",
|
|
25
|
-
"not safari < 10",
|
|
26
|
-
"not ios_saf < 10"
|
|
27
|
-
]
|
|
28
|
-
},
|
|
29
|
-
"main": "./dist/index-node18.mjs",
|
|
20
|
+
"sideEffects": false,
|
|
21
|
+
"main": "./dist/index-node20.mjs",
|
|
30
22
|
"types": "./dist/definitions/index.d.ts",
|
|
31
23
|
"module": "./dist/index-browser.es.js",
|
|
32
24
|
"browser": "./dist/index-browser.es.js",
|
|
@@ -35,14 +27,13 @@
|
|
|
35
27
|
".": {
|
|
36
28
|
"types": "./dist/definitions/index.d.ts",
|
|
37
29
|
"node": {
|
|
38
|
-
"import": "./dist/index-
|
|
30
|
+
"import": "./dist/index-node20.mjs"
|
|
39
31
|
},
|
|
40
32
|
"browser": {
|
|
41
33
|
"import": "./dist/index-browser.es.js"
|
|
42
34
|
}
|
|
43
35
|
}
|
|
44
36
|
},
|
|
45
|
-
"sideEffects": false,
|
|
46
37
|
"files": [
|
|
47
38
|
"src",
|
|
48
39
|
"dist"
|
|
@@ -53,31 +44,41 @@
|
|
|
53
44
|
"clean": "yarn clean:build",
|
|
54
45
|
"clean:build": "pob-babel-clean-out dist",
|
|
55
46
|
"lint": "yarn run lint:eslint",
|
|
56
|
-
"lint:eslint": "yarn ../.. run eslint --
|
|
47
|
+
"lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-types",
|
|
57
48
|
"watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
|
|
58
49
|
},
|
|
59
|
-
"
|
|
50
|
+
"browserslist": {
|
|
51
|
+
"production": [
|
|
52
|
+
"defaults",
|
|
53
|
+
"> 0.2%",
|
|
54
|
+
"not ie < 12",
|
|
55
|
+
"not safari < 10",
|
|
56
|
+
"not ios_saf < 10"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
60
59
|
"pob": {
|
|
61
|
-
"
|
|
60
|
+
"bundler": "rollup-babel",
|
|
61
|
+
"entries": [
|
|
62
|
+
"index"
|
|
63
|
+
],
|
|
64
|
+
"envs": [
|
|
62
65
|
{
|
|
63
66
|
"target": "node",
|
|
64
|
-
"version": "
|
|
67
|
+
"version": "20"
|
|
65
68
|
},
|
|
66
69
|
{
|
|
67
70
|
"target": "browser"
|
|
68
71
|
}
|
|
69
|
-
],
|
|
70
|
-
"entries": [
|
|
71
|
-
"index"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
"prettier": "@pob/root/prettier-config",
|
|
74
75
|
"dependencies": {
|
|
75
|
-
"nightingale-levels": "
|
|
76
|
+
"nightingale-levels": "16.0.0"
|
|
76
77
|
},
|
|
77
78
|
"devDependencies": {
|
|
78
|
-
"@babel/core": "7.
|
|
79
|
-
"@babel/preset-env": "7.
|
|
80
|
-
"pob-babel": "
|
|
81
|
-
"typescript": "5.
|
|
79
|
+
"@babel/core": "7.26.10",
|
|
80
|
+
"@babel/preset-env": "7.26.9",
|
|
81
|
+
"pob-babel": "43.4.0",
|
|
82
|
+
"typescript": "5.8.2"
|
|
82
83
|
}
|
|
83
84
|
}
|
package/src/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-node18.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/src/.eslintrc.json
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"parser": "@typescript-eslint/parser",
|
|
4
|
-
"parserOptions": {
|
|
5
|
-
"project": "packages/nightingale-types/tsconfig.json"
|
|
6
|
-
},
|
|
7
|
-
"plugins": ["@typescript-eslint"],
|
|
8
|
-
"extends": ["@pob/eslint-config-typescript"],
|
|
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
|
-
]
|
|
27
|
-
}
|