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

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