forked from niki-timofe/verdaccio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge pull request verdaccio#2182 from verdaccio/6.x
build: merge 6.x into master
- Loading branch information
Showing
1,748 changed files
with
232,225 additions
and
61,542 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"presets": [ [ | ||
"@babel/env", | ||
{ | ||
"useBuiltIns": "usage", | ||
"corejs": { | ||
"version": 3, "proposals": true | ||
}, | ||
"targets": { | ||
"node": 12 | ||
} | ||
} | ||
], | ||
"@babel/typescript" | ||
], | ||
"plugins": [ | ||
"babel-plugin-dynamic-import-node", | ||
"@babel/proposal-class-properties", | ||
"@babel/proposal-object-rest-spread", | ||
"@babel/plugin-proposal-optional-chaining", | ||
"@babel/plugin-proposal-nullish-coalescing-operator" | ||
], | ||
"ignore": [ | ||
"**/*.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/master/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
'@verdaccio/local-storage': major | ||
'@verdaccio/url': major | ||
'verdaccio-aws-s3-storage': major | ||
'verdaccio-google-cloud': major | ||
'verdaccio-memory': major | ||
'@verdaccio/store': major | ||
--- | ||
|
||
# async storage plugin bootstrap | ||
|
||
Gives a storage plugin the ability to perform asynchronous tasks on initialization | ||
|
||
## Breaking change | ||
|
||
Plugin must have an init method in which asynchronous tasks can be executed | ||
|
||
```js | ||
public async init(): Promise<void> { | ||
this.data = await this._fetchLocalPackages(); | ||
this._sync(); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "6.x", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
'@verdaccio/api': major | ||
'@verdaccio/auth': major | ||
'@verdaccio/cli': major | ||
'@verdaccio/config': major | ||
'@verdaccio/commons-api': major | ||
'@verdaccio/file-locking': major | ||
'verdaccio-htpasswd': major | ||
'@verdaccio/local-storage': major | ||
'@verdaccio/readme': major | ||
'@verdaccio/streams': major | ||
'@verdaccio/types': major | ||
'@verdaccio/hooks': major | ||
'@verdaccio/loaders': major | ||
'@verdaccio/logger': major | ||
'@verdaccio/logger-prettify': major | ||
'@verdaccio/middleware': major | ||
'@verdaccio/mock': major | ||
'@verdaccio/node-api': major | ||
'@verdaccio/active-directory': major | ||
'verdaccio-audit': major | ||
'verdaccio-auth-memory': major | ||
'verdaccio-aws-s3-storage': major | ||
'verdaccio-google-cloud': major | ||
'verdaccio-memory': major | ||
'@verdaccio/proxy': major | ||
'@verdaccio/server': major | ||
'@verdaccio/store': major | ||
'@verdaccio/dev-types': major | ||
'@verdaccio/utils': major | ||
'verdaccio': major | ||
'@verdaccio/web': major | ||
'@verdaccio/website': major | ||
--- | ||
|
||
feat!: experiments config renamed to flags | ||
|
||
- The `experiments` configuration is renamed to `flags`. The functionality is exactly the same. | ||
|
||
```js | ||
flags: token: false; | ||
search: false; | ||
``` | ||
|
||
- The `self_path` property from the config file is being removed in favor of `config_file` full path. | ||
- Refactor `config` module, better types and utilities |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@verdaccio/middleware': patch | ||
'@verdaccio/web': patch | ||
--- | ||
|
||
Remove @ts-ignore and any in packages/web/src/endpoint/package.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
'@verdaccio/api': major | ||
'@verdaccio/auth': major | ||
'@verdaccio/cli': major | ||
'@verdaccio/config': major | ||
'@verdaccio/commons-api': major | ||
'@verdaccio/file-locking': major | ||
'verdaccio-htpasswd': major | ||
'@verdaccio/local-storage': major | ||
'@verdaccio/readme': major | ||
'@verdaccio/streams': major | ||
'@verdaccio/types': major | ||
'@verdaccio/hooks': major | ||
'@verdaccio/loaders': major | ||
'@verdaccio/logger': major | ||
'@verdaccio/logger-prettify': major | ||
'@verdaccio/middleware': major | ||
'@verdaccio/mock': major | ||
'@verdaccio/node-api': major | ||
'@verdaccio/proxy': major | ||
'@verdaccio/server': major | ||
'@verdaccio/store': major | ||
'@verdaccio/dev-types': major | ||
'@verdaccio/utils': major | ||
'verdaccio': major | ||
'@verdaccio/web': major | ||
--- | ||
|
||
- Replace signature handler for legacy tokens by removing deprecated crypto.createDecipher by createCipheriv | ||
- Introduce environment variables for legacy tokens | ||
|
||
### Code Improvements | ||
|
||
- Add debug library for improve developer experience | ||
|
||
### Breaking change | ||
|
||
- The new signature invalidates all previous tokens generated by Verdaccio 4 or previous versions. | ||
- The secret key must have 32 characters long. | ||
|
||
### New environment variables | ||
|
||
- `VERDACCIO_LEGACY_ALGORITHM`: Allows to define the specific algorithm for the token signature which by default is `aes-256-ctr` | ||
- `VERDACCIO_LEGACY_ENCRYPTION_KEY`: By default, the token stores in the database, but using this variable allows to get it from memory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
'@verdaccio/local-storage': patch | ||
'@verdaccio/ui-theme': patch | ||
'@verdaccio/server': patch | ||
'@verdaccio/api': patch | ||
'@verdaccio/auth': patch | ||
'@verdaccio/cli': patch | ||
'@verdaccio/config': patch | ||
'@verdaccio/commons-api': patch | ||
'@verdaccio/file-locking': patch | ||
'verdaccio-htpasswd': patch | ||
'@verdaccio/readme': patch | ||
'@verdaccio/streams': patch | ||
'@verdaccio/types': patch | ||
'@verdaccio/hooks': patch | ||
'@verdaccio/loaders': patch | ||
'@verdaccio/logger': patch | ||
'@verdaccio/logger-prettify': patch | ||
'@verdaccio/middleware': patch | ||
'@verdaccio/mock': patch | ||
'@verdaccio/node-api': patch | ||
'@verdaccio/active-directory': patch | ||
'verdaccio-audit': patch | ||
'verdaccio-auth-memory': patch | ||
'verdaccio-aws-s3-storage': patch | ||
'verdaccio-google-cloud': patch | ||
'verdaccio-memory': patch | ||
'@verdaccio/proxy': patch | ||
'@verdaccio/store': patch | ||
'@verdaccio/dev-types': patch | ||
'@verdaccio/utils': patch | ||
'verdaccio': patch | ||
'@verdaccio/web': patch | ||
'@verdaccio/e2e-cli': patch | ||
'@verdaccio/e2e-ui': patch | ||
'@verdaccio/website': patch | ||
--- | ||
|
||
chore: add release step to private regisry on merge changeset pr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
'@verdaccio/api': minor | ||
'verdaccio-htpasswd': minor | ||
'@verdaccio/local-storage': minor | ||
--- | ||
|
||
feat: remove level dependency by lowdb for npm token cli as storage | ||
|
||
### new npm token database | ||
|
||
There will be a new database located in your storage named `.token-db.json` which | ||
will store all references to created tokens, **it does not store tokens**, just | ||
mask of them and related metadata required to reference them. | ||
|
||
#### Breaking change | ||
|
||
If you were relying on `npm token` experiment. This PR will replace the | ||
used database (level) by a json plain based one (lowbd) which does not | ||
require Node.js C++ compilation step and has less dependencies. Since was | ||
a experiment there is no migration step. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@verdaccio/hooks': patch | ||
'@verdaccio/proxy': patch | ||
--- | ||
|
||
refactor: migrate request to node-fetch at hooks package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@verdaccio/ui-theme': minor | ||
'verdaccio': minor | ||
--- | ||
|
||
feat: ui theme plugin part of the application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
'@verdaccio/api': minor | ||
'@verdaccio/auth': minor | ||
'@verdaccio/cli': minor | ||
'@verdaccio/config': minor | ||
'@verdaccio/commons-api': minor | ||
'@verdaccio/file-locking': minor | ||
'verdaccio-htpasswd': minor | ||
'@verdaccio/local-storage': minor | ||
'@verdaccio/readme': minor | ||
'@verdaccio/streams': minor | ||
'@verdaccio/types': minor | ||
'@verdaccio/hooks': minor | ||
'@verdaccio/loaders': minor | ||
'@verdaccio/logger': minor | ||
'@verdaccio/logger-prettify': minor | ||
'@verdaccio/middleware': minor | ||
'@verdaccio/mock': minor | ||
'@verdaccio/node-api': minor | ||
'@verdaccio/active-directory': minor | ||
'verdaccio-audit': minor | ||
'verdaccio-auth-memory': minor | ||
'verdaccio-aws-s3-storage': minor | ||
'verdaccio-google-cloud': minor | ||
'verdaccio-memory': minor | ||
'@verdaccio/ui-theme': minor | ||
'@verdaccio/proxy': minor | ||
'@verdaccio/server': minor | ||
'@verdaccio/store': minor | ||
'@verdaccio/dev-types': minor | ||
'@verdaccio/utils': minor | ||
'verdaccio': minor | ||
'@verdaccio/web': minor | ||
--- | ||
|
||
feat: add server rate limit protection to all request | ||
|
||
To modify custom values, use the server settings property. | ||
|
||
```markdown | ||
server: | ||
|
||
## https://www.npmjs.com/package/express-rate-limit#configuration-options | ||
|
||
rateLimit: | ||
windowMs: 1000 | ||
max: 10000 | ||
``` | ||
|
||
The values are intended to be high, if you want to improve security of your server consider | ||
using different values. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@verdaccio/cli': major | ||
--- | ||
|
||
feat: use clipanion over commander |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
'@verdaccio/auth': major | ||
'verdaccio-htpasswd': major | ||
'verdaccio-audit': major | ||
'@verdaccio/server': major | ||
'@verdaccio/cli-standalone': major | ||
--- | ||
|
||
feat: standalone registry with no dependencies | ||
|
||
## Usage | ||
|
||
To install a server with no dependencies | ||
|
||
```bash | ||
npm install -g @verdaccio/standalone | ||
``` | ||
|
||
with no internet required | ||
|
||
```bash | ||
npm install -g ./tarball.tar.gz | ||
``` | ||
|
||
Bundles htpasswd and audit plugins. | ||
|
||
### Breaking Change | ||
|
||
It does not allow anymore the `auth` and `middleware` property at config file empty, | ||
it will fallback to those plugins by default. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
'@verdaccio/api': minor | ||
'@verdaccio/auth': minor | ||
'@verdaccio/cli': minor | ||
'@verdaccio/config': minor | ||
'@verdaccio/commons-api': minor | ||
'@verdaccio/file-locking': minor | ||
'verdaccio-htpasswd': minor | ||
'@verdaccio/local-storage': minor | ||
'@verdaccio/readme': minor | ||
'@verdaccio/streams': minor | ||
'@verdaccio/types': minor | ||
'@verdaccio/hooks': minor | ||
'@verdaccio/loaders': minor | ||
'@verdaccio/logger': minor | ||
'@verdaccio/logger-prettify': minor | ||
'@verdaccio/middleware': minor | ||
'@verdaccio/mock': minor | ||
'@verdaccio/node-api': minor | ||
'@verdaccio/proxy': minor | ||
'@verdaccio/server': minor | ||
'@verdaccio/store': minor | ||
'@verdaccio/dev-types': minor | ||
'@verdaccio/utils': minor | ||
'verdaccio': minor | ||
'@verdaccio/web': minor | ||
'@verdaccio/website': minor | ||
--- | ||
|
||
feat: add typescript project references settings | ||
|
||
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. | ||
|
||
It allows to navigate (IDE) trough the packages without need compile the packages. | ||
|
||
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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@verdaccio/cli': minor | ||
'@verdaccio/node-api': minor | ||
--- | ||
|
||
feat: improve cli loggin on start up |
Oops, something went wrong.