nightingale-app-react-native 12.1.3 → 13.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,39 @@
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
+ # [13.0.0](https://github.com/christophehurpeau/nightingale/compare/v12.1.4...v13.0.0) (2022-11-19)
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * drop node 14 and cjs ([9a8ca06](https://github.com/christophehurpeau/nightingale/commit/9a8ca064449ddc0d69e26543e21c2d522536c50a))
12
+
13
+
14
+ ### Features
15
+
16
+ * build for node 16 ([30ae3e9](https://github.com/christophehurpeau/nightingale/commit/30ae3e9c455dbad793c2f704b9d860069dc80c32))
17
+
18
+
19
+ ### BREAKING CHANGES
20
+
21
+ * dropped node 14 and cjs
22
+ * drop node 14
23
+
24
+
25
+
26
+
27
+
28
+ ## [12.1.4](https://github.com/christophehurpeau/nightingale/compare/v12.1.3...v12.1.4) (2022-02-05)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * cjs build ([2e24ac5](https://github.com/christophehurpeau/nightingale/commit/2e24ac5753ee386c5be9ca56796194ee598f10ff))
34
+
35
+
36
+
37
+
38
+
6
39
  ## [12.1.3](https://github.com/christophehurpeau/nightingale/compare/v12.1.2...v12.1.3) (2022-01-15)
7
40
 
8
41
 
package/README.md CHANGED
@@ -8,6 +8,9 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/v/nightingale-app-react-native.svg?style=flat-square"></a>
11
+ <a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/dw/nightingale-app-react-native.svg?style=flat-square"></a>
12
+ <a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/node/v/nightingale-app-react-native.svg?style=flat-square"></a>
13
+ <a href="https://npmjs.org/package/nightingale-app-react-native"><img src="https://img.shields.io/npm/types/nightingale-app-react-native.svg?style=flat-square"></a>
11
14
  </p>
12
15
 
13
16
  ## Install
File without changes
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,yBAAyB,GAChC,OAAO,qBACgE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;IAOaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;IAEZC,oCAEmB,GAC9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browser.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;IAOaA,SAAS,GAAG,IAAIC,MAAM,CAAC,KAAK,EAAC;AAEnC,IAAMC,oCAEmB,GAC9BC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAGC,qBAAqB,GAAGC,0BAAyB;AAE3EC,SAAS,CACPC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GACjC,EAAE,GACF,CACE;AACEC,EAAAA,OAAO,EAAE,WAAW;EACpBC,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACC,KAAK,CAAC,CAAC;AACjEC,EAAAA,IAAI,EAAE,IAAA;AACR,CAAC,EACD;EACEH,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACG,IAAI,CAAC,CAAA;AACjE,CAAC,CACF,CACN;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;MAOaA,SAAS,GAAG,IAAIC,MAAJ,CAAW,KAAX;MAEZC,oCAEmB,GAC9BC,QAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,qBAAxB,GAAgDC;AAElDC,SAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,KAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;"}
1
+ {"version":3,"file":"index-browsermodern.es.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;MAOaA,SAAS,GAAG,IAAIC,MAAM,CAAC,KAAK,EAAC;AAEnC,MAAMC,oCAEmB,GAC9BC,QAAQ,CAACC,EAAE,KAAK,KAAK,GAAGC,qBAAqB,GAAGC,0BAAyB;AAE3EC,SAAS,CACPC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GACjC,EAAE,GACF,CACE;AACEC,EAAAA,OAAO,EAAE,WAAW;EACpBC,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACC,KAAK,CAAC,CAAC;AACjEC,EAAAA,IAAI,EAAE,IAAA;AACR,CAAC,EACD;EACEH,QAAQ,EAAE,CAAC,IAAIV,oCAAoC,CAACW,KAAK,CAACG,IAAI,CAAC,CAAA;AACjE,CAAC,CACF,CACN;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nightingale-app-react-native",
3
- "version": "12.1.3",
3
+ "version": "13.0.0",
4
4
  "description": "React Native and Expo logger for application",
5
5
  "keywords": [
6
6
  "nightingale",
@@ -17,6 +17,9 @@
17
17
  },
18
18
  "homepage": "https://github.com/christophehurpeau/nightingale",
19
19
  "type": "module",
20
+ "engines": {
21
+ "node": ">=16.0.0"
22
+ },
20
23
  "browserslist": [
21
24
  "defaults",
22
25
  "> 0.2%",
@@ -24,7 +27,7 @@
24
27
  "not safari < 10",
25
28
  "not ios_saf < 10"
26
29
  ],
27
- "types": "./dist/index.d.ts",
30
+ "types": "./dist/definitions/index.d.ts",
28
31
  "module": "./dist/index-browser.es.js",
29
32
  "browser": "./dist/index-browser.es.js",
30
33
  "exports": {
@@ -34,41 +37,29 @@
34
37
  "browser:modern": {
35
38
  "import": "./dist/index-browsermodern.es.js"
36
39
  },
37
- "import": "./dist/index-browser.es.js",
38
- "require": "./dist/index-browser.cjs.js"
40
+ "import": "./dist/index-browser.es.js"
39
41
  }
40
42
  }
41
43
  },
42
- "module:modern-browsers": "./dist/index-browsermodern.es.js",
43
44
  "sideEffects": false,
44
45
  "scripts": {
45
- "build": "pob-build && yarn run build:definitions",
46
- "build:definitions": "tsc -p tsconfig.build.json",
47
- "clean": "rm -Rf dist",
46
+ "build": "yarn clean:build && rollup --config rollup.config.mjs && yarn run build:definitions",
47
+ "build:definitions": "tsc -p",
48
+ "clean": "yarn clean:build",
49
+ "clean:build": "pob-babel-clean-out dist",
48
50
  "lint": "yarn run lint:eslint",
49
- "lint:eslint": "cd ../.. && yarn run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-app-react-native",
50
- "watch": "pob-watch"
51
- },
52
- "prettier": {
53
- "trailingComma": "all",
54
- "singleQuote": true,
55
- "arrowParens": "always"
51
+ "lint:eslint": "yarn ../.. run eslint --report-unused-disable-directives --resolve-plugins-relative-to . --quiet packages/nightingale-app-react-native",
52
+ "watch": "yarn clean:build && rollup --config rollup.config.mjs --watch"
56
53
  },
54
+ "prettier": "@pob/root/prettier-config",
57
55
  "pob": {
58
56
  "babelEnvs": [
59
57
  {
60
58
  "target": "browser",
61
- "version": "modern",
62
- "formats": [
63
- "es"
64
- ]
59
+ "version": "modern"
65
60
  },
66
61
  {
67
- "target": "browser",
68
- "formats": [
69
- "cjs",
70
- "es"
71
- ]
62
+ "target": "browser"
72
63
  }
73
64
  ],
74
65
  "entries": [
@@ -85,17 +76,17 @@
85
76
  }
86
77
  },
87
78
  "dependencies": {
88
- "nightingale": "12.1.3",
89
- "nightingale-browser-console": "12.1.3",
90
- "nightingale-react-native-console": "12.1.3"
79
+ "nightingale": "13.0.0",
80
+ "nightingale-browser-console": "13.0.0",
81
+ "nightingale-react-native-console": "13.0.0"
91
82
  },
92
83
  "devDependencies": {
93
- "@babel/core": "7.16.7",
94
- "@babel/preset-env": "7.16.8",
95
- "@types/react-native": "0.66.12",
84
+ "@babel/core": "7.20.2",
85
+ "@babel/preset-env": "7.20.2",
86
+ "@types/react-native": "0.70.6",
96
87
  "babel-preset-modern-browsers": "15.0.2",
97
- "pob-babel": "29.6.1",
98
- "typescript": "4.5.4"
88
+ "pob-babel": "35.3.0",
89
+ "typescript": "4.9.3"
99
90
  },
100
- "gitHead": "67fdeb8e3c6660b8bfa4eed4b66b2c05876ed9cc"
91
+ "gitHead": "52cf7e3c8762a07891da9dde497ec03298c15654"
101
92
  }
@@ -1,25 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var nightingale = require('nightingale');
6
- var nightingaleBrowserConsole = require('nightingale-browser-console');
7
- var nightingaleReactNativeConsole = require('nightingale-react-native-console');
8
- var reactNative = require('react-native');
9
-
10
- var appLogger = new nightingale.Logger('app');
11
- var ReactNativeConsoleHandlerForPlatform = reactNative.Platform.OS === 'web' ? nightingaleBrowserConsole.BrowserConsoleHandler : nightingaleReactNativeConsole.ReactNativeConsoleHandler;
12
- nightingale.configure(process.env.NODE_ENV === 'production' ? [] : [{
13
- pattern: /^app(:|$)/,
14
- handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.DEBUG)],
15
- stop: true
16
- }, {
17
- handlers: [new ReactNativeConsoleHandlerForPlatform(nightingale.Level.INFO)]
18
- }]);
19
-
20
- exports.Level = nightingale.Level;
21
- exports.addConfig = nightingale.addConfig;
22
- exports.configure = nightingale.configure;
23
- exports.ReactNativeConsoleHandlerForPlatform = ReactNativeConsoleHandlerForPlatform;
24
- exports.appLogger = appLogger;
25
- //# sourceMappingURL=index-browser.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser.cjs.js","sources":["../src/index.ts"],"sourcesContent":["import { Logger, configure, Level } from 'nightingale';\nimport { BrowserConsoleHandler } from 'nightingale-browser-console';\nimport { ReactNativeConsoleHandler } from 'nightingale-react-native-console';\nimport { Platform } from 'react-native';\n\nexport { configure, addConfig, Level } from 'nightingale';\n\nexport const appLogger = new Logger('app');\n\nexport const ReactNativeConsoleHandlerForPlatform:\n | typeof ReactNativeConsoleHandler\n | typeof BrowserConsoleHandler =\n Platform.OS === 'web' ? BrowserConsoleHandler : ReactNativeConsoleHandler;\n\nconfigure(\n process.env.NODE_ENV === 'production'\n ? []\n : [\n {\n pattern: /^app(:|$)/,\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.DEBUG)],\n stop: true,\n },\n {\n handlers: [new ReactNativeConsoleHandlerForPlatform(Level.INFO)],\n },\n ],\n);\n"],"names":["appLogger","Logger","ReactNativeConsoleHandlerForPlatform","Platform","OS","BrowserConsoleHandler","ReactNativeConsoleHandler","configure","process","env","NODE_ENV","pattern","handlers","Level","DEBUG","stop","INFO"],"mappings":";;;;;;;;;IAOaA,SAAS,GAAG,IAAIC,kBAAJ,CAAW,KAAX;IAEZC,oCAEmB,GAC9BC,oBAAQ,CAACC,EAAT,KAAgB,KAAhB,GAAwBC,+CAAxB,GAAgDC;AAElDC,qBAAS,CACPC,OAAO,CAACC,GAAR,CAAYC,QAAZ,KAAyB,YAAzB,GACI,EADJ,GAEI,CACE;AACEC,EAAAA,OAAO,EAAE,WADX;AAEEC,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACC,KAA/C,CAAD,CAFZ;AAGEC,EAAAA,IAAI,EAAE;AAHR,CADF,EAME;AACEH,EAAAA,QAAQ,EAAE,CAAC,IAAIV,oCAAJ,CAAyCW,iBAAK,CAACG,IAA/C,CAAD;AADZ,CANF,CAHG,CAAT;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAoB,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAG7E,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,SAAS,QAAoB,CAAC;AAE3C,eAAO,MAAM,oCAAoC,EAC7C,OAAO,yBAAyB,GAChC,OAAO,qBACgE,CAAC"}
package/rollup.config.mjs DELETED
@@ -1,3 +0,0 @@
1
- import createRollupConfig from 'pob-babel/createRollupConfig.js';
2
-
3
- export default createRollupConfig({});