nightingale-types 15.0.0 → 17.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,28 @@
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
+ ## [17.0.0](https://github.com/christophehurpeau/nightingale/compare/v16.2.0...v17.0.0) (2025-10-20)
7
+
8
+ ### Features
9
+
10
+ * add export for react-native ([4098304](https://github.com/christophehurpeau/nightingale/commit/4098304ff9b6665930b7316fe05e0baf0b2e3fe5))
11
+
12
+ Version bump for dependency: nightingale-levels
13
+
14
+
15
+ ## [16.0.0](https://github.com/christophehurpeau/nightingale/compare/v15.0.0...v16.0.0) (2025-03-30)
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ * drop node 18
20
+
21
+ ### Features
22
+
23
+ * drop node 18 ([1b11a55](https://github.com/christophehurpeau/nightingale/commit/1b11a55dd24c9435be50519a748316079f554414))
24
+
25
+ Version bump for dependency: nightingale-levels
26
+
27
+
6
28
  ## [15.0.0](https://github.com/christophehurpeau/nightingale/compare/v14.2.1...v15.0.0) (2023-12-25)
7
29
 
8
30
 
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": "15.0.0",
3
+ "version": "17.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.11.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,14 +27,16 @@
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"
31
+ },
32
+ "react-native": {
33
+ "import": "./dist/index-browser.es.js"
39
34
  },
40
35
  "browser": {
41
36
  "import": "./dist/index-browser.es.js"
42
37
  }
43
38
  }
44
39
  },
45
- "sideEffects": false,
46
40
  "files": [
47
41
  "src",
48
42
  "dist"
@@ -51,33 +45,42 @@
51
45
  "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
52
46
  "build:definitions": "tsc -p tsconfig.json",
53
47
  "clean": "yarn clean:build",
54
- "clean:build": "pob-babel-clean-out dist",
48
+ "clean:build": "pob-esbuild-clean-out dist",
55
49
  "lint": "yarn run lint:eslint",
56
- "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-types",
50
+ "lint:eslint": "yarn ../.. run eslint --quiet packages/nightingale-types",
57
51
  "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
58
52
  },
59
- "prettier": "@pob/root/prettier-config",
53
+ "browserslist": {
54
+ "production": [
55
+ "defaults",
56
+ "> 0.2%",
57
+ "not ie < 12",
58
+ "not safari < 10",
59
+ "not ios_saf < 10"
60
+ ]
61
+ },
60
62
  "pob": {
61
- "babelEnvs": [
63
+ "bundler": "rollup-esbuild",
64
+ "entries": [
65
+ "index"
66
+ ],
67
+ "envs": [
62
68
  {
63
69
  "target": "node",
64
- "version": "18"
70
+ "version": "20"
65
71
  },
66
72
  {
67
73
  "target": "browser"
68
74
  }
69
75
  ],
70
- "entries": [
71
- "index"
72
- ]
76
+ "typescript": true
73
77
  },
78
+ "prettier": "@pob/root/prettier-config",
74
79
  "dependencies": {
75
- "nightingale-levels": "15.0.0"
80
+ "nightingale-levels": "17.0.0"
76
81
  },
77
82
  "devDependencies": {
78
- "@babel/core": "7.23.6",
79
- "@babel/preset-env": "7.23.6",
80
- "pob-babel": "38.0.0",
81
- "typescript": "5.3.3"
83
+ "@pob/rollup-esbuild": "6.7.0",
84
+ "typescript": "5.9.2"
82
85
  }
83
86
  }
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 +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
- }