nightingale-types 14.2.1 → 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 CHANGED
@@ -3,6 +3,33 @@
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
+
19
+ ## [15.0.0](https://github.com/christophehurpeau/nightingale/compare/v14.2.1...v15.0.0) (2023-12-25)
20
+
21
+
22
+ ### ⚠ BREAKING CHANGES
23
+
24
+ * update babel and drop browser modern version
25
+
26
+ ### Features
27
+
28
+ * update babel and drop browser modern version ([5c76abc](https://github.com/christophehurpeau/nightingale/commit/5c76abc8bfb595a617fc4c8b795dae7e674ea664))
29
+
30
+ Version bump for dependency: nightingale-levels
31
+
32
+
6
33
  ## [14.2.1](https://github.com/christophehurpeau/nightingale/compare/v14.2.0...v14.2.1) (2023-11-05)
7
34
 
8
35
  Note: no notable changes
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
- <h3 align="center">
1
+ <h1 align="center">
2
2
  nightingale-types
3
- </h3>
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 'nightingale-types';
25
+ import type { Level } from "nightingale-types";
26
26
  ```
@@ -1,5 +1,5 @@
1
- import type { Level } from 'nightingale-levels';
2
- export { Level } from 'nightingale-levels';
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-node18.mjs.map
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": "14.2.1",
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.12.0"
18
+ "node": ">=20.9.0"
19
19
  },
20
- "browserslist": {
21
- "production": [
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,17 +27,13 @@
35
27
  ".": {
36
28
  "types": "./dist/definitions/index.d.ts",
37
29
  "node": {
38
- "import": "./dist/index-node18.mjs"
30
+ "import": "./dist/index-node20.mjs"
39
31
  },
40
32
  "browser": {
41
- "browser:modern": {
42
- "import": "./dist/index-browsermodern.es.js"
43
- },
44
33
  "import": "./dist/index-browser.es.js"
45
34
  }
46
35
  }
47
36
  },
48
- "sideEffects": false,
49
37
  "files": [
50
38
  "src",
51
39
  "dist"
@@ -56,35 +44,41 @@
56
44
  "clean": "yarn clean:build",
57
45
  "clean:build": "pob-babel-clean-out dist",
58
46
  "lint": "yarn run lint:eslint",
59
- "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-types",
47
+ "lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-types",
60
48
  "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
61
49
  },
62
- "prettier": "@pob/root/prettier-config",
50
+ "browserslist": {
51
+ "production": [
52
+ "defaults",
53
+ "> 0.2%",
54
+ "not ie < 12",
55
+ "not safari < 10",
56
+ "not ios_saf < 10"
57
+ ]
58
+ },
63
59
  "pob": {
64
- "babelEnvs": [
60
+ "bundler": "rollup-babel",
61
+ "entries": [
62
+ "index"
63
+ ],
64
+ "envs": [
65
65
  {
66
66
  "target": "node",
67
- "version": "18"
68
- },
69
- {
70
- "target": "browser",
71
- "version": "modern"
67
+ "version": "20"
72
68
  },
73
69
  {
74
70
  "target": "browser"
75
71
  }
76
- ],
77
- "entries": [
78
- "index"
79
72
  ]
80
73
  },
74
+ "prettier": "@pob/root/prettier-config",
81
75
  "dependencies": {
82
- "nightingale-levels": "14.2.1"
76
+ "nightingale-levels": "16.0.0"
83
77
  },
84
78
  "devDependencies": {
85
- "@babel/core": "7.23.2",
86
- "@babel/preset-env": "7.23.2",
87
- "pob-babel": "36.6.1",
88
- "typescript": "5.2.2"
79
+ "@babel/core": "7.26.10",
80
+ "@babel/preset-env": "7.26.9",
81
+ "pob-babel": "43.4.0",
82
+ "typescript": "5.8.2"
89
83
  }
90
84
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { Level } from 'nightingale-levels';
1
+ import type { Level } from "nightingale-levels";
2
2
 
3
- export { Level } from 'nightingale-levels';
3
+ export { Level } from "nightingale-levels";
4
4
 
5
5
  export type Styles = string[] | undefined;
6
6
 
@@ -1,2 +0,0 @@
1
- export { Level } from 'nightingale-levels';
2
- //# sourceMappingURL=index-browsermodern.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-node18.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -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
- }