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

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,235 @@
1
1
  # @verdaccio/logger
2
2
 
3
+ ## 7.0.0-next-7.8
4
+
5
+ ### Patch Changes
6
+
7
+ - @verdaccio/logger-commons@7.0.0-next-7.8
8
+
9
+ ## 7.0.0-next-7.7
10
+
11
+ ### Patch Changes
12
+
13
+ - @verdaccio/logger-commons@7.0.0-next-7.7
14
+
15
+ ## 7.0.0-next.6
16
+
17
+ ### Patch Changes
18
+
19
+ - @verdaccio/logger-commons@7.0.0-next.6
20
+
21
+ ## 7.0.0-next.5
22
+
23
+ ### Patch Changes
24
+
25
+ - @verdaccio/logger-commons@7.0.0-next.5
26
+
27
+ ## 7.0.0-next.4
28
+
29
+ ### Patch Changes
30
+
31
+ - @verdaccio/logger-commons@7.0.0-next.4
32
+
33
+ ## 7.0.0-next.3
34
+
35
+ ### Major Changes
36
+
37
+ - e7ebccb61: update major dependencies, remove old nodejs support
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [daceb6d87]
42
+ - Updated dependencies [e7ebccb61]
43
+ - @verdaccio/logger-commons@7.0.0-next.3
44
+
45
+ ## 7.0.0-next.2
46
+
47
+ ### Patch Changes
48
+
49
+ - @verdaccio/logger-commons@7.0.0-next.2
50
+
51
+ ## 7.0.0-next.1
52
+
53
+ ### Patch Changes
54
+
55
+ - @verdaccio/logger-commons@7.0.0-next.1
56
+
57
+ ## 7.0.0-next.0
58
+
59
+ ### Major Changes
60
+
61
+ - feat!: bump to v7
62
+
63
+ ### Patch Changes
64
+
65
+ - Updated dependencies
66
+ - @verdaccio/logger-commons@7.0.0-next.0
67
+
68
+ ## 6.0.0
69
+
70
+ ### Major Changes
71
+
72
+ - 292c0a37f: feat!: replace deprecated request dependency by got
73
+
74
+ 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.
75
+
76
+ ## Notes
77
+
78
+ - Remove deprecated `request` by other `got`, retry improved, custom Agent ( got does not include it built-in)
79
+ - Remove `async` dependency from storage (used by core) it was linked with proxy somehow safe to remove now
80
+ - Refactor with promises instead callback wherever is possible
81
+ - ~Document the API~
82
+ - Improve testing, integration tests
83
+ - Bugfix
84
+ - Clean up old validations
85
+ - Improve performance
86
+
87
+ ## 💥 Breaking changes
88
+
89
+ - Plugin API methods were callbacks based are returning promises, this will break current storage plugins, check documentation for upgrade.
90
+ - 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));`
91
+ - `@verdaccio/streams` stream abort support is legacy is being deprecated removed
92
+ - Remove AWS and Google Cloud packages for future refactoring [#2574](https://github.com/verdaccio/verdaccio/pull/2574).
93
+
94
+ - a3a209b5e: feat: migrate to pino.js 8
95
+ - 794af76c5: Remove Node 12 support
96
+
97
+ - We need move to the new `undici` and does not support Node.js 12
98
+
99
+ - 10aeb4f13: feat!: experiments config renamed to flags
100
+
101
+ - The `experiments` configuration is renamed to `flags`. The functionality is exactly the same.
102
+
103
+ ```js
104
+ flags: token: false;
105
+ search: false;
106
+ ```
107
+
108
+ - The `self_path` property from the config file is being removed in favor of `config_file` full path.
109
+ - Refactor `config` module, better types and utilities
110
+
111
+ - e367c3f1e: - Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv
112
+
113
+ - Introduce environment variables for legacy tokens
114
+
115
+ ### Code Improvements
116
+
117
+ - Add debug library for improve developer experience
118
+
119
+ ### Breaking change
120
+
121
+ - The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions.
122
+ - The secret key must have 32 characters long.
123
+
124
+ ### New environment variables
125
+
126
+ - `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr`
127
+ - `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory
128
+
129
+ - 82cb0f2bf: feat!: config.logs throw an error, logging config not longer accept array or logs property
130
+
131
+ ### 💥 Breaking change
132
+
133
+ This is valid
134
+
135
+ ```yaml
136
+ log: { type: stdout, format: pretty, level: http }
137
+ ```
138
+
139
+ This is invalid
140
+
141
+ ```yaml
142
+ logs: { type: stdout, format: pretty, level: http }
143
+ ```
144
+
145
+ or
146
+
147
+ ```yaml
148
+ logs:
149
+ - [{ type: stdout, format: pretty, level: http }]
150
+ ```
151
+
152
+ - b3e8438f6: logging prettifier only in development mode
153
+
154
+ - 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.
155
+ - Updates pino.js to `^6.7.0`.
156
+ - Suppress the warning when prettifier is enabled `suppressFlushSyncWarning`
157
+
158
+ - 730b5d8cc: feat: upgrade to pino v7
159
+ - 8f43bf17d: feat: node api new structure based on promise
160
+
161
+ ```js
162
+ import { runServer } from "@verdaccio/node-api";
163
+ // or
164
+ import { runServer } from "verdaccio";
165
+
166
+ const app = await runServer(); // default configuration
167
+ const app = await runServer("./config/config.yaml");
168
+ const app = await runServer({ configuration });
169
+ app.listen(4000, (event) => {
170
+ // do something
171
+ });
172
+ ```
173
+
174
+ ### Breaking Change
175
+
176
+ If you are using the node-api, the new structure is Promise based and less arguments.
177
+
178
+ ### Minor Changes
179
+
180
+ - ef88da3b4: feat: improve support for fs promises older nodejs
181
+ - 631abe1ac: feat: refactor logger
182
+ - b61f762d6: feat: add server rate limit protection to all request
183
+
184
+ To modify custom values, use the server settings property.
185
+
186
+ ```markdown
187
+ server:
188
+
189
+ ## https://www.npmjs.com/package/express-rate-limit#configuration-options
190
+
191
+ rateLimit:
192
+ windowMs: 1000
193
+ max: 10000
194
+ ```
195
+
196
+ The values are intended to be high, if you want to improve security of your server consider
197
+ using different values.
198
+
199
+ - 154b2ecd3: refactor: remove @verdaccio/commons-api in favor @verdaccio/core and remove duplications
200
+ - aa763baec: feat: add typescript project references settings
201
+
202
+ 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.
203
+
204
+ It allows to navigate (IDE) trough the packages without need compile the packages.
205
+
206
+ 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).
207
+
208
+ - 6c1eb021b: feat: use warning codes for deprecation warnings
209
+
210
+ ### Patch Changes
211
+
212
+ - e75c0a3b9: hydrate template placeholders in log messages when format is set to 'json'
213
+ - 351aeeaa8: fix(deps): @verdaccio/utils should be a prod dep of local-storage
214
+ - a610ef26b: chore: add release step to private regisry on merge changeset pr
215
+ - 34f0f1101: Enable prerelease mode with **changesets**
216
+ - b78f35257: Fix re-opening log files using SIGUSR2
217
+ - 2c594910d: do not show deprecation warning on default logger config
218
+ - 65f88b826: bump logger packages
219
+ - 68ea21214: ESLint Warnings Fixed
220
+
221
+ Related to issue #1461
222
+
223
+ - max-len: most of the sensible max-len errors are fixed
224
+ - no-unused-vars: most of these types of errors are fixed by deleting not needed declarations
225
+ - @typescript-eslint/no-unused-vars: same as above
226
+
227
+ - Updated dependencies [631abe1ac]
228
+ - Updated dependencies [84b2dffdb]
229
+ - Updated dependencies [65f88b826]
230
+ - Updated dependencies [4a33e269b]
231
+ - @verdaccio/logger-commons@6.0.0
232
+
3
233
  ## 6.0.0-6-next.44
4
234
 
5
235
  ### Patch Changes
@@ -346,14 +576,14 @@
346
576
  - 5c5057fc: feat: node api new structure based on promise
347
577
 
348
578
  ```js
349
- import { runServer } from '@verdaccio/node-api';
579
+ import { runServer } from "@verdaccio/node-api";
350
580
  // or
351
- import { runServer } from 'verdaccio';
581
+ import { runServer } from "verdaccio";
352
582
 
353
583
  const app = await runServer(); // default configuration
354
- const app = await runServer('./config/config.yaml');
584
+ const app = await runServer("./config/config.yaml");
355
585
  const app = await runServer({ configuration });
356
- app.listen(4000, event => {
586
+ app.listen(4000, (event) => {
357
587
  // do something
358
588
  });
359
589
  ```
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.8",
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.8",
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",