Compare commits

..

49 Commits

Author SHA1 Message Date
github-actions[bot]
966d9fad1d chore: update versions (6-next) (#3079) 2022-04-04 12:55:13 +02:00
verdacciobot
c40eae41de chore: updated contributors list 2022-04-04 00:59:25 +00:00
verdacciobot
6c50f8569c chore: updated contributors list 2022-03-31 00:10:50 +00:00
Juan Picado
82cb0f2bff config.logs throw an error, logging config not longer accept array or… (#3097) 2022-03-28 20:02:08 +02:00
verdacciobot
4088cdef6d chore: updated contributors list 2022-03-27 21:09:46 +00:00
Juan Picado
5167bb528f feat: UI search uses search endpoint for global search (#3057)
* UI search uses search endpoint for global search

* improve sorting and error handling

* give priority to private packages

* order by private package

* add tests, improve testing

* add changeset

* addjust settings

* remove old index search implementation

* update lock file

* relocate fastify package

* fix circular dependency

* fix wrong import

* fix tests
2022-03-27 21:42:52 +02:00
Fidel González
80df591e8f fix: typos & rewording in best practices (#3093) 2022-03-27 11:36:06 +02:00
CommanderRoot
a2c3fa9ea7 refactor: replace deprecated String.prototype.substr() (#3091) 2022-03-25 23:27:31 +01:00
Juan Picado
a5019d89f3 chore: restore ga code, website 2022-03-24 23:26:21 +01:00
Juan Picado
24fbba1c6c chore: reuse ga config, no need plugin 2022-03-24 22:52:56 +01:00
Juan Picado
c77d03018e chore: enable google analytics 4, testing the id 2022-03-24 22:50:28 +01:00
verdacciobot
5a6bf953a7 chore: updated contributors list 2022-03-24 00:10:11 +00:00
renovate[bot]
a57ba5f655 fix(deps): update all linting dependencies (#3084)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-23 23:00:54 +01:00
dependabot[bot]
20a5e571d1 chore(deps): bump actions/cache from 2 to 3 (#3078)
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-21 23:12:39 +01:00
Andreas Opferkuch
5b3903963a fix: improve mobile styles (#3077)
* fix: improve mobile styles

* chore: clarify changeset requirements

* chore: add changeset
2022-03-21 23:12:09 +01:00
Juan Picado
274910ca8d Update README.md 2022-03-21 20:09:44 +01:00
Snyk bot
98a40887f5 fix: Dockerfile to reduce vulnerabilities (#3073)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE315-LIBRETLS-2428776
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331
- https://snyk.io/vuln/SNYK-ALPINE315-OPENSSL-2426331
2022-03-21 12:25:18 +01:00
verdacciobot
5199775a06 chore: updated contributors list 2022-03-21 00:11:08 +00:00
Juan Picado
9fb5429d18 chore: update broken link 2022-03-18 18:30:25 +01:00
renovate[bot]
3e4498ccdc fix(deps): update all linting dependencies (#3072) 2022-03-18 07:27:02 +01:00
renovate[bot]
a709357db6 fix(deps): update all linting dependencies (#3070)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-17 23:09:30 +01:00
Juan Picado
4bee336945 Update README.md 2022-03-17 20:34:42 +01:00
Juan Picado
20f244222b chore: move blog docs to pages (#3069)
* chore: move blog docs to pages

Interesting info is being located here https://verdaccio.org/blog/2021/04/14/verdaccio-5-migration-guide but people does not find it.

* chore: move blog docs to pages

* chore: move blog docs to pages
2022-03-17 19:56:15 +01:00
verdacciobot
4311afea53 chore: updated contributors list 2022-03-17 00:11:09 +00:00
verdacciobot
f00cfb4f97 chore: updated contributors list 2022-03-14 00:11:22 +00:00
github-actions[bot]
4fc14eab02 chore: update versions (6-next) (#3053)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-12 22:48:42 +01:00
Juan Picado
a2b69a08e2 add banner support ukraine (#3060)
* add banner support ukraine

* fix test

* add blood link

* Update packages/plugins/ui-theme/src/App/Header/Support/Support.tsx

Co-authored-by: Daniel Ruf <827205+DanielRuf@users.noreply.github.com>

Co-authored-by: Daniel Ruf <827205+DanielRuf@users.noreply.github.com>
2022-03-12 22:42:05 +01:00
verdacciobot
6eea70a6dd chore: updated contributors list 2022-03-10 00:10:59 +00:00
Juan Picado
e533f1d500 chore: force banner keep open 2022-03-09 21:36:32 +01:00
Juan Picado
45cc559f47 chore: add donate button to redcrossredcrescent on home page 2022-03-09 21:16:03 +01:00
dependabot[bot]
ce81b3e96d chore(deps): bump actions/github-script from 3 to 6 (#2989)
Bumps [actions/github-script](https://github.com/actions/github-script) from 3 to 6.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v3...v6)

---
updated-dependencies:
- dependency-name: actions/github-script
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 21:09:11 +01:00
Xingwang Liao
31d661c7bd fix(loaders): always create plugin instance with new (#3052)
* class plugin transpile with babel contains a function '_classCallCheck',
* will throw an error when a class is invoked without 'new'
* see: https://babeljs.io/docs/en/babel-plugin-transform-classes#examples
2022-03-09 19:45:21 +01:00
Juan Picado
b69333778d chore: update redcross links to be more inclusive 2022-03-09 07:47:36 +01:00
github-actions[bot]
4dcc250fdb chore: update versions (6-next) (#3044)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-03-08 17:58:19 +01:00
verdacciobot
756a47aee0 chore: updated contributors list 2022-03-08 16:55:14 +00:00
Juan Picado
2c45bc6e82 chore: fix script 2022-03-08 17:51:34 +01:00
dependabot[bot]
31050ee369 chore(deps): bump actions/checkout from 2 to 3 (#3045)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 20:44:27 +01:00
Juan Picado
9652472780 Update README.md 2022-03-07 20:11:00 +01:00
Juan Picado
87f903d530 chore: update links 2022-03-07 19:54:58 +01:00
Juan Picado
8d625d25d2 add banner for Ukraine 2022-03-07 16:59:50 +01:00
Xingwang Liao
a179f1fd43 fix(ui-theme): show default logo in footer (#3031)
* fix(ui-theme): show default logo in footer

The link of the footer logo is verdaccio website, so the logo should be verdaccio's

* fixup! fix(ui-theme): show default logo in footer

* fixup! fixup! fix(ui-theme): show default logo in footer
2022-03-07 08:53:48 +01:00
Juan Picado
a049eaa38f chore: upgrade docusaurus 2.0.0-beta.17 (#3040) 2022-03-05 21:43:58 +01:00
Juan Picado
d2dd76260b chore: migrate to fully undici fetch (#3037)
* chore: migrate to fully undici fetch

* chore: update warnings

* remove debug

* restore dep

* chore:  update implementation

* fix lint

* update node

* update pnpm

* disable e2e cli

* disable cli
2022-03-05 18:44:10 +01:00
dependabot[bot]
f38c759cb2 chore(deps): bump pnpm/action-setup from 2.1.0 to 2.2.1 (#3022)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.1.0 to 2.2.1.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.1.0...v2.2.1)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-05 09:32:33 +01:00
Juan Picado
28c3aad443 chore: update e2e docs 2022-03-05 09:14:43 +01:00
Juan Picado
a020d4f580 chore: clean up warnings on ui tests (#3034)
* fix: remove duplicated call to fetch manifest

* fix: clean forward ref warnings

* clean button warnings

* clean box warnings

* SnackbarContent

* InputAdornment

* more migrations dialog, etc

* dialog cleanup

* clean up text component

* remove forward ref

* restore website components

* clean up

* IconButton

* format

* restore config
2022-03-05 00:12:37 +01:00
Juan Picado
160c25ddc5 Update benchmark.yml 2022-03-04 20:50:52 +01:00
Juan Picado
1debee3e9d chore: add new logger props 2022-03-04 19:52:10 +01:00
(H)eDoCode
76d78b0328 Node JS API Documentation : Working Implementation Code (#3032)
* Working node JS Code

Maybe add where do the `addrs` comes from ?
Added host and port display cause otherwise user doesn't know which default address and port are.

* Removing comments 

because I'm unsure about these / they are incorrect

Please complete it if you know how to make it work with a configFilePath as third parameter

* chore: fix website config

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-04 19:22:02 +01:00
349 changed files with 8393 additions and 5420 deletions

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
add banner support ukraine

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
show verdaccio logo in the footer even when custom brand is set

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/loaders': patch
---
always create plugin instance with new

View File

@@ -42,7 +42,7 @@
"@verdaccio/eslint-config": "1.0.0",
"@verdaccio/benchmark": "1.0.0",
"@verdaccio/core": "6.0.0-next.0",
"@verdaccio/helper": "1.0.0",
"@verdaccio/test-helper": "1.0.0",
"docusaurus-plugin-contributors": "1.0.0",
"@verdaccio/website": "5.4.0"
},
@@ -50,8 +50,10 @@
"afraid-mice-obey",
"big-lobsters-sin",
"bright-poems-obey",
"brown-pandas-wink",
"calm-pants-impress",
"dry-planes-tap",
"dull-monkeys-search",
"eleven-brooms-hunt",
"eleven-spoons-matter",
"fair-lemons-beam",
@@ -73,6 +75,7 @@
"light-walls-begin",
"little-stingrays-rule",
"loud-shoes-jog",
"lovely-drinks-argue",
"many-vans-care",
"modern-spies-tell",
"neat-toes-report",
@@ -86,6 +89,7 @@
"plenty-tables-refuse",
"pretty-hounds-tap",
"proud-jeans-walk",
"proud-jobs-hope",
"red-chefs-float",
"red-yaks-sell",
"rich-ghosts-rule",
@@ -93,6 +97,7 @@
"shaggy-parrots-smash",
"shiny-chefs-heal",
"smart-apricots-kneel",
"smart-beds-cross",
"sour-buses-shout",
"spicy-frogs-press",
"spicy-snakes-sip",
@@ -100,6 +105,7 @@
"ten-parents-breathe",
"tender-bags-call",
"thick-countries-move",
"thick-readers-hang",
"three-moles-drop",
"three-pots-sit",
"tiny-seals-join",

View File

@@ -0,0 +1,45 @@
---
'@verdaccio/api': major
'@verdaccio/cli': major
'@verdaccio/config': major
'@verdaccio/core': major
'@verdaccio/types': major
'@verdaccio/logger': major
'@verdaccio/node-api': major
'verdaccio-aws-s3-storage': major
'verdaccio-google-cloud': major
'verdaccio-htpasswd': major
'@verdaccio/local-storage': major
'verdaccio-memory': major
'@verdaccio/ui-theme': major
'@verdaccio/proxy': major
'@verdaccio/server': major
'@verdaccio/mock': major
'verdaccio': major
'@verdaccio/web': major
'@verdaccio/e2e-cli': major
'@verdaccio/website': major
---
feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```

View File

@@ -0,0 +1,20 @@
---
'@verdaccio/api': minor
'@verdaccio/config': minor
'@verdaccio/core': minor
'@verdaccio/types': minor
'@verdaccio/local-storage': minor
'@verdaccio/ui-theme': minor
'@verdaccio/proxy': minor
'@verdaccio/server': minor
'@verdaccio/store': minor
'@verdaccio/test-helper': minor
'@verdaccio/web': minor
---
feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.

View File

@@ -0,0 +1,5 @@
---
'@verdaccio/ui-theme': patch
---
fix: fixes some style issues on mobile, particularly related to the Ukraine support message - [@s-h-a-d-o-w](https://github.com/s-h-a-d-o-w)

View File

@@ -15,7 +15,7 @@ jobs:
name: Prepare build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
@@ -30,7 +30,7 @@ jobs:
- name: install dependencies
run: pnpm install
- name: Cache .pnpm-store
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -57,12 +57,12 @@ jobs:
# - local
- 3.13.1
- 4.12.2
- 5.5.2
- 6.0.0-6-next.31
- 5.7.0
- 6.0.0-6-next.35
name: Benchmark autocannon
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
@@ -74,7 +74,7 @@ jobs:
- name: install pnpm
# require fixed version
run: sudo npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -118,12 +118,12 @@ jobs:
# old versions to compare same test along previous releases
- 3.13.1
- 4.12.2
- 5.5.2
- 6.0.0-6-next.31
- 5.7.0
- 6.0.0-6-next.35
name: Benchmark hyperfine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14.x
@@ -135,7 +135,7 @@ jobs:
- name: install pnpm
# require fixed version
run: sudo npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

View File

@@ -20,7 +20,7 @@ jobs:
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

View File

@@ -24,13 +24,13 @@ jobs:
ports:
- 4873:4873
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Use Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
run: npm i pnpm@6.32.3 -g
- name: set store
run: |
mkdir ~/.pnpm-store
@@ -38,7 +38,7 @@ jobs:
- name: Install
run: pnpm recursive install --frozen-lockfile --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -49,14 +49,14 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Use Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.3 -g
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -69,14 +69,14 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Use Node 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.3 -g
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -95,14 +95,14 @@ jobs:
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.3 -g
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -117,13 +117,13 @@ jobs:
runs-on: ubuntu-latest
name: UI Test E2E Node 16
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
run: npm i pnpm@latest -g
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
@@ -136,44 +136,46 @@ jobs:
run: pnpm test:e2e:ui
# env:
# DEBUG: verdaccio:e2e*
ci-e2e-cli:
needs: [format, lint]
runs-on: ubuntu-latest
# TODO: fails on migrate to node 16, we need to check why
name: CLI Test E2E Node 14
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile
- name: build
run: pnpm build
- name: Test CLI
run: pnpm test:e2e:cli
env:
DEBUG: verdaccio*
# FIXME verify why fails on Node 16 (locally works fine)
# ci-e2e-cli:
# needs: [format, lint]
# runs-on: ubuntu-latest
# # TODO: fails on migrate to node 16, we need to check why
# name: CLI Test E2E Node 16
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# - name: Install pnpm
# run: npm i pnpm@latest -g
# - uses: actions/cache@v3
# with:
# path: ~/.pnpm-store
# key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
# - name: Install
# ## we need scripts, pupetter downloads aditional content
# run: pnpm recursive install --frozen-lockfile
# - name: build
# run: pnpm build
# - name: Test CLI
# run: pnpm test:e2e:cli
# env:
# DEBUG: verdaccio*
sync-translations:
needs: [ci-e2e-cli, ci-e2e-ui]
# needs: [ci-e2e-cli, ci-e2e-ui]
needs: [ci-e2e-ui]
runs-on: ubuntu-latest
name: synchronize translations
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install pnpm
run: npm i pnpm@6.24.1 -g
- uses: actions/cache@v2
run: npm i pnpm@6.32.3 -g
- uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}

View File

@@ -14,7 +14,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.

View File

@@ -15,7 +15,7 @@ jobs:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0

View File

@@ -19,7 +19,7 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1
with:

View File

@@ -24,7 +24,7 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
- name: Use Node 14
uses: actions/setup-node@v3
@@ -32,7 +32,7 @@ jobs:
node-version: 14
- name: Cache pnpm modules
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-pnpm-modules
with:
@@ -41,7 +41,7 @@ jobs:
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: pnpm/action-setup@v2.1.0
- uses: pnpm/action-setup@v2.2.1
with:
version: 6.10.2
run_install: |
@@ -50,7 +50,7 @@ jobs:
- name: Build Plugins
run: pnpm build --filter "docusaurus-plugin-contributors"
- name: Cache Docusaurus Build
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: website/node_modules/.cache/webpack
key: cache/webpack-${{github.ref}}-${{ hashFiles('**/pnpm-lock.yaml') }}
@@ -97,7 +97,7 @@ jobs:
- name: Audit preview URL with Lighthouse
id: lighthouse_audit
uses: treosh/lighthouse-ci-action@v9.3.0
uses: treosh/lighthouse-ci-action@9.3.0
with:
urls: |
${{ steps.netlify_preview.outputs.preview-url }}
@@ -106,7 +106,7 @@ jobs:
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@v3
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |

View File

@@ -138,10 +138,8 @@ output to the code. Each package has it owns namespace.
To run the application from the source code, ensure the project has been built with `pnpm build`, once this is done, there are few commands that helps to run server:
- `pnpm start`: Run the server and the UI with `concurrently`, the
server runs in the port `8000` and the UI on the port `4873`. This command
is useful if you want to contribute mostly on the UI.
- `pnpm debug`: Run the server in debug mode `--inspect`, the UI is included but does not have hot reload. For automatic break use `pnpm debug:break`.
- `pnpm start`: Runs server on port `8000` and UI on port `4873`. This is particularly useful if you want to contribute to the UI, since it runs with hot reload.
- `pnpm debug`: Run the server in debug mode `--inspect`. UI runs too but without hot reload. For automatic break use `pnpm debug:break`.
- `pnpm debug:fastify`: To contribute on the [fastify migration](https://github.com/verdaccio/verdaccio/discussions/2155) this is a temporary command for such purpose.
- `pnpm website`: Build the website, for more commands to run the _website_, run `cd website` and then `pnpm serve`, website will run on port `3000`.
- `pnpm docker`: Build the docker image. Requires `docker` command available in your system.
@@ -333,8 +331,8 @@ We use [changesets](https://github.com/atlassian/changesets) in order to
generate a detailed Changelog as possible.
Adding a changeset with your Pull Request is essential if you want your
contribution to get merged (unless is a change that does not affect library
functionality, eg: typo, docs, readme, add additional test or linting code). To
contribution to get merged (unless it does not affect functionality or
user-facing content, eg: docs, readme, adding test or typo/lint fixes). To
create a changeset please run:
```

View File

@@ -1,4 +1,4 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:16.13.2-alpine as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:16.14.2-alpine as builder
ENV NODE_ENV=development \
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
@@ -20,7 +20,7 @@ RUN npm -g i pnpm@6.24.1 && \
# FIXME: need to remove devDependencies from the build
# RUN pnpm install --prod --ignore-scripts
FROM node:16.13.2-alpine
FROM node:16.14.2-alpine
LABEL maintainer="https://github.com/verdaccio/verdaccio"
ENV VERDACCIO_APPDIR=/opt/verdaccio \

View File

@@ -1,10 +1,14 @@
[![BannerUK](https://cdn.verdaccio.dev/readme/banner-uk.svg)](https://donate.redcrossredcrescent.org/ua/donate/~my-donation?_cv=1)
> Verdaccio stands for **peace**, stop the war, we will be yellow / blue 🇺🇦 until that happens.
![verdaccio logo](https://cdn.verdaccio.dev/readme/verdaccio@2x.png)
![verdaccio gif](https://cdn.verdaccio.dev/readme/readme-website.png)
# Version 6 (Development branch)
> Looking for Verdaccio 5? Check branch `5.x`.
> Looking for Verdaccio 5? Check branch `5.x`
[Verdaccio](https://verdaccio.org/) is a simple, **zero-config-required local private npm registry**.
No need for an entire database just to get started! Verdaccio comes out of the box with
@@ -26,6 +30,7 @@ Google Cloud Storage** or create your own plugin.
[![Twitter followers](https://img.shields.io/twitter/follow/verdaccio_npm.svg?style=social&label=Follow)](https://twitter.com/verdaccio_npm)
[![Github](https://img.shields.io/github/stars/verdaccio/verdaccio.svg?style=social&label=Stars)](https://github.com/verdaccio/verdaccio/stargazers)
[![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)
## Install
@@ -78,7 +83,7 @@ booted in a couple of seconds, fast enough for any CI. Many open source projects
**Node Congress 2022, February 2022, Online Free**
<div>
<a href="https://nodecongress.com/">
<a href="https://portal.gitnation.org/contents/five-ways-of-taking-advantage-of-verdaccio-your-private-and-proxy-nodejs-registry">
<img src="https://cdn.verdaccio.dev/readme/nodejscongress2022.jpg" alt="nodejs" width="300"/>
</a>
</div>

View File

@@ -46,4 +46,4 @@ middlewares:
audit:
enabled: true
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }

View File

@@ -42,4 +42,4 @@ middlewares:
audit:
enabled: true
logs: { type: stdout, format: json, level: trace }
log: { type: stdout, format: json, level: trace }

View File

@@ -22,7 +22,8 @@ invalid address - xxxxxx, we expect a port (e.g. "4873"),
## VERDEP002
'deprecate: multiple logger configuration is deprecated, please check the migration guide.'
> After version `verdaccio@6.0.0-6-next.38` this is not longer a warning and
> will crash your application
## VERDEP003

View File

@@ -56,13 +56,13 @@
"@types/jsonwebtoken": "8.5.1",
"@types/request": "2.48.8",
"@types/semver": "7.3.9",
"@types/supertest": "2.0.11",
"@types/supertest": "2.0.12",
"@types/testing-library__jest-dom": "5.14.2",
"@types/validator": "13.7.1",
"@types/webpack": "5.28.0",
"@types/webpack-env": "1.16.3",
"@typescript-eslint/eslint-plugin": "5.10.2",
"@typescript-eslint/parser": "5.10.2",
"@typescript-eslint/eslint-plugin": "5.16.0",
"@typescript-eslint/parser": "5.16.0",
"@verdaccio/benchmark": "workspace:*",
"@verdaccio/eslint-config": "workspace:*",
"@verdaccio/types": "workspace:*",
@@ -79,7 +79,9 @@
"cross-env": "7.0.3",
"debug": "4.3.3",
"detect-secrets": "1.0.6",
"eslint": "8.8.0",
"pretty-format": "27.5.1",
"jest-diff": "27.5.1",
"eslint": "8.11.0",
"fs-extra": "10.0.0",
"husky": "7.0.4",
"in-publish": "2.0.1",
@@ -94,7 +96,7 @@
"node-fetch": "cjs",
"nodemon": "2.0.15",
"npm-run-all": "4.1.5",
"prettier": "2.5.1",
"prettier": "2.6.0",
"rimraf": "3.0.2",
"selfsigned": "1.10.14",
"supertest": "6.2.2",
@@ -114,7 +116,7 @@
"docker": "docker build -t verdaccio/verdaccio:local . --no-cache",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx,json,yml,yaml,md}\"",
"lint": "eslint --max-warnings 44 \"**/*.{js,jsx,ts,tsx}\"",
"lint": "eslint --max-warnings 46 \"**/*.{js,jsx,ts,tsx}\"",
"test": "pnpm recursive test --filter ./packages",
"test:e2e:cli": "pnpm test --filter ...@verdaccio/e2e-cli",
"test:e2e:ui": "pnpm test --filter ...@verdaccio/e2e-ui",

View File

@@ -1,5 +1,63 @@
# @verdaccio/api
## 6.0.0-6-next.24
### Major Changes
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```
### Minor Changes
- 5167bb52: feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/config@6.0.0-6-next.13
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/logger@6.0.0-6-next.11
- @verdaccio/store@6.0.0-6-next.21
- @verdaccio/auth@6.0.0-6-next.21
- @verdaccio/hooks@6.0.0-6-next.13
- @verdaccio/middleware@6.0.0-6-next.21
- @verdaccio/utils@6.0.0-6-next.11
## 6.0.0-6-next.23
### Patch Changes
- @verdaccio/auth@6.0.0-6-next.20
- @verdaccio/store@6.0.0-6-next.20
- @verdaccio/hooks@6.0.0-6-next.12
- @verdaccio/middleware@6.0.0-6-next.20
## 6.0.0-6-next.22
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/api",
"version": "6.0.0-6-next.22",
"version": "6.0.0-6-next.24",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,14 +39,14 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "workspace:6.0.0-6-next.19",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/hooks": "workspace:6.0.0-6-next.12",
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/middleware": "workspace:6.0.0-6-next.19",
"@verdaccio/store": "workspace:6.0.0-6-next.19",
"@verdaccio/utils": "workspace:6.0.0-6-next.10",
"@verdaccio/auth": "workspace:6.0.0-6-next.21",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/hooks": "workspace:6.0.0-6-next.13",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"@verdaccio/middleware": "workspace:6.0.0-6-next.21",
"@verdaccio/store": "workspace:6.0.0-6-next.21",
"@verdaccio/utils": "workspace:6.0.0-6-next.11",
"abortcontroller-polyfill": "1.7.3",
"cookies": "0.8.0",
"debug": "4.3.3",
@@ -58,9 +58,9 @@
},
"devDependencies": {
"@types/node": "16.11.21",
"@verdaccio/server": "workspace:6.0.0-6-next.27",
"@verdaccio/types": "workspace:11.0.0-6-next.10",
"@verdaccio/helper": "1.0.0",
"@verdaccio/server": "workspace:6.0.0-6-next.29",
"@verdaccio/types": "workspace:11.0.0-6-next.11",
"@verdaccio/test-helper": "workspace:1.1.0-6-next.0",
"supertest": "6.2.2"
},
"funding": {

View File

@@ -6,9 +6,9 @@ import supertest from 'supertest';
import { Auth, IAuth } from '@verdaccio/auth';
import { Config, parseConfigFile } from '@verdaccio/config';
import { HEADERS, HEADER_TYPE, HTTP_STATUS } from '@verdaccio/core';
import { generatePackageMetadata } from '@verdaccio/helper';
import { errorReportingMiddleware, final, handleError } from '@verdaccio/middleware';
import { Storage } from '@verdaccio/store';
import { generatePackageMetadata } from '@verdaccio/test-helper';
import apiEndpoints from '../../src';
@@ -18,6 +18,7 @@ const getConf = (conf) => {
return parseConfigFile(configPath);
};
// TODO: replace by @verdaccio/test-helper
export async function initializeServer(configName): Promise<Application> {
const app = express();
const config = new Config(getConf(configName));

View File

@@ -18,7 +18,7 @@ publish:
uplinks:
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }
packages:
'@*/*':

View File

@@ -11,7 +11,7 @@ web:
uplinks:
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }
packages:
'@*/*':

View File

@@ -18,7 +18,7 @@ publish:
uplinks:
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }
packages:
'@*/*':

View File

@@ -17,7 +17,7 @@ uplinks:
npmjs:
url: https://registry.npmjs.org/
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }
packages:
'@*/*':

View File

@@ -17,7 +17,7 @@ uplinks:
npmjs:
url: https://registry.npmjs.org/
logs: { type: stdout, format: pretty, level: trace }
log: { type: stdout, format: pretty, level: trace }
packages:
'@*/*':

View File

@@ -2,7 +2,7 @@ import supertest from 'supertest';
import { HTTP_STATUS } from '@verdaccio/core';
import { API_ERROR, API_MESSAGE, HEADERS, HEADER_TYPE } from '@verdaccio/core';
import { generatePackageMetadata } from '@verdaccio/helper';
import { generatePackageMetadata } from '@verdaccio/test-helper';
import { $RequestExtend, $ResponseExtend } from '../../types/custom';
import { initializeServer, publishVersion } from './_helper';

View File

@@ -1,5 +1,25 @@
# @verdaccio/auth
## 6.0.0-6-next.21
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/config@6.0.0-6-next.13
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/logger@6.0.0-6-next.11
- verdaccio-htpasswd@11.0.0-6-next.13
- @verdaccio/loaders@6.0.0-6-next.12
- @verdaccio/utils@6.0.0-6-next.11
## 6.0.0-6-next.20
### Patch Changes
- Updated dependencies [31d661c7]
- @verdaccio/loaders@6.0.0-6-next.11
## 6.0.0-6-next.19
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/auth",
"version": "6.0.0-6-next.19",
"version": "6.0.0-6-next.21",
"description": "logger",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,20 +39,20 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/loaders": "workspace:6.0.0-6-next.10",
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/utils": "workspace:6.0.0-6-next.10",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/loaders": "workspace:6.0.0-6-next.12",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"@verdaccio/utils": "workspace:6.0.0-6-next.11",
"debug": "4.3.3",
"express": "4.17.2",
"jsonwebtoken": "8.5.1",
"lodash": "4.17.21",
"verdaccio-htpasswd": "workspace:11.0.0-6-next.12"
"verdaccio-htpasswd": "workspace:11.0.0-6-next.13"
},
"devDependencies": {
"@verdaccio/mock": "workspace:6.0.0-6-next.13",
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/mock": "workspace:6.0.0-6-next.14",
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,49 @@
# @verdaccio/cli
## 6.0.0-6-next.31
### Major Changes
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/config@6.0.0-6-next.13
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/logger@6.0.0-6-next.11
- @verdaccio/node-api@6.0.0-6-next.30
- @verdaccio/fastify-migration@6.0.0-6-next.22
## 6.0.0-6-next.30
### Patch Changes
- @verdaccio/fastify-migration@6.0.0-6-next.21
- @verdaccio/node-api@6.0.0-6-next.29
## 6.0.0-6-next.29
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/cli",
"version": "6.0.0-6-next.29",
"version": "6.0.0-6-next.31",
"author": {
"name": "Juan Picado",
"email": "juanpicado19@gmail.com"
@@ -44,11 +44,11 @@
"start": "ts-node src/index.ts"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/node-api": "workspace:6.0.0-6-next.28",
"@verdaccio/fastify-migration": "workspace:6.0.0-6-next.20",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"@verdaccio/node-api": "workspace:6.0.0-6-next.30",
"@verdaccio/fastify-migration": "workspace:6.0.0-6-next.22",
"clipanion": "3.1.0",
"envinfo": "7.8.1",
"kleur": "3.0.3",

View File

@@ -1,7 +1,6 @@
import { Command, Option } from 'clipanion';
import { findConfigFile, parseConfigFile } from '@verdaccio/config';
import { warningUtils } from '@verdaccio/core';
import server from '@verdaccio/fastify-migration';
import { logger, setup } from '@verdaccio/logger';
import { ConfigRuntime } from '@verdaccio/types';
@@ -28,13 +27,13 @@ export class FastifyServer extends Command {
private initLogger(logConfig: ConfigRuntime) {
try {
if (logConfig.logs) {
warningUtils.emit(warningUtils.Codes.VERDEP001);
if (logConfig.log) {
throw Error('logger as array not longer supported');
}
// FUTURE: remove fallback when is ready
setup(logConfig.log || logConfig.logs);
} catch {
throw new Error('error on init logger');
setup(logConfig.log);
} catch (err: any) {
throw new Error(err);
}
}

View File

@@ -1,8 +1,8 @@
import { Command, Option } from 'clipanion';
import { findConfigFile, parseConfigFile } from '@verdaccio/config';
import { warningUtils } from '@verdaccio/core';
import { logger, setup } from '@verdaccio/logger';
import { LoggerConfigItem } from '@verdaccio/logger/src/logger';
import { initServer } from '@verdaccio/node-api';
import { ConfigRuntime } from '@verdaccio/types';
@@ -47,13 +47,13 @@ export class InitCommand extends Command {
private initLogger(logConfig: ConfigRuntime) {
try {
// @ts-expect-error
if (logConfig.logs) {
warningUtils.emit(warningUtils.Codes.VERDEP001);
throw Error('logger as array not longer supported');
}
// FUTURE: remove fallback when is ready
setup(logConfig.log || logConfig.logs);
} catch {
throw new Error('error on init logger');
setup(logConfig.log as LoggerConfigItem);
} catch (err: any) {
throw new Error(err);
}
}

View File

@@ -3,6 +3,6 @@ import semver from 'semver';
export const MIN_NODE_VERSION = '14.0.0';
export function isVersionValid(processVersion) {
const version = processVersion.substr(1);
const version = processVersion.slice(1);
return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);
}

View File

@@ -1,5 +1,48 @@
# @verdaccio/config
## 6.0.0-6-next.13
### Major Changes
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```
### Minor Changes
- 5167bb52: feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/utils@6.0.0-6-next.11
## 6.0.0-6-next.12
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/config",
"version": "6.0.0-6-next.12",
"version": "6.0.0-6-next.13",
"description": "logger",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,8 +39,8 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/utils": "workspace:6.0.0-6-next.10",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/utils": "workspace:6.0.0-6-next.11",
"debug": "4.3.3",
"js-yaml": "3.14.1",
"lodash": "4.17.21",

View File

@@ -10,8 +10,6 @@
storage: ./storage
# path to a directory with plugins to include
plugins: ./plugins
# print logs
# logs: ./logs
web:
title: Verdaccio
@@ -87,7 +85,7 @@ middlewares:
enabled: true
# log settings
logs:
log:
# Logger as STDOUT
{ type: stdout, format: pretty, level: http }
# Logger as STDOUT as JSON

View File

@@ -72,7 +72,7 @@ middlewares:
# log settings
# log settings
logs:
log:
# Logger as STDOUT
{ type: stdout, format: pretty, level: http }
# Logger as STDOUT as JSON

View File

@@ -7,6 +7,7 @@ import {
Config as AppConfig,
AuthConf,
ConfigRuntime,
FlagsConfig,
PackageAccess,
PackageList,
Security,
@@ -44,6 +45,7 @@ class Config implements AppConfig {
public serverSettings: ServerSettingsConf;
// @ts-ignore
public secret: string;
public flags: FlagsConfig;
public constructor(config: ConfigRuntime) {
const self = this;
@@ -52,6 +54,9 @@ class Config implements AppConfig {
this.plugins = config.plugins;
this.security = _.merge(defaultSecurity, config.security);
this.serverSettings = serverSettings;
this.flags = {
searchRemote: config.flags?.searchRemote ?? true,
};
for (const configProp in config) {
if (self[configProp] == null) {

View File

@@ -57,11 +57,11 @@ describe('check basic content parsed file', () => {
expect(config.middlewares).toBeDefined();
expect(config.middlewares.audit).toBeDefined();
expect(config.middlewares.audit.enabled).toBeTruthy();
// logs
expect(config.logs).toBeDefined();
expect(config.logs.type).toEqual('stdout');
expect(config.logs.format).toEqual('pretty');
expect(config.logs.level).toEqual('http');
// log
expect(config.log).toBeDefined();
expect(config.log.type).toEqual('stdout');
expect(config.log.format).toEqual('pretty');
expect(config.log.level).toEqual('http');
// must not be enabled by default
expect(config.notify).toBeUndefined();
expect(config.store).toBeUndefined();

View File

@@ -11,5 +11,5 @@ module.exports = {
vue: { access: '$authenticated', publish: '$authenticated', proxy: 'npmjs' },
'*': { access: '$all', publish: '$all', proxy: 'npmjs' },
},
logs: [{ type: 'stdout', format: 'pretty', level: 'warn' }],
log: { type: 'stdout', format: 'pretty', level: 'warn' },
};

View File

@@ -1,7 +1,4 @@
---
storage: './storage_default_storage'
logs:
- type: stdout
format: pretty
level: warn
log: { type: stdout, format: pretty, level: warn }

View File

@@ -1,5 +1,41 @@
# @verdaccio/core
## 6.0.0-6-next.5
### Major Changes
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```
### Minor Changes
- 5167bb52: feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
## 6.0.0-6-next.4
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/core",
"version": "6.0.0-6-next.4",
"version": "6.0.0-6-next.5",
"description": "core utilities",
"keywords": [
"private",
@@ -41,7 +41,7 @@
"core-js": "3.20.3"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -16,10 +16,19 @@ export type SearchItemPkg = {
time?: number | Date;
};
export type SearchItem = {
type PrivatePackage = {
// note: prefixed to avoid external conflicts
// the package is published as private
verdaccioPrivate?: boolean;
// if the package is not private but is cached
verdaccioPkgCached?: boolean;
};
export interface SearchItem extends UnStable, PrivatePackage {
package: SearchItemPkg;
score: Score;
} & UnStable;
}
export type Score = {
final: number;
@@ -32,11 +41,13 @@ export type SearchResults = {
time: string;
};
// @deprecated use @verdaccio/types
type PublisherMaintainer = {
username: string;
email: string;
};
// @deprecated use @verdaccio/types
export type SearchPackageBody = {
name: string;
scope: string;
@@ -55,11 +66,11 @@ export type SearchPackageBody = {
maintainers?: PublisherMaintainer[];
};
export type SearchPackageItem = {
export interface SearchPackageItem extends UnStable, PrivatePackage {
package: SearchPackageBody;
score: Score;
searchScore?: number;
} & UnStable;
}
export const UNSCOPED = 'unscoped';

View File

@@ -9,8 +9,7 @@ export enum Codes {
VERWAR002 = 'VERWAR002',
VERWAR003 = 'VERWAR003',
VERWAR004 = 'VERWAR004',
VERDEP001 = 'VERDEP001',
VERDEP002 = 'VERDEP002',
// deprecation warnings
VERDEP003 = 'VERDEP003',
}
@@ -36,18 +35,6 @@ host:port (e.g. "localhost:4873") or full url '(e.g. "http://localhost:4873/")
https://verdaccio.org/docs/en/configuration#listen-port`
);
warningInstance.create(
verdaccioDeprecation,
Codes.VERDEP001,
'config.logs is deprecated, rename configuration to "config.log" in singular'
);
warningInstance.create(
verdaccioDeprecation,
Codes.VERDEP002,
'deprecate: multiple logger configuration is deprecated, please check the migration guide.'
);
warningInstance.create(
verdaccioDeprecation,
Codes.VERDEP003,

View File

@@ -40,7 +40,7 @@
"lockfile": "1.0.4"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -45,7 +45,7 @@
"marked": "3.0.8"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,8 +0,0 @@
import semver from 'semver';
// FUTURE: remove when v15 is the minimum requirement
if (semver.lte(process.version, 'v15.0.0')) {
global.AbortController = require('abortcontroller-polyfill/dist/cjs-ponyfill').AbortController;
}
export { default } from './server';

View File

@@ -34,7 +34,7 @@
"access": "public"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,5 +1,15 @@
# Change Log
## 11.0.0-6-next.12
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/url@11.0.0-6-next.9
- @verdaccio/utils@6.0.0-6-next.11
## 11.0.0-6-next.11
### Major Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/tarball",
"version": "11.0.0-6-next.11",
"version": "11.0.0-6-next.12",
"description": "tarball utilities resolver",
"keywords": [
"private",
@@ -35,13 +35,13 @@
},
"dependencies": {
"debug": "4.3.3",
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/url": "workspace:11.0.0-6-next.8",
"@verdaccio/utils": "workspace:6.0.0-6-next.10",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/url": "workspace:11.0.0-6-next.9",
"@verdaccio/utils": "workspace:6.0.0-6-next.11",
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10",
"@verdaccio/types": "workspace:11.0.0-6-next.11",
"node-mocks-http": "1.11.0"
},
"scripts": {

View File

@@ -1,5 +1,41 @@
# Change Log
## 11.0.0-6-next.11
### Major Changes
- 82cb0f2b: feat!: config.logs throw an error, logging config not longer accept array or logs property
### 💥 Breaking change
This is valid
```yaml
log: { type: stdout, format: pretty, level: http }
```
This is invalid
```yaml
logs: { type: stdout, format: pretty, level: http }
```
or
```yaml
logs:
- [{ type: stdout, format: pretty, level: http }]
```
### Minor Changes
- 5167bb52: feat: ui search support for remote, local and private packages
The command `npm search` search globally and return all matches, with this improvement the user interface
is powered with the same capabilities.
The UI also tag where is the origin the package with a tag, also provide the latest version and description of the package.
## 11.0.0-6-next.10
### Major Changes

View File

@@ -40,11 +40,14 @@ declare module '@verdaccio/types' {
darkMode?: boolean;
protocol?: string;
host?: string;
// deprecated
basename?: string;
scope?: string;
base: string;
primaryColor?: string;
version?: string;
logoURI?: string;
flags: FlagsConfig;
} & CommonWebConf;
/**
@@ -332,10 +335,6 @@ declare module '@verdaccio/types' {
sync(): void;
}
interface LoggerConf {
[key: string]: LoggerConfItem;
}
interface ListenAddress {
[key: string]: string;
}
@@ -385,11 +384,11 @@ declare module '@verdaccio/types' {
api: APITokenOptions;
}
interface ConfigFlags {
token?: boolean;
search?: boolean;
export type FlagsConfig = {
searchRemote?: boolean;
changePassword?: boolean;
}
};
export type RateLimit = {
windowMs: number;
max: number;
@@ -417,9 +416,8 @@ declare module '@verdaccio/types' {
storage?: string | void;
packages: PackageList;
uplinks: UpLinksConfList;
// @deprecated in favor of log
logs?: LoggerConf[];
log?: LoggerConf[];
// FUTURE: log should be mandatory
log?: LoggerConfItem;
web?: WebConf;
auth?: AuthConf;
security: Security;
@@ -438,7 +436,7 @@ declare module '@verdaccio/types' {
filters?: any;
url_prefix?: string;
server?: ServerSettingsConf;
flags?: ConfigFlags;
flags?: FlagsConfig;
}
interface ConfigRuntime extends ConfigYaml {
@@ -455,6 +453,29 @@ declare module '@verdaccio/types' {
[key: string]: any;
}
type PublisherMaintainer = {
username: string;
email: string;
};
type SearchPackageBody = {
name: string;
scope: string;
description: string;
author: string | PublisherMaintainer;
version: string;
keywords: string | string[] | undefined;
date: string;
links?: {
npm: string; // only include placeholder for URL eg: {url}/{packageName}
homepage?: string;
repository?: string;
bugs?: string;
};
publisher?: any;
maintainers?: PublisherMaintainer[];
};
interface ConfigWithHttps extends Config {
https: HttpsConf;
}

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/types",
"version": "11.0.0-6-next.10",
"version": "11.0.0-6-next.11",
"description": "verdaccio types definitions",
"keywords": [
"private",

View File

@@ -1,5 +1,13 @@
# Change Log
## 11.0.0-6-next.9
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/core@6.0.0-6-next.5
## 11.0.0-6-next.8
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/url",
"version": "11.0.0-6-next.8",
"version": "11.0.0-6-next.9",
"description": "url utilities resolver",
"keywords": [
"private",
@@ -34,13 +34,13 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"debug": "4.3.3",
"lodash": "4.17.21",
"validator": "13.7.0"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.10",
"@verdaccio/types": "workspace:11.0.0-6-next.11",
"node-mocks-http": "1.11.0"
},
"scripts": {

View File

@@ -38,7 +38,7 @@ export function getWebProtocol(headerProtocol: string | void, protocol: string):
if (typeof headerProtocol === 'string' && headerProtocol !== '') {
debug('header protocol: %o', protocol);
const commaIndex = headerProtocol.indexOf(',');
returnProtocol = commaIndex > 0 ? headerProtocol.substr(0, commaIndex) : headerProtocol;
returnProtocol = commaIndex > 0 ? headerProtocol.slice(0, commaIndex) : headerProtocol;
} else {
debug('req protocol: %o', headerProtocol);
returnProtocol = protocol;

View File

@@ -0,0 +1,3 @@
## Experimental packages
- `fastify-server`: Fastify experimental implementation

View File

@@ -1,5 +1,27 @@
# @verdaccio/fastify-migration
## 6.0.0-6-next.22
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/config@6.0.0-6-next.13
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/logger@6.0.0-6-next.11
- @verdaccio/store@6.0.0-6-next.21
- @verdaccio/auth@6.0.0-6-next.21
- @verdaccio/tarball@11.0.0-6-next.12
- @verdaccio/utils@6.0.0-6-next.11
- @verdaccio/readme@11.0.0-6-next.4
## 6.0.0-6-next.21
### Patch Changes
- @verdaccio/auth@6.0.0-6-next.20
- @verdaccio/store@6.0.0-6-next.20
## 6.0.0-6-next.20
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/fastify-migration",
"version": "6.0.0-6-next.20",
"version": "6.0.0-6-next.22",
"description": "Fastify server migration package",
"keywords": [
"private",
@@ -34,25 +34,23 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/auth": "workspace:6.0.0-6-next.19",
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/store": "workspace:6.0.0-6-next.19",
"@verdaccio/tarball": "workspace:11.0.0-6-next.11",
"@verdaccio/utils": "workspace:6.0.0-6-next.10",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/auth": "workspace:6.0.0-6-next.21",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"@verdaccio/store": "workspace:6.0.0-6-next.21",
"@verdaccio/tarball": "workspace:11.0.0-6-next.12",
"@verdaccio/utils": "workspace:6.0.0-6-next.11",
"@verdaccio/readme": "workspace:11.0.0-6-next.4",
"abortcontroller-polyfill": "1.7.3",
"core-js": "3.20.3",
"debug": "4.3.3",
"fastify": "3.27.0",
"fastify-plugin": "3.0.0",
"lodash": "4.17.21",
"semver": "7.3.5"
"lodash": "4.17.21"
},
"devDependencies": {
"@types/node": "16.11.21",
"@verdaccio/types": "workspace:11.0.0-6-next.10",
"@verdaccio/types": "workspace:11.0.0-6-next.11",
"ts-node": "10.4.0"
},
"scripts": {

View File

@@ -0,0 +1 @@
export { default } from './server';

View File

@@ -8,22 +8,22 @@
"exclude": ["src/**/*.test.ts"],
"references": [
{
"path": "../../store"
"path": "../store"
},
{
"path": "../../config"
"path": "../config"
},
{
"path": "../../auth"
"path": "../auth"
},
{
"path": "../../logger"
"path": "../logger"
},
{
"path": "../../utils"
"path": "../utils"
},
{
"path": "../../core/core"
"path": "../core/core"
}
]
}

View File

@@ -1,5 +1,14 @@
# @verdaccio/hooks
## 6.0.0-6-next.13
### Patch Changes
- Updated dependencies [82cb0f2b]
- Updated dependencies [5167bb52]
- @verdaccio/core@6.0.0-6-next.5
- @verdaccio/logger@6.0.0-6-next.11
## 6.0.0-6-next.12
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/hooks",
"version": "6.0.0-6-next.12",
"version": "6.0.0-6-next.13",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -30,19 +30,18 @@
"npm": ">=6"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"core-js": "3.20.3",
"debug": "4.3.3",
"handlebars": "4.7.7",
"undici": "4.12.2",
"undici-fetch": "1.0.0-rc.4"
"undici": "4.15.0"
},
"devDependencies": {
"@types/node": "16.11.21",
"@verdaccio/auth": "workspace:6.0.0-6-next.19",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/auth": "workspace:6.0.0-6-next.21",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,10 +1,10 @@
import buildDebug from 'debug';
import { fetch } from 'undici';
import { HTTP_STATUS } from '@verdaccio/core';
import { logger } from '@verdaccio/logger';
const debug = buildDebug('verdaccio:hooks:request');
const fetch = require('undici-fetch');
export type FetchOptions = {
body: string;

View File

@@ -1,3 +1,5 @@
import { MockAgent, setGlobalDispatcher } from 'undici';
import { createRemoteUser, parseConfigFile } from '@verdaccio/config';
import { setup } from '@verdaccio/logger';
import { Config } from '@verdaccio/types';
@@ -16,8 +18,6 @@ const multiNotificationConfig = parseConfigFile(parseConfigurationNotifyFile('mu
setup([]);
const domain = 'http://slack-service';
const { MockAgent } = require('undici');
const { setGlobalDispatcher } = require('undici-fetch');
const options = {
path: '/foo?auth_token=mySecretToken',

View File

@@ -1,5 +1,18 @@
# @verdaccio/loaders
## 6.0.0-6-next.12
### Patch Changes
- Updated dependencies [82cb0f2b]
- @verdaccio/logger@6.0.0-6-next.11
## 6.0.0-6-next.11
### Patch Changes
- 31d661c7: always create plugin instance with new
## 6.0.0-6-next.10
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/loaders",
"version": "6.0.0-6-next.10",
"version": "6.0.0-6-next.12",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -13,15 +13,15 @@
"url": "https://github.com/verdaccio/verdaccio"
},
"dependencies": {
"@verdaccio/logger": "workspace:6.0.0-6-next.10",
"@verdaccio/logger": "workspace:6.0.0-6-next.11",
"debug": "4.3.3",
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.4",
"@verdaccio/config": "workspace:6.0.0-6-next.12",
"@verdaccio/mock": "workspace:6.0.0-6-next.13",
"@verdaccio/types": "workspace:11.0.0-6-next.10"
"@verdaccio/core": "workspace:6.0.0-6-next.5",
"@verdaccio/config": "workspace:6.0.0-6-next.13",
"@verdaccio/mock": "workspace:6.0.0-6-next.14",
"@verdaccio/types": "workspace:11.0.0-6-next.11"
},
"homepage": "https://verdaccio.org",
"keywords": [

View File

@@ -121,7 +121,7 @@ export function loadPlugin<T extends IPlugin<T>>(
try {
plugin = isES6(plugin)
? new plugin.default(mergeConfig(config, pluginConfigs[pluginId]), params)
: plugin(pluginConfigs[pluginId], params);
: new plugin(pluginConfigs[pluginId], params);
} catch (error: any) {
plugin = null;
logger.error({ error, pluginId }, 'error loading a plugin @{pluginId}: @{error}');

View File

@@ -26,7 +26,7 @@ export function fillInMsgTemplate(msg, templateOptions: ObjectTemplate, colors):
let str = templateOptions;
let isError;
if (name[0] === ERROR_FLAG) {
name = name.substr(1);
name = name.slice(1);
isError = true;
}

Some files were not shown because too many files have changed in this diff Show More