@verdaccio/logger 6.0.0-6-next.44 → 7.0.0-next-7.7

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
@@ -1,5 +1,229 @@
1
1
  # @verdaccio/logger
2
2
 
3
+ ## 7.0.0-next-7.7
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/logger-commons@7.0.0-next-7.7
8
+
9
+ ## 7.0.0-next.6
10
+
11
+ ### Patch Changes
12
+
13
+ - @verdaccio/logger-commons@7.0.0-next.6
14
+
15
+ ## 7.0.0-next.5
16
+
17
+ ### Patch Changes
18
+
19
+ - @verdaccio/logger-commons@7.0.0-next.5
20
+
21
+ ## 7.0.0-next.4
22
+
23
+ ### Patch Changes
24
+
25
+ - @verdaccio/logger-commons@7.0.0-next.4
26
+
27
+ ## 7.0.0-next.3
28
+
29
+ ### Major Changes
30
+
31
+ - e7ebccb61: update major dependencies, remove old nodejs support
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [daceb6d87]
36
+ - Updated dependencies [e7ebccb61]
37
+ - @verdaccio/logger-commons@7.0.0-next.3
38
+
39
+ ## 7.0.0-next.2
40
+
41
+ ### Patch Changes
42
+
43
+ - @verdaccio/logger-commons@7.0.0-next.2
44
+
45
+ ## 7.0.0-next.1
46
+
47
+ ### Patch Changes
48
+
49
+ - @verdaccio/logger-commons@7.0.0-next.1
50
+
51
+ ## 7.0.0-next.0
52
+
53
+ ### Major Changes
54
+
55
+ - feat!: bump to v7
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies
60
+ - @verdaccio/logger-commons@7.0.0-next.0
61
+
62
+ ## 6.0.0
63
+
64
+ ### Major Changes
65
+
66
+ - 292c0a37f: feat!: replace deprecated request dependency by got
67
+
68
+ This is a big refactoring of the core, fetching dependencies, improve code, more tests and better stability. This is essential for the next release, will take some time but would allow modularize more the core.
69
+
70
+ ## Notes
71
+
72
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
73
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
74
+ - Refactor with promises instead callback wherever is possible
75
+ - ~Document the API~
76
+ - Improve testing, integration tests
77
+ - Bugfix
78
+ - Clean up old validations
79
+ - Improve performance
80
+
81
+ ## 💥 Breaking changes
82
+
83
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
84
+ - Write Tarball, Read Tarball methods parameters change, a new set of options like `AbortController` signals are being provided to the `addAbortSignal` can be internally used with Streams when a request is aborted. eg: `addAbortSignal(signal, fs.createReadStream(pathName));`
85
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
86
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
87
+
88
+ - a3a209b5e: feat: migrate to pino.js 8
89
+ - 794af76c5: Remove Node 12 support
90
+
91
+ - We need move to the new `undici` and does not support Node.js 12
92
+
93
+ - 10aeb4f13: feat!: experiments config renamed to flags
94
+
95
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
96
+
97
+ ```js
98
+ flags: token: false;
99
+ search: false;
100
+ ```
101
+
102
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
103
+ - Refactor `config` module, better types and utilities
104
+
105
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
106
+
107
+ - Introduce environment variables for legacy tokens
108
+
109
+ ### Code Improvements
110
+
111
+ - Add debug library for improve developer experience
112
+
113
+ ### Breaking change
114
+
115
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
116
+ - The secret key must have 32 characters long.
117
+
118
+ ### New environment variables
119
+
120
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
121
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
122
+
123
+ - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
124
+
125
+ ### 💥 Breaking change
126
+
127
+ This is valid
128
+
129
+ ```yaml
130
+ log: { type: stdout, format: pretty, level: http }
131
+ ```
132
+
133
+ This is invalid
134
+
135
+ ```yaml
136
+ logs: { type: stdout, format: pretty, level: http }
137
+ ```
138
+
139
+ or
140
+
141
+ ```yaml
142
+ logs:
143
+ - [{ type: stdout, format: pretty, level: http }]
144
+ ```
145
+
146
+ - b3e8438f6: logging prettifier only in development mode
147
+
148
+ - Verdaccio prettify `@verdaccio/logger-prettify` the logging which looks beautiful. But there are scenarios which does not make sense in production. This feature enables disable by default the prettifies if production `NODE_ENV` is enabled.
149
+ - Updates pino.js to `^6.7.0`.
150
+ - Suppress the warning when prettifier is enabled `suppressFlushSyncWarning`
151
+
152
+ - 730b5d8cc: feat: upgrade to pino v7
153
+ - 8f43bf17d: feat: node api new structure based on promise
154
+
155
+ ```js
156
+ import { runServer } from "@verdaccio/node-api";
157
+ // or
158
+ import { runServer } from "verdaccio";
159
+
160
+ const app = await runServer(); // default configuration
161
+ const app = await runServer("./config/config.yaml");
162
+ const app = await runServer({ configuration });
163
+ app.listen(4000, (event) => {
164
+ // do something
165
+ });
166
+ ```
167
+
168
+ ### Breaking Change
169
+
170
+ If you are using the node-api, the new structure is Promise based and less arguments.
171
+
172
+ ### Minor Changes
173
+
174
+ - ef88da3b4: feat: improve support for fs promises older nodejs
175
+ - 631abe1ac: feat: refactor logger
176
+ - b61f762d6: feat: add server rate limit protection to all request
177
+
178
+ To modify custom values, use the server settings property.
179
+
180
+ ```markdown
181
+ server:
182
+
183
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
184
+
185
+ rateLimit:
186
+ windowMs: 1000
187
+ max: 10000
188
+ ```
189
+
190
+ The values are intended to be high, if you want to improve security of your server consider
191
+ using different values.
192
+
193
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
194
+ - aa763baec: feat: add typescript project references settings
195
+
196
+ Reading https://ebaytech.berlin/optimizing-multi-package-apps-with-typescript-project-references-d5c57a3b4440 I realized I can use project references to solve the issue to pre-compile modules on develop mode.
197
+
198
+ It allows to navigate (IDE) trough the packages without need compile the packages.
199
+
200
+ Add two `tsconfig`, one using the previous existing configuration that is able to produce declaration files (`tsconfig.build`) and a new one `tsconfig` which is enables [_projects references_](https://www.typescriptlang.org/docs/handbook/project-references.html).
201
+
202
+ - 6c1eb021b: feat: use warning codes for deprecation warnings
203
+
204
+ ### Patch Changes
205
+
206
+ - e75c0a3b9: hydrate template placeholders in log messages when format is set to 'json'
207
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
208
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
209
+ - 34f0f1101: Enable prerelease mode with **changesets**
210
+ - b78f35257: Fix re-opening log files using SIGUSR2
211
+ - 2c594910d: do not show deprecation warning on default logger config
212
+ - 65f88b826: bump logger packages
213
+ - 68ea21214: ESLint Warnings Fixed
214
+
215
+ Related to issue #1461
216
+
217
+ - max-len: most of the sensible max-len errors are fixed
218
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
219
+ - @typescript-eslint/no-unused-vars: same as above
220
+
221
+ - Updated dependencies [631abe1ac]
222
+ - Updated dependencies [84b2dffdb]
223
+ - Updated dependencies [65f88b826]
224
+ - Updated dependencies [4a33e269b]
225
+ - @verdaccio/logger-commons@6.0.0
226
+
3
227
  ## 6.0.0-6-next.44
4
228
 
5
229
  ### Patch Changes
@@ -346,14 +570,14 @@
346
570
  - 5c5057fc: feat: node api new structure based on promise
347
571
 
348
572
  ```js
349
- import { runServer } from '@verdaccio/node-api';
573
+ import { runServer } from "@verdaccio/node-api";
350
574
  // or
351
- import { runServer } from 'verdaccio';
575
+ import { runServer } from "verdaccio";
352
576
 
353
577
  const app = await runServer(); // default configuration
354
- const app = await runServer('./config/config.yaml');
578
+ const app = await runServer("./config/config.yaml");
355
579
  const app = await runServer({ configuration });
356
- app.listen(4000, event => {
580
+ app.listen(4000, (event) => {
357
581
  // do something
358
582
  });
359
583
  ```
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Verdaccio contributors
3
+ Copyright (c) 2024 Verdaccio contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/build/index.js CHANGED
@@ -15,6 +15,5 @@ function setup(options) {
15
15
  exports.logger = logger = (0, _loggerCommons.prepareSetup)(options, _pino.default);
16
16
  return logger;
17
17
  }
18
- let logger;
19
- exports.logger = logger;
18
+ let logger = exports.logger = void 0;
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_pino","_interopRequireDefault","require","_loggerCommons","obj","__esModule","default","setup","options","logger","exports","prepareSetup","pino"],"sources":["../src/index.ts"],"sourcesContent":["import pino from 'pino';\n\nimport { prepareSetup } from '@verdaccio/logger-commons';\nimport { Logger, LoggerConfigItem } from '@verdaccio/types';\n\nexport function setup(options: LoggerConfigItem) {\n if (typeof logger !== 'undefined') {\n return logger;\n }\n\n logger = prepareSetup(options, pino);\n return logger;\n}\n\nexport let logger: Logger;\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAAyD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGlD,SAASG,KAAKA,CAACC,OAAyB,EAAE;EAC/C,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IACjC,OAAOA,MAAM;EACf;EAEAC,OAAA,CAAAD,MAAA,GAAAA,MAAM,GAAG,IAAAE,2BAAY,EAACH,OAAO,EAAEI,aAAI,CAAC;EACpC,OAAOH,MAAM;AACf;AAEO,IAAIA,MAAc;AAACC,OAAA,CAAAD,MAAA,GAAAA,MAAA"}
1
+ {"version":3,"file":"index.js","names":["_pino","_interopRequireDefault","require","_loggerCommons","obj","__esModule","default","setup","options","logger","exports","prepareSetup","pino"],"sources":["../src/index.ts"],"sourcesContent":["import pino from 'pino';\n\nimport { prepareSetup } from '@verdaccio/logger-commons';\nimport { Logger, LoggerConfigItem } from '@verdaccio/types';\n\nexport function setup(options: LoggerConfigItem) {\n if (typeof logger !== 'undefined') {\n return logger;\n }\n\n logger = prepareSetup(options, pino);\n return logger;\n}\n\nexport let logger: Logger;\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,cAAA,GAAAD,OAAA;AAAyD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAGlD,SAASG,KAAKA,CAACC,OAAyB,EAAE;EAC/C,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;IACjC,OAAOA,MAAM;EACf;EAEAC,OAAA,CAAAD,MAAA,GAAAA,MAAM,GAAG,IAAAE,2BAAY,EAACH,OAAO,EAAEI,aAAI,CAAC;EACpC,OAAOH,MAAM;AACf;AAEO,IAAIA,MAAc,GAAAC,OAAA,CAAAD,MAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdaccio/logger",
3
- "version": "6.0.0-6-next.44",
3
+ "version": "7.0.0-next-7.7",
4
4
  "description": "logger",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,14 +26,14 @@
26
26
  "verdaccio"
27
27
  ],
28
28
  "engines": {
29
- "node": ">=12"
29
+ "node": ">=18"
30
30
  },
31
31
  "dependencies": {
32
- "@verdaccio/logger-commons": "6.0.0-6-next.44",
33
- "pino": "8.14.1"
32
+ "@verdaccio/logger-commons": "7.0.0-next-7.7",
33
+ "pino": "8.17.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@verdaccio/types": "11.0.0-6-next.25"
36
+ "@verdaccio/types": "12.0.0-next.2"
37
37
  },
38
38
  "funding": {
39
39
  "type": "opencollective",