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