Compare commits

..

49 Commits

Author SHA1 Message Date
Juan Picado
c5e8c9c9c4 chore: update versions (6-next) (#3744)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-04-21 23:41:04 +02:00
Juan Picado
09753cc1fa fix wrong htpasswd file location (#3750) 2023-04-21 23:31:11 +02:00
verdacciobot
f86f9244f2 chore: updated static data 2023-04-20 00:12:50 +00:00
Juan Picado
a6956b7aaa Update README.md 2023-04-19 11:40:22 +02:00
Juan Picado
f6d5bb7223 Update README.md 2023-04-19 11:07:18 +02:00
Juan Picado
271a7c26ad Update README.md 2023-04-19 11:06:55 +02:00
renovate[bot]
8d773c1bad fix(deps): update docusaurus monorepo to v2.4.0 (#3729)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-19 10:48:43 +02:00
Juan Picado
3e71a3567b fix @mdx-js/react (#3745) 2023-04-19 08:33:19 +02:00
Juan Picado
bb4aabcae5 docs: add config builder api docs 2023-04-18 22:54:12 +02:00
Juan Picado
0dafa98263 fix: undefined field on missing count (#3743)
* fix: undefined field on missing count

* types
2023-04-18 00:52:45 +02:00
dependabot[bot]
dbd58cd275 chore(deps): bump actions/checkout from 3.5.0 to 3.5.2 (#3740)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.0 to 3.5.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8f4b7f8486...8e5e7e5ab8)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 23:22:46 +02:00
dependabot[bot]
ba8bc69b42 chore(deps): bump github/codeql-action from 2.2.11 to 2.2.12 (#3741)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.11 to 2.2.12.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](d186a2a36c...7df0ce3489)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-17 23:22:37 +02:00
Juan Picado
27831c09e8 update ci service 2023-04-17 07:49:45 +02:00
Juan Picado
06020fffc1 update ci 2023-04-17 07:45:00 +02:00
Juan Picado
9bd073da47 Update docker-compose.yaml 2023-04-17 07:40:05 +02:00
Juan Picado
e74a88ea31 fix ci build pipelines 2023-04-17 07:20:13 +02:00
Juan Picado
18216e54d4 fix: ui and docker nightly image (#3739)
* fix: ui and docker nightly image

some errors due pnpm.8 migration

* Update ci.yml

* ci
2023-04-17 07:14:00 +02:00
verdacciobot
6bd92c29a5 chore: updated static data 2023-04-17 00:12:55 +00:00
Juan Picado
8bbc357841 Update config.yml 2023-04-16 08:53:51 +02:00
Juan Picado
c1da31cdc5 restore lock file and static workflow 2023-04-13 07:27:44 +02:00
verdacciobot
c8b4340a69 chore: updated static data 2023-04-13 00:13:08 +00:00
Juan Picado
aa50c2f5fa Update Dockerfile 2023-04-12 22:21:08 +02:00
Juan Picado
a091bc3c4e Update Dockerfile 2023-04-12 21:49:24 +02:00
Juan Picado
8cb815ac23 chore: update crowdin cli 2023-04-12 21:23:10 +02:00
Juan Picado
e7e169e682 Update website.yml 2023-04-12 19:31:22 +02:00
Juan Picado
6010cb169b Update website.yml 2023-04-12 18:20:23 +02:00
Juan Picado
34a13a245d adjust ci workflows 2023-04-12 17:55:39 +02:00
Juan Picado
a479745483 Update ci.yml 2023-04-12 17:39:55 +02:00
Juan Picado
dc4c6cca1e Update changesets.yml 2023-04-12 12:08:47 +02:00
Juan Picado
d72a0555fc pnpm 8 upgrade build (#3726) 2023-04-12 08:23:01 +02:00
dependabot[bot]
55a6706834 chore(deps): bump actions/github-script from 6.4.0 to 6.4.1 (#3724)
Bumps [actions/github-script](https://github.com/actions/github-script) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](98814c53be...d7906e4ad0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 22:31:13 +02:00
dependabot[bot]
c9bccd6ea0 chore(deps): bump github/codeql-action from 2.2.9 to 2.2.11 (#3725)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.9 to 2.2.11.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](04df1262e6...d186a2a36c)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-10 22:31:05 +02:00
renovate[bot]
a5a711abff chore(deps): pin verdaccio/action-netlify-deploy action to 1c086d5 (#3723) 2023-04-10 08:09:05 +02:00
verdacciobot
3590c05577 chore: updated static data 2023-04-10 00:13:53 +00:00
renovate[bot]
d07fb8eb1f fix(deps): update dependency pino to v8.11.0 (#3722)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-07 08:44:45 +02:00
verdacciobot
b40ba719c7 chore: updated static data 2023-04-06 00:13:04 +00:00
dependabot[bot]
3cf670ebf7 chore(deps): bump github/codeql-action from 2.2.8 to 2.2.9 (#3715)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.8 to 2.2.9.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](67a35a0858...04df1262e6)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-03 20:55:51 +02:00
verdacciobot
701d2bae7c chore: updated static data 2023-04-03 00:13:17 +00:00
Juan Picado
6d00511f49 Update renovate.json 2023-04-02 18:13:39 +02:00
renovate[bot]
8d7df691ae fix(deps): update dependency npm to v9.6.3 (#3711)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-02 15:10:02 +02:00
dependabot[bot]
7aaffdd197 chore(deps): bump github/codeql-action from 2.2.7 to 2.2.8 (#3707)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](168b99b3c2...67a35a0858)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-30 18:22:56 +02:00
verdacciobot
c91921bfcd chore: updated static data 2023-03-30 00:13:32 +00:00
dependabot[bot]
95b17fe56d chore(deps): bump actions/checkout from 3.4.0 to 3.5.0 (#3706) 2023-03-27 18:54:32 +02:00
verdacciobot
945eff9258 chore: updated static data 2023-03-27 00:13:29 +00:00
dependabot[bot]
66467c3be0 chore(deps): bump actions/checkout from 3.3.0 to 3.4.0 (#3696)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](ac59398561...24cb908017)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2023-03-23 23:10:19 +01:00
renovate[bot]
ea6d7d58fe chore(deps): replace dependency babel-eslint with @babel/eslint-parser 7.11.0 (#3695)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-03-23 23:10:06 +01:00
dependabot[bot]
04014b54d6 chore(deps): bump github/codeql-action from 2.2.6 to 2.2.7 (#3697)
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 2.2.6 to 2.2.7.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](16964e90ba...168b99b3c2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-23 23:09:38 +01:00
verdacciobot
2947bf7403 chore: updated static data 2023-03-23 00:14:00 +00:00
verdacciobot
b3d9e1e632 chore: updated static data 2023-03-20 00:14:12 +00:00
123 changed files with 11931 additions and 12825 deletions

View File

@@ -145,6 +145,7 @@
"shaggy-parrots-smash",
"shiny-chefs-heal",
"shy-ducks-cover",
"silly-moose-watch",
"slow-carrots-relate",
"slow-snails-sniff",
"smart-apricots-kneel",
@@ -166,6 +167,7 @@
"three-moles-drop",
"three-pots-sit",
"tiny-seals-join",
"tough-days-search",
"tricky-taxis-watch",
"twelve-crabs-guess",
"two-dolls-check",

View File

@@ -0,0 +1,5 @@
---
'verdaccio-htpasswd': patch
---
fix wrong htpasswd file location

View File

@@ -0,0 +1,6 @@
---
'@verdaccio/ui-theme': patch
'@verdaccio/ui-components': patch
---
fix: undefined field on missing count

View File

@@ -8,7 +8,4 @@ contact_links:
about: I want to report a security vulnerability
- name: Chat 🏘
url: https://discord.gg/7qWJxBf
about: For a quick question you should do it through our community chat
- name: User Interface Report 👩🏼‍🎨👨🏼‍🎨
url: https://github.com/verdaccio/ui/issues/new/choose
about: Any report related with the User Interface should be posted in another repository
about: Quick question? Try out Discord chat, you can get faster feedback

View File

@@ -20,20 +20,19 @@ jobs:
if: github.ref == 'refs/heads/master' && github.repository == 'verdaccio/verdaccio'
steps:
- name: checkout code repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
with:
fetch-depth: 0
- name: setup node.js
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
node-version-file: '.nvmrc'
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}
- name: install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
env:
NODE_AUTH_TOKEN: ${{ secrets.REGISTRY_AUTH_TOKEN }}

View File

@@ -18,19 +18,23 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --frozen-lockfile --registry http://localhost:4873
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
@@ -43,19 +47,23 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm lint
format:
@@ -63,19 +71,23 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts
run: pnpm install --offline --reporter=silence --ignore-scripts
- name: Lint
run: pnpm format:check
build:
@@ -88,19 +100,23 @@ jobs:
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version: ${{ matrix.node_version }}
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts --registry http://localhost:4873
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
@@ -110,18 +126,22 @@ jobs:
runs-on: windows-latest
name: UI Test E2E
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --registry http://localhost:4873
run: pnpm install --offline --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI

View File

@@ -21,13 +21,13 @@ jobs:
name: setup verdaccio
services:
verdaccio:
image: verdaccio/verdaccio:nightly-master
image: verdaccio/verdaccio:5
ports:
- 4873:4873
env:
NODE_ENV: production
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
@@ -35,13 +35,13 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --frozen-lockfile --registry http://localhost:4873
run: pnpm install --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
@@ -54,7 +54,7 @@ jobs:
name: Lint
needs: prepare
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
@@ -62,13 +62,16 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts
run: pnpm install --offline --ignore-scripts
- name: Lint
run: pnpm lint
format:
@@ -76,7 +79,7 @@ jobs:
name: Format
needs: prepare
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
@@ -84,13 +87,16 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts
run: pnpm install --offline --ignore-scripts
- name: Lint
run: pnpm format:check
test:
@@ -103,7 +109,7 @@ jobs:
name: ${{ matrix.os }} / Node ${{ matrix.node_version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
@@ -111,13 +117,16 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts --registry http://localhost:4873
run: pnpm install --offline --ignore-scripts --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test
@@ -126,27 +135,30 @@ jobs:
needs: [test]
runs-on: ubuntu-latest
name: synchronize translations
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
## we need scripts, pupetter downloads aditional content
run: pnpm recursive install --frozen-lockfile --registry http://localhost:4873
run: pnpm install --registry http://localhost:4873
- name: build
run: pnpm build
- name: generate website translations
run: pnpm write-translations --filter ...@verdaccio/website
run: pnpm --filter ...@verdaccio/website write-translations
- name: sync
env:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}

View File

@@ -21,7 +21,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
@@ -34,7 +34,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@16964e90ba004cdf0cd845b866b5df21038b7723 # tag=v2
uses: github/codeql-action/init@7df0ce34898d659f95c0c4a09eaa8d4e32ee64db # tag=v2
# Override language selection by uncommenting this and choosing your languages
# with:
@@ -42,7 +42,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@16964e90ba004cdf0cd845b866b5df21038b7723 # tag=v2
uses: github/codeql-action/autobuild@7df0ce34898d659f95c0c4a09eaa8d4e32ee64db # tag=v2
# Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -56,4 +56,4 @@ jobs:
# make release
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@16964e90ba004cdf0cd845b866b5df21038b7723 # tag=v2
uses: github/codeql-action/analyze@7df0ce34898d659f95c0c4a09eaa8d4e32ee64db # tag=v2

View File

@@ -15,7 +15,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/apache-verdaccio/docker-compose.yaml" up -d --build

View File

@@ -12,7 +12,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3
- name: Start containers
run: docker-compose -f "./e2e/docker/proxy-nginx/docker-compose.yaml" up -d --build

View File

@@ -23,7 +23,7 @@ jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- uses: docker/setup-qemu-action@e81a89b1732b9c48d79cd809d8d81d79c4647a18 # tag=v1
- uses: docker/setup-buildx-action@v1
with:

View File

@@ -15,19 +15,19 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- name: set store
run: |
mkdir ~/.pnpm-store
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --frozen-lockfile --reporter=silence --ignore-scripts --registry http://localhost:4873
run: pnpm install --reporter=silence --ignore-scripts --registry http://localhost:4873
- name: Cache .pnpm-store
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
@@ -39,19 +39,22 @@ jobs:
needs: [prepare]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node 16
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version-file: '.nvmrc'
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --frozen-lockfile --reporter=silence --registry http://localhost:4873
run: pnpm recursive install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Cache packages
@@ -80,18 +83,21 @@ jobs:
name: ${{ matrix.pkg }}/ ubuntu-latest / ${{ matrix.node }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
node-version: ${{ matrix.node }}
- name: Install pnpm
run: npm i pnpm@6.32.15 -g
run: npm i pnpm@latest-8 -g
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ~/.pnpm-store
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: set store
run: |
pnpm config set store-dir ~/.pnpm-store
- name: Install
run: pnpm recursive install --offline --frozen-lockfile --reporter=silence --ignore-scripts --registry http://localhost:4873
run: pnpm install --offline --reporter=silence --ignore-scripts --registry http://localhost:4873
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: ./packages/
@@ -101,6 +107,6 @@ jobs:
# path: ./e2e/
# key: test-${{ hashFiles('pnpm-lock.yaml') }}-${{ github.run_id }}-${{ github.sha }}
- name: build e2e
run: pnpm run build --filter=./e2e
run: pnpm --filter @verdaccio/test-cli-commons build
- name: Test CLI
run: NODE_ENV=production pnpm test --filter ...@verdaccio/e2e-cli-${{matrix.pkg}}

View File

@@ -15,7 +15,7 @@ jobs:
env:
NODE_ENV: production
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
with:
@@ -23,9 +23,9 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- name: Install
run: pnpm install --frozen-lockfile --reporter=silence --registry http://localhost:4873
run: pnpm install --reporter=silence --registry http://localhost:4873
- name: build
run: pnpm build
- name: Test UI

View File

@@ -19,7 +19,7 @@ jobs:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
with:
persist-credentials: false
fetch-depth: 0
@@ -27,11 +27,11 @@ jobs:
with:
node-version: 18.x
- name: install pnpm
run: sudo npm i pnpm@latest-6 -g
run: sudo npm i pnpm@latest-8 -g
- name: install dependencies
run: pnpm install
- name: Build Translations percentage
run: pnpm build --filter "@verdaccio/crowdin-translations"
run: pnpm --filter @verdaccio/crowdin-translations build
- name: update contributors
run: pnpm run contributors
env:

View File

@@ -27,7 +27,7 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
@@ -47,9 +47,9 @@ jobs:
- name: Install pnpm
run: |
corepack enable
corepack prepare --activate pnpm@6.32.15
corepack prepare --activate pnpm@latest-8
- name: Install
run: pnpm recursive install --frozen-lockfile
run: pnpm install
- name: Build storybook
run: pnpm ui:storybook:build
- name: Copy public content
@@ -57,7 +57,7 @@ jobs:
run: cp -R packages/ui-components/public/* packages/ui-components/storybook-static
- name: 🔥 Deploy Production UI Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
uses: verdaccio/action-netlify-deploy@v2.0.0
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }}
@@ -65,7 +65,7 @@ jobs:
build-dir: './packages/ui-components/storybook-static'
- name: 🤖 Deploy Preview UI Components Netlify
if: github.repository == 'verdaccio/verdaccio'
uses: verdaccio/action-netlify-deploy@v2.0.0
uses: verdaccio/action-netlify-deploy@1c086d59169edeec9254672c7de17d2ceac3928f # v2.0.0
id: netlify_preview_ui
with:
draft: true

View File

@@ -23,7 +23,7 @@ jobs:
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # tag=v3
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # tag=v3
- name: Use Node 16
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # tag=v3
@@ -42,14 +42,14 @@ jobs:
- uses: pnpm/action-setup@c3b53f6a16e57305370b4ae5a540c2077a1d50dd # tag=v2.2.4
with:
version: 6.32.15
version: latest-8
run_install: |
- recursive: true
args: [--frozen-lockfile]
- name: Build
run: pnpm build
- name: Build Translations percentage
run: pnpm build --filter "@verdaccio/crowdin-translations"
run: pnpm --filter @verdaccio/crowdin-translations build
- name: Cache Docusaurus Build
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
@@ -66,7 +66,7 @@ jobs:
CROWDIN_VERDACCIO_API_KEY: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
SENTRY_KEY: ${{ secrets.SENTRY_KEY }}
CONTEXT: production
run: pnpm netlify:build:production --filter ...@verdaccio/website
run: pnpm --filter @verdaccio/website netlify:build:production
- name: 🔥 Deploy Production Netlify
if: (github.event_name == 'push' && github.ref == 'refs/heads/master') || github.event_name == 'workflow_dispatch'
@@ -81,7 +81,7 @@ jobs:
- name: Build Deployment Preview
env:
CONTEXT: deploy-preview
run: pnpm netlify:build:deployPreview --filter ...@verdaccio/website
run: pnpm --filter ...@verdaccio/website netlify:build:deployPreview
- name: 🤖 Deploy Preview Netlify
if: github.repository == 'verdaccio/verdaccio'
@@ -109,7 +109,7 @@ jobs:
- name: Format lighthouse score
id: format_lighthouse_score
uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # tag=v6
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # tag=v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |

1
.npmrc
View File

@@ -1,4 +1,3 @@
always-auth = true
recursive-install = true
loglevel=info
fetch-retries="10"

View File

@@ -44,7 +44,7 @@ This setting would cause the `pnpm install` command to install incorrect version
To begin your development setup, please install the latest version of pnpm globally:
```
npm i -g pnpm@latest-6
npm i -g pnpm@latest-8
```
With pnpm installed, the first step is installing all dependencies:

View File

@@ -1,7 +1,7 @@
FROM --platform=${BUILDPLATFORM:-linux/amd64} node:18-alpine as builder
ENV NODE_ENV=development \
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org
RUN apk --no-cache add openssl ca-certificates wget && \
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python3 && \
@@ -11,13 +11,13 @@ RUN apk --no-cache add openssl ca-certificates wget && \
WORKDIR /opt/verdaccio-build
COPY . .
RUN npm -g i pnpm@6.32.15 && \
RUN npm -g i pnpm@latest-8 && \
pnpm config set registry $VERDACCIO_BUILD_REGISTRY && \
pnpm recursive install --frozen-lockfile --ignore-scripts && \
pnpm install --frozen-lockfile --ignore-scripts && \
rm -Rf test && \
pnpm run build && \
pnpm install -P
# FIXME: need to remove devDependencies from the build
pnpm run build
# FIXME: need to remove devDependencies from the build
# NODE_ENV=production pnpm install --frozen-lockfile --ignore-scripts
# RUN pnpm install --prod --ignore-scripts
FROM node:18-alpine

View File

@@ -275,6 +275,7 @@ You can find and chat with then over Discord, click [here](http://chat.verdaccio
## Who is using Verdaccio?
- [create-react-app](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#customizing-e2e-registry-configuration) _(+86.2k ⭐️)_
- [Grafana](https://github.com/grafana/grafana/search?q=verdaccio) _(+54.9k ⭐️)_
- [Gatsby](https://github.com/gatsbyjs/gatsby) _(+49.2k ⭐️)_
- [Babel.js](https://github.com/babel/babel) _(+38.5k ⭐️)_
- [Docusaurus](https://github.com/facebook/docusaurus) _(+34k ⭐️)_

View File

@@ -5,8 +5,8 @@
"main": "./build/index.js",
"types": "./build/index.d.ts",
"devDependencies": {
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"debug": "4.3.4",
"fs-extra": "10.1.0",
@@ -14,7 +14,7 @@
"js-yaml": "4.1.0",
"get-port": "5.1.1",
"lodash": "4.17.21",
"verdaccio": "workspace:6.0.0-6-next.67"
"verdaccio": "workspace:6.0.0-6-next.68"
},
"scripts": {
"test": "jest",

View File

@@ -4,7 +4,7 @@
"version": "1.0.1-6-next.7",
"dependencies": {
"@verdaccio/test-cli-commons": "workspace:1.1.0-6-next.7",
"npm": "9.6.0"
"npm": "9.6.3"
},
"scripts": {
"test": "jest"

View File

@@ -3,9 +3,9 @@
"name": "@verdaccio/e2e-ui",
"version": "2.0.0-6-next.4",
"devDependencies": {
"verdaccio": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"verdaccio": "workspace:6.0.0-6-next.68",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
"debug": "4.3.4",
"cypress": "11.2.0",

View File

@@ -17,6 +17,7 @@
"devDependencies": {
"@babel/cli": "7.20.7",
"@babel/core": "7.20.7",
"@babel/eslint-parser": "7.11.0",
"@babel/node": "7.20.7",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-proposal-decorators": "7.20.7",
@@ -41,16 +42,21 @@
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.24.4",
"@changesets/get-dependents-graph": "1.3.5",
"@crowdin/cli": "3.9.1",
"@crowdin/cli": "3.10.1",
"@dianmora/contributors": "5.0.0",
"@emotion/react": "11.10.5",
"@emotion/styled": "11.10.5",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@testing-library/dom": "8.19.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.4",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@types/async": "3.2.16",
"@types/body-parser": "1.19.2",
"@types/connect": "3.4.35",
"@types/cookiejar": "2.1.2",
"@types/debug": "^4.1.7",
"@types/express": "4.17.15",
"@types/express-serve-static-core": "4.17.31",
"@types/http-errors": "1.8.2",
"@types/jest": "27.5.2",
"@types/jsonwebtoken": "8.5.9",
@@ -59,6 +65,8 @@
"@types/minimatch": "3.0.5",
"@types/node": "16.18.10",
"@types/node-fetch": "2.6.2",
"@types/qs": "6.9.7",
"@types/range-parser": "1.2.4",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.9",
"@types/react-router-dom": "5.3.3",
@@ -66,6 +74,8 @@
"@types/redux": "3.6.0",
"@types/request": "2.48.8",
"@types/semver": "7.3.13",
"@types/serve-static": "1.13.10",
"@types/superagent": "4.1.10",
"@types/supertest": "2.0.12",
"@types/testing-library__jest-dom": "5.14.5",
"@types/validator": "13.7.12",
@@ -78,7 +88,6 @@
"@verdaccio/types": "workspace:*",
"@verdaccio/ui-theme": "workspace:*",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "29.4.3",
"babel-plugin-dynamic-import-node": "2.3.3",
"babel-plugin-emotion": "10.2.2",
@@ -119,22 +128,22 @@
"scripts": {
"prepare": "husky install",
"husky:pre-commit": "lint-staged",
"clean": "pnpm run clean --filter=./packages",
"build": "pnpm run build --filter=./packages && pnpm run build --filter=./e2e",
"clean": "pnpm --filter \"./packages/**\" clean",
"build": "pnpm --filter \"./packages/**\" build && pnpm --filter @verdaccio/test-cli-commons build",
"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 100 \"**/*.{js,jsx,ts,tsx}\"",
"test": "pnpm recursive test --filter ./packages",
"test:e2e:cli": "pnpm test --filter ...@verdaccio/e2e-cli-* -- --coverage=false",
"test:e2e:ui": "pnpm test --filter ...@verdaccio/e2e-ui",
"test": "pnpm --filter \"./packages/**\" test",
"test:e2e:cli": "pnpm --filter ...@verdaccio/e2e-cli-* test -- --coverage=false",
"test:e2e:ui": "pnpm --filter ...@verdaccio/e2e-ui test",
"start": "concurrently --kill-others \"pnpm _start:server\" \"pnpm _start:web\"",
"contributors": "ts-node ./scripts/contributors-update.ts",
"script:addson": "ts-node ./scripts/addon-update.ts",
"start:watch": "concurrently --kill-others \"pnpm _build:watch\" \"pnpm _start:server\" \"pnpm _debug:reload\"",
"_build:watch": "pnpm run --parallel watch --filter ./packages",
"_start:server": "node --inspect packages/verdaccio/debug/bootstrap.js --listen 8000",
"_start:web": "pnpm start --filter ...@verdaccio/ui-theme",
"_start:web": "pnpm --filter ...@verdaccio/ui-theme start",
"_debug:reload": "nodemon -d 3 packages/verdaccio/debug/bootstrap.js",
"start:ts": "ts-node packages/verdaccio/src/start.ts -- --listen 8000",
"debug": "node --trace-warnings --trace-uncaught --inspect packages/verdaccio/debug/bootstrap.js",
@@ -147,15 +156,15 @@
"ci:version:changeset": "changeset version",
"ci:publish": "changeset publish",
"ts:ref": "update-ts-references --discardComments",
"website": "pnpm build --filter ...@verdaccio/website",
"ui:storybook:build": "pnpm build-storybook --filter ...@verdaccio/ui-components",
"ui:storybook": "pnpm storybook --filter ...@verdaccio/ui-components",
"website": "pnpm --filter ...@verdaccio/website build",
"ui:storybook:build": "pnpm --filter ...@verdaccio/ui-components build-storybook",
"ui:storybook": "pnpm --filter ...@verdaccio/ui-components storybook",
"translations": "local-crowdin-api translations",
"crowdin:upload": "crowdin upload sources --auto-update --config ./crowdin.yaml",
"crowdin:download": "crowdin download --verbose --config ./crowdin.yaml",
"crowdin:sync": "pnpm crowdin:upload && pnpm crowdin:download --verbose",
"crowdin:sync": "pnpm crowdin:upload && pnpm crowdin:download",
"postinstall": "husky install",
"local:registry": "pnpm start --filter ...@verdaccio/local-publish",
"local:registry": "pnpm --filter ...@verdaccio/local-publish start",
"local:snapshots": "changeset version --snapshot",
"local:publish": "cross-env npm_config_registry=http://localhost:4873 pnpm ci:publish -- --no-git-tag",
"local:publish:release": "concurrently \"pnpm local:registry\" \"pnpm local:publish\""
@@ -167,8 +176,7 @@
}
},
"engines": {
"node": ">=16.5",
"pnpm": ">=6.32.3 <7.0.0"
"node": ">=16.5"
},
"license": "MIT",
"lint-staged": {

View File

@@ -1,5 +1,17 @@
# @verdaccio/api
## 6.0.0-6-next.51
### Patch Changes
- @verdaccio/auth@6.0.0-6-next.47
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/middleware@6.0.0-6-next.47
- @verdaccio/store@6.0.0-6-next.48
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.50
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/api",
"version": "6.0.0-6-next.50",
"version": "6.0.0-6-next.51",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,13 +39,13 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/middleware": "workspace:6.0.0-6-next.46",
"@verdaccio/store": "workspace:6.0.0-6-next.47",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/middleware": "workspace:6.0.0-6-next.47",
"@verdaccio/store": "workspace:6.0.0-6-next.48",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"abortcontroller-polyfill": "1.7.5",
"cookies": "0.8.0",
"debug": "4.3.4",
@@ -57,7 +57,7 @@
},
"devDependencies": {
"@types/node": "16.18.10",
"@verdaccio/server": "workspace:6.0.0-6-next.56",
"@verdaccio/server": "workspace:6.0.0-6-next.57",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
"supertest": "6.3.3",

View File

@@ -1,5 +1,18 @@
# @verdaccio/auth
## 6.0.0-6-next.47
### Patch Changes
- Updated dependencies [09753cc1]
- verdaccio-htpasswd@11.0.0-6-next.38
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/loaders@6.0.0-6-next.37
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/signature@6.0.0-6-next.2
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.46
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/auth",
"version": "6.0.0-6-next.46",
"version": "6.0.0-6-next.47",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -39,16 +39,16 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/loaders": "workspace:6.0.0-6-next.36",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/loaders": "workspace:6.0.0-6-next.37",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/signature": "workspace:6.0.0-6-next.2",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"debug": "4.3.4",
"express": "4.18.2",
"lodash": "4.17.21",
"verdaccio-htpasswd": "workspace:11.0.0-6-next.37"
"verdaccio-htpasswd": "workspace:11.0.0-6-next.38"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25"

View File

@@ -1,5 +1,14 @@
# @verdaccio/cli
## 6.0.0-6-next.68
### Patch Changes
- @verdaccio/node-api@6.0.0-6-next.68
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.67
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/cli",
"version": "6.0.0-6-next.67",
"version": "6.0.0-6-next.68",
"author": {
"name": "Juan Picado",
"email": "juanpicado19@gmail.com"
@@ -44,10 +44,10 @@
"start": "ts-node src/index.ts"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/node-api": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/node-api": "workspace:6.0.0-6-next.68",
"clipanion": "3.2.0",
"envinfo": "7.8.1",
"kleur": "3.0.3",

View File

@@ -1,5 +1,12 @@
# @verdaccio/config
## 6.0.0-6-next.68
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/utils@6.0.0-6-next.36
## 6.0.0-6-next.67
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/config",
"version": "6.0.0-6-next.67",
"version": "6.0.0-6-next.68",
"description": "logger",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,8 +38,8 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"debug": "4.3.4",
"js-yaml": "4.1.0",
"lodash": "4.17.21",

View File

@@ -1,5 +1,7 @@
# @verdaccio/core
## 6.0.0-6-next.68
## 6.0.0-6-next.67
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/core",
"version": "6.0.0-6-next.67",
"version": "6.0.0-6-next.68",
"description": "core utilities",
"keywords": [
"private",

View File

@@ -1,5 +1,13 @@
# Change Log
## 11.0.0-6-next.37
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/url@11.0.0-6-next.34
- @verdaccio/utils@6.0.0-6-next.36
## 11.0.0-6-next.36
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/tarball",
"version": "11.0.0-6-next.36",
"version": "11.0.0-6-next.37",
"description": "tarball utilities resolver",
"keywords": [
"private",
@@ -34,9 +34,9 @@
},
"dependencies": {
"debug": "4.3.4",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/url": "workspace:11.0.0-6-next.33",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/url": "workspace:11.0.0-6-next.34",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"lodash": "4.17.21"
},
"devDependencies": {

View File

@@ -1,5 +1,11 @@
# Change Log
## 11.0.0-6-next.34
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
## 11.0.0-6-next.33
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/url",
"version": "11.0.0-6-next.33",
"version": "11.0.0-6-next.34",
"description": "url utilities resolver",
"keywords": [
"private",
@@ -33,7 +33,7 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"debug": "4.3.4",
"lodash": "4.17.21",
"validator": "13.9.0"

View File

@@ -1,5 +1,12 @@
# @verdaccio/hooks
## 6.0.0-6-next.38
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.37
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/hooks",
"version": "6.0.0-6-next.37",
"version": "6.0.0-6-next.38",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -29,8 +29,8 @@
"node": ">=16"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"core-js": "3.28.0",
"debug": "4.3.4",
"handlebars": "4.7.7",
@@ -38,8 +38,8 @@
},
"devDependencies": {
"@types/node": "16.18.10",
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:11.0.0-6-next.25"
},
"scripts": {

View File

@@ -1,5 +1,11 @@
# @verdaccio/loaders
## 6.0.0-6-next.37
### Patch Changes
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.36
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/loaders",
"version": "6.0.0-6-next.36",
"version": "6.0.0-6-next.37",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -13,13 +13,13 @@
"url": "https://github.com/verdaccio/verdaccio"
},
"dependencies": {
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"debug": "4.3.4",
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
"verdaccio-auth-memory": "workspace:*",

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger-7
## 6.0.0-6-next.13
### Patch Changes
- @verdaccio/logger-commons@6.0.0-6-next.36
## 6.0.0-6-next.12
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger-7",
"version": "6.0.0-6-next.12",
"version": "6.0.0-6-next.13",
"description": "logger for verdaccio 5.x version",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,7 +38,7 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.35",
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.36",
"pino": "7.11.0"
},
"devDependencies": {

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger-commons
## 6.0.0-6-next.36
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
## 6.0.0-6-next.35
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger-commons",
"version": "6.0.0-6-next.35",
"version": "6.0.0-6-next.36",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,13 +38,13 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/logger-prettify": "workspace:6.0.0-6-next.9",
"debug": "4.3.4",
"colorette": "2.0.19"
},
"devDependencies": {
"pino": "8.10.0",
"pino": "8.11.0",
"@verdaccio/types": "workspace:11.0.0-6-next.25"
},
"funding": {

View File

@@ -45,7 +45,7 @@
"sonic-boom": "3.2.1"
},
"devDependencies": {
"pino": "8.10.0"
"pino": "8.11.0"
},
"funding": {
"type": "opencollective",

View File

@@ -1,5 +1,11 @@
# @verdaccio/logger
## 6.0.0-6-next.36
### Patch Changes
- @verdaccio/logger-commons@6.0.0-6-next.36
## 6.0.0-6-next.35
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/logger",
"version": "6.0.0-6-next.35",
"version": "6.0.0-6-next.36",
"description": "logger",
"main": "./build/index.js",
"types": "./build/index.d.ts",
@@ -38,8 +38,8 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.35",
"pino": "8.10.0"
"@verdaccio/logger-commons": "workspace:6.0.0-6-next.36",
"pino": "8.11.0"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25"

View File

@@ -1,5 +1,14 @@
# @verdaccio/middleware
## 6.0.0-6-next.47
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/url@11.0.0-6-next.34
- @verdaccio/utils@6.0.0-6-next.36
## 6.0.0-6-next.46
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/middleware",
"version": "6.0.0-6-next.46",
"version": "6.0.0-6-next.47",
"description": "express middleware utils",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -38,10 +38,10 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/url": "workspace:11.0.0-6-next.33",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/url": "workspace:11.0.0-6-next.34",
"debug": "4.3.4",
"lru-cache": "7.16.1",
"express": "4.18.2",
@@ -54,7 +54,7 @@
"url": "https://opencollective.com/verdaccio"
},
"devDependencies": {
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"body-parser": "1.20.1",
"supertest": "6.3.3"
}

View File

@@ -1,5 +1,15 @@
# @verdaccio/node-api
## 6.0.0-6-next.68
### Patch Changes
- @verdaccio/server@6.0.0-6-next.57
- @verdaccio/server-fastify@6.0.0-6-next.49
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.67
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/node-api",
"version": "6.0.0-6-next.67",
"version": "6.0.0-6-next.68",
"description": "node API",
"main": "build/index.js",
"types": "build/index.d.ts",
@@ -39,11 +39,11 @@
},
"license": "MIT",
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/server": "workspace:6.0.0-6-next.56",
"@verdaccio/server-fastify": "workspace:6.0.0-6-next.48",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/server": "workspace:6.0.0-6-next.57",
"@verdaccio/server-fastify": "workspace:6.0.0-6-next.49",
"core-js": "3.28.0",
"debug": "4.3.4",
"lodash": "4.17.21"

View File

@@ -1,5 +1,12 @@
# Change Log
## 11.0.0-6-next.31
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
## 11.0.0-6-next.30
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-audit",
"version": "11.0.0-6-next.30",
"version": "11.0.0-6-next.31",
"description": "Verdaccio Middleware plugin to bypass npmjs audit",
"keywords": [
"private",
@@ -30,16 +30,16 @@
"node": ">=12"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"express": "4.18.2",
"https-proxy-agent": "5.0.1",
"node-fetch": "cjs"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"nock": "13.2.9",
"supertest": "6.3.3"
},

View File

@@ -1,5 +1,11 @@
# Change Log
## 11.0.0-6-next.33
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
## 11.0.0-6-next.32
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-auth-memory",
"version": "11.0.0-6-next.32",
"version": "11.0.0-6-next.33",
"description": "Auth plugin for Verdaccio that keeps users in memory",
"keywords": [
"private",
@@ -31,11 +31,12 @@
"npm": ">=6"
},
"dependencies": {
"debug": "4.3.4",
"@verdaccio/core": "workspace:6.0.0-6-next.67"
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"debug": "4.3.4"
},
"devDependencies": {
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@types/debug": "^4.1.7",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:11.0.0-6-next.25"
},
"scripts": {

View File

@@ -1,5 +1,12 @@
# Change Log
## 11.0.0-6-next.38
### Patch Changes
- 09753cc1: fix wrong htpasswd file location
- @verdaccio/core@6.0.0-6-next.68
## 11.0.0-6-next.37
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-htpasswd",
"version": "11.0.0-6-next.37",
"version": "11.0.0-6-next.38",
"description": "htpasswd auth plugin for Verdaccio",
"keywords": [
"private",
@@ -34,7 +34,7 @@
"npm": ">=6"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/file-locking": "workspace:11.0.0-6-next.7",
"apache-md5": "1.1.8",
"bcryptjs": "2.4.3",
@@ -46,8 +46,8 @@
"devDependencies": {
"@types/bcryptjs": "2.4.2",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"mockdate": "3.0.5"
},
"scripts": {

View File

@@ -1,6 +1,6 @@
import buildDebug from 'debug';
import fs from 'fs';
import { dirname, join, resolve } from 'path';
import { dirname, resolve } from 'path';
import { pluginUtils } from '@verdaccio/core';
import { unlockFile } from '@verdaccio/file-locking';
@@ -90,7 +90,7 @@ export default class HTPasswd
throw new Error('should specify "file" in config');
}
debug('config path: %s', options?.config?.configPath);
this.path = join(resolve(dirname(options?.config?.configPath ?? '')), file);
this.path = resolve(dirname(options?.config?.configPath), file);
this.logger.info({ file: this.path }, 'using htpasswd file: @{file}');
debug('htpasswd path:', this.path);
if (config.slow_verify_ms) {

View File

@@ -1,5 +1,12 @@
# Change Log
## 11.0.0-6-next.38
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/utils@6.0.0-6-next.36
## 11.0.0-6-next.37
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/local-storage",
"version": "11.0.0-6-next.37",
"version": "11.0.0-6-next.38",
"description": "Local storage implementation",
"keywords": [
"private",
@@ -37,9 +37,9 @@
"npm": ">=7"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/file-locking": "workspace:11.0.0-6-next.7",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"core-js": "3.28.0",
"debug": "4.3.4",
"globby": "11.1.0",
@@ -52,8 +52,8 @@
"devDependencies": {
"@types/minimatch": "3.0.5",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
"minimatch": "3.1.2"
},

View File

@@ -1,5 +1,11 @@
# Change Log
## 11.0.0-6-next.35
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
## 11.0.0-6-next.34
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "verdaccio-memory",
"version": "11.0.0-6-next.34",
"version": "11.0.0-6-next.35",
"description": "Storage implementation in memory",
"keywords": [
"private",
@@ -31,15 +31,15 @@
"npm": ">=6"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"memory-fs": "0.5.0",
"debug": "4.3.4",
"memfs": "3.4.12"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/logger": "workspace:6.0.0-6-next.35"
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/logger": "workspace:6.0.0-6-next.36"
},
"scripts": {
"clean": "rimraf ./build",

View File

@@ -1,5 +1,11 @@
# @verdaccio/ui-theme
## 6.0.0-6-next.68
### Patch Changes
- 0dafa982: fix: undefined field on missing count
## 6.0.0-6-next.67
## 6.0.0-6-next.66

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/ui-theme",
"version": "6.0.0-6-next.67",
"version": "6.0.0-6-next.68",
"description": "Verdaccio User Interface",
"author": {
"name": "Verdaccio Contributors",
@@ -13,31 +13,33 @@
"homepage": "https://verdaccio.org",
"main": "index.js",
"devDependencies": {
"@emotion/react": "11.10.5",
"@emotion/styled": "11.10.5",
"@mui/icons-material": "5.11.9",
"@mui/styles": "5.11.9",
"@mui/material": "5.11.9",
"@emotion/babel-plugin": "11.10.5",
"@emotion/css": "11.10.5",
"@emotion/babel-plugin": "11.10.6",
"@emotion/css": "11.10.6",
"@emotion/jest": "11.10.5",
"@emotion/react": "11.10.6",
"@emotion/styled": "11.10.6",
"@mui/icons-material": "5.11.16",
"@mui/material": "5.12.0",
"@mui/styles": "5.12.0",
"@rematch/core": "2.2.0",
"@rematch/loading": "2.1.2",
"@rematch/persist": "2.1.2",
"@testing-library/dom": "8.19.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@verdaccio/node-api": "workspace:6.0.0-6-next.67",
"@verdaccio/ui-components": "workspace:2.0.0-6-next.8",
"@verdaccio/node-api": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:*",
"normalize.css": "8.0.1",
"@verdaccio/ui-components": "workspace:2.0.0-6-next.9",
"babel-loader": "8.3.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"country-flag-icons": "1.5.5",
"css-loader": "6.7.3",
"dayjs": "1.11.7",
"dompurify": "2.4.5",
"friendly-errors-webpack-plugin": "1.7.0",
"github-markdown-css": "4.0.0",
"harmony-reflect": "1.6.2",
"highlight.js": "11.7.0",
"history": "4.10.1",
"html-webpack-plugin": "5.5.0",
"i18next": "20.6.1",
@@ -46,16 +48,14 @@
"js-yaml": "3.14.1",
"localstorage-memory": "1.0.3",
"lodash": "4.17.21",
"marked": "4.2.12",
"mini-css-extract-plugin": "2.7.2",
"msw": "0.49.2",
"mutationobserver-shim": "0.3.7",
"node-mocks-http": "1.12.1",
"normalize.css": "8.0.1",
"optimize-css-assets-webpack-plugin": "6.0.1",
"ora": "5.4.1",
"dompurify": "2.4.5",
"highlight.js": "11.7.0",
"github-markdown-css": "4.0.0",
"marked": "4.2.12",
"raw-loader": "4.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
@@ -114,7 +114,8 @@
"verdaccio:server": "node tools/verdaccio.js",
"build": "pnpm clean && webpack --config tools/webpack.prod.config.babel.js",
"build:stats": "webpack --config tools/webpack.prod.config.babel.js --json > stats.json",
"build:size": "webpack --config tools/webpack.prod.config.babel.js --json | webpack-bundle-size-analyzer"
"build:size": "webpack --config tools/webpack.prod.config.babel.js --json | webpack-bundle-size-analyzer",
"view-bundle": "pnpm run build:stats && webpack-bundle-analyzer stats.json"
},
"license": "MIT",
"collective": {

View File

@@ -29,9 +29,11 @@ import { listLanguages } from '../i18n/enabledLanguages';
import loadDayJSLocale from '../i18n/load-dayjs-locale';
import AppRoute, { history } from './AppRoute';
const StyledBox = styled(Box)<{ theme?: Theme }>(({ theme }) => ({
backgroundColor: theme?.palette.background.default,
}));
const StyledBox = styled(Box)<{ theme?: Theme }>(({ theme }) => {
return {
backgroundColor: theme?.palette.background.default,
};
});
const StyledBoxContent = styled(Box)<{ theme?: Theme }>(({ theme }) => ({
[`@media screen and (min-width: ${theme?.breakPoints.container}px)`]: {
@@ -87,6 +89,7 @@ const App: React.FC = () => {
useEffect(() => {
loadDayJSLocale();
}, []);
return (
<StrictMode>
<TranslatorProvider i18n={i18n} listLanguages={listLanguages} onMount={loadDayJSLocale}>

View File

@@ -29,7 +29,6 @@ i18n
whitelist: [...listLanguagesAsString],
load: 'currentOnly',
react: {
wait: true,
useSuspense: false,
},
resources: languages,

View File

@@ -47,11 +47,6 @@ module.exports = {
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
use: 'babel-loader',
},
{
test: /\.m?js/,
resolve: {
@@ -70,7 +65,6 @@ module.exports = {
test: /\.md$/,
use: 'raw-loader',
},
/* Typescript loader */
{
test: /\.tsx?$/,
use: 'babel-loader',

View File

@@ -1,5 +1,15 @@
# @verdaccio/proxy
## 6.0.0-6-next.46
### Patch Changes
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/local-storage@11.0.0-6-next.38
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.45
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/proxy",
"version": "6.0.0-6-next.45",
"version": "6.0.0-6-next.46",
"description": "verdaccio proxy fetcher",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,11 +39,11 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/local-storage": "workspace:11.0.0-6-next.37",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/local-storage": "workspace:11.0.0-6-next.38",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"JSONStream": "1.3.5",
"debug": "4.3.4",
"lodash": "4.17.21",

View File

@@ -1,5 +1,21 @@
# @verdaccio/server
## 6.0.0-6-next.57
### Patch Changes
- @verdaccio/auth@6.0.0-6-next.47
- @verdaccio/api@6.0.0-6-next.51
- verdaccio-audit@11.0.0-6-next.31
- @verdaccio/web@6.0.0-6-next.55
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/loaders@6.0.0-6-next.37
- @verdaccio/middleware@6.0.0-6-next.47
- @verdaccio/store@6.0.0-6-next.48
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.56
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/server",
"version": "6.0.0-6-next.56",
"version": "6.0.0-6-next.57",
"description": "server logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -30,17 +30,17 @@
"npm": ">=6"
},
"dependencies": {
"@verdaccio/api": "workspace:6.0.0-6-next.50",
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/loaders": "workspace:6.0.0-6-next.36",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/middleware": "workspace:6.0.0-6-next.46",
"@verdaccio/store": "workspace:6.0.0-6-next.47",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/web": "workspace:6.0.0-6-next.54",
"verdaccio-audit": "workspace:11.0.0-6-next.30",
"@verdaccio/api": "workspace:6.0.0-6-next.51",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/loaders": "workspace:6.0.0-6-next.37",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/middleware": "workspace:6.0.0-6-next.47",
"@verdaccio/store": "workspace:6.0.0-6-next.48",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"@verdaccio/web": "workspace:6.0.0-6-next.55",
"verdaccio-audit": "workspace:11.0.0-6-next.31",
"compression": "1.7.4",
"cors": "2.8.5",
"debug": "4.3.4",
@@ -49,7 +49,7 @@
},
"devDependencies": {
"@types/node": "16.18.10",
"@verdaccio/proxy": "workspace:6.0.0-6-next.45",
"@verdaccio/proxy": "workspace:6.0.0-6-next.46",
"@verdaccio/test-helper": "workspace:2.0.0-6-next.8",
"http-errors": "1.8.1"
},

View File

@@ -1,5 +1,17 @@
# @verdaccio/server-fastify
## 6.0.0-6-next.49
### Patch Changes
- @verdaccio/auth@6.0.0-6-next.47
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/tarball@11.0.0-6-next.37
- @verdaccio/store@6.0.0-6-next.48
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.48
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/server-fastify",
"version": "6.0.0-6-next.48",
"version": "6.0.0-6-next.49",
"description": "fastify server api implementation",
"keywords": [
"private",
@@ -34,13 +34,13 @@
"access": "public"
},
"dependencies": {
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/store": "workspace:6.0.0-6-next.47",
"@verdaccio/tarball": "workspace:11.0.0-6-next.36",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/store": "workspace:6.0.0-6-next.48",
"@verdaccio/tarball": "workspace:11.0.0-6-next.37",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"core-js": "3.28.0",
"debug": "4.3.4",
"fastify": "4.13.0",

View File

@@ -43,7 +43,7 @@
"lodash": "4.17.21"
},
"devDependencies": {
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/types": "workspace:11.0.0-6-next.25"
},
"funding": {

View File

@@ -32,8 +32,8 @@
"homepage": "https://verdaccio.org",
"license": "MIT",
"devDependencies": {
"@verdaccio/cli": "workspace:6.0.0-6-next.67",
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.67",
"@verdaccio/cli": "workspace:6.0.0-6-next.68",
"@verdaccio/ui-theme": "workspace:6.0.0-6-next.68",
"fs-extra": "10.1.0",
"webpack": "5.75.0",
"webpack-bundle-analyzer": "4.7.0",

View File

@@ -1,5 +1,20 @@
# @verdaccio/store
## 6.0.0-6-next.48
### Patch Changes
- @verdaccio/hooks@6.0.0-6-next.38
- @verdaccio/core@6.0.0-6-next.68
- @verdaccio/config@6.0.0-6-next.68
- @verdaccio/tarball@11.0.0-6-next.37
- @verdaccio/url@11.0.0-6-next.34
- @verdaccio/loaders@6.0.0-6-next.37
- @verdaccio/local-storage@11.0.0-6-next.38
- @verdaccio/proxy@6.0.0-6-next.46
- @verdaccio/utils@6.0.0-6-next.36
- @verdaccio/logger@6.0.0-6-next.36
## 6.0.0-6-next.47
### Minor Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/store",
"version": "6.0.0-6-next.47",
"version": "6.0.0-6-next.48",
"description": "loaders logic",
"main": "./build/index.js",
"types": "build/index.d.ts",
@@ -39,16 +39,16 @@
"build": "pnpm run build:js && pnpm run build:types"
},
"dependencies": {
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/hooks": "workspace:6.0.0-6-next.37",
"@verdaccio/loaders": "workspace:6.0.0-6-next.36",
"@verdaccio/local-storage": "workspace:11.0.0-6-next.37",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/proxy": "workspace:6.0.0-6-next.45",
"@verdaccio/url": "workspace:11.0.0-6-next.33",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/tarball": "workspace:11.0.0-6-next.36",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/hooks": "workspace:6.0.0-6-next.38",
"@verdaccio/loaders": "workspace:6.0.0-6-next.37",
"@verdaccio/local-storage": "workspace:11.0.0-6-next.38",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/proxy": "workspace:6.0.0-6-next.46",
"@verdaccio/url": "workspace:11.0.0-6-next.34",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"@verdaccio/tarball": "workspace:11.0.0-6-next.37",
"JSONStream": "1.3.5",
"debug": "4.3.4",
"lodash": "4.17.21",

View File

@@ -5,8 +5,8 @@
"main": "./build/index.js",
"types": "build/index.d.ts",
"dependencies": {
"@docusaurus/types": "2.3.1",
"@docusaurus/utils": "2.3.1"
"@docusaurus/types": "2.4.0",
"@docusaurus/utils": "2.4.0"
},
"devDependencies": {
"react": "17.0.2",

View File

@@ -3,11 +3,11 @@
{
"id": 558752,
"login": "juanpicado",
"contributions": 5030,
"contributions": 5067,
"repositories": [
{
"name": "verdaccio",
"contributions": 2728
"contributions": 2753
},
{
"name": "verdaccio-cookbook",
@@ -15,7 +15,7 @@
},
{
"name": "generator-verdaccio-plugin",
"contributions": 91
"contributions": 96
},
{
"name": "puppet-verdaccio",
@@ -59,7 +59,7 @@
},
{
"name": "monorepo",
"contributions": 197
"contributions": 202
},
{
"name": "authentication-plugin-sample",
@@ -135,7 +135,7 @@
},
{
"name": "e2e-5.x",
"contributions": 49
"contributions": 51
}
]
},
@@ -4791,7 +4791,7 @@
"full_name": "verdaccio/verdaccio",
"html_url": "https://github.com/verdaccio/verdaccio",
"description": "📦🔐 A lightweight Node.js private proxy registry",
"stargazers_count": 14522,
"stargazers_count": 14659,
"archived": false
},
{
@@ -4908,7 +4908,7 @@
"full_name": "verdaccio/verdaccio-audit",
"html_url": "https://github.com/verdaccio/verdaccio-audit",
"description": "🛡🔬verdaccio plugin for npm audit support",
"stargazers_count": 13,
"stargazers_count": 12,
"archived": true
},
{
@@ -4916,7 +4916,7 @@
"login": "verdaccio",
"full_name": "verdaccio/monorepo",
"html_url": "https://github.com/verdaccio/monorepo",
"description": "🏰 Core dependencies and plugins for verdaccio 5.x branch",
"description": "🏰 Core dependencies and plugins for verdaccio 5.x branch ⚠️ DEPRECATED",
"stargazers_count": 73,
"archived": false
},
@@ -5061,7 +5061,7 @@
"full_name": "verdaccio/charts",
"html_url": "https://github.com/verdaccio/charts",
"description": "☸️🐳 Verdaccio Helm chart repository",
"stargazers_count": 43,
"stargazers_count": 45,
"archived": false
},
{

View File

@@ -10,12 +10,12 @@
"types": "build/index.d.ts",
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/auth": "workspace:6.0.0-6-next.46",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"@verdaccio/middleware": "workspace:6.0.0-6-next.46",
"@verdaccio/logger": "workspace:6.0.0-6-next.35",
"@verdaccio/utils": "workspace:6.0.0-6-next.35",
"@verdaccio/auth": "workspace:6.0.0-6-next.47",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"@verdaccio/middleware": "workspace:6.0.0-6-next.47",
"@verdaccio/logger": "workspace:6.0.0-6-next.36",
"@verdaccio/utils": "workspace:6.0.0-6-next.36",
"body-parser": "1.20.1",
"express": "4.18.2",
"supertest": "6.3.3",

View File

@@ -5,3 +5,5 @@ declare module 'pretty-format' {
declare module '@jest/schemas' {
export type SnapshotFormat = any;
}
declare module 'ms';

View File

@@ -10,9 +10,9 @@
"types": "build/index.d.ts",
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@verdaccio/core": "workspace:6.0.0-6-next.67",
"@verdaccio/config": "workspace:6.0.0-6-next.67",
"verdaccio": "6.0.0-6-next.67",
"@verdaccio/core": "workspace:6.0.0-6-next.68",
"@verdaccio/config": "workspace:6.0.0-6-next.68",
"verdaccio": "6.0.0-6-next.68",
"ts-node": "10.9.1"
},
"scripts": {

View File

@@ -20,8 +20,8 @@
"approvalProgress": 1
},
"it": {
"translationProgress": 88,
"approvalProgress": 61
"translationProgress": 87,
"approvalProgress": 60
},
"ja": {
"translationProgress": 1,
@@ -56,12 +56,12 @@
"approvalProgress": 2
},
"uk": {
"translationProgress": 0,
"translationProgress": 1,
"approvalProgress": 0
},
"vi": {
"translationProgress": 7,
"approvalProgress": 7
"translationProgress": 6,
"approvalProgress": 6
},
"yo": {
"translationProgress": 14,

View File

@@ -1,5 +1,11 @@
# @verdaccio/ui-components
## 2.0.0-6-next.9
### Patch Changes
- 0dafa982: fix: undefined field on missing count
## 2.0.0-6-next.8
### Patch Changes

View File

@@ -10,11 +10,17 @@ module.exports = Object.assign({}, config, {
url: 'http://localhost:9000/',
},
rootDir: '..',
collectCoverage: true,
setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect', '<rootDir>/jest/setup-env.ts'],
setupFiles: ['<rootDir>/jest/setup.ts'],
transformIgnorePatterns: ['<rootDir>/node_modules/(?!react-syntax-highlighter)'],
snapshotSerializers: ['@emotion/jest/serializer'],
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!**/node_modules/**'],
collectCoverageFrom: [
'src/**/*.{ts,tsx}',
'!**/node_modules/**',
'!src/**/*.stories.{ts,tsx}',
'!src/types/**',
],
modulePathIgnorePatterns: ['<rootDir>/build/'],
moduleNameMapper: {
'\\.(s?css)$': '<rootDir>/jest/identity.js',
@@ -26,7 +32,7 @@ module.exports = Object.assign({}, config, {
'react-markdown': '<rootDir>/src/__mocks__/react-markdown.tsx',
'remark-*': '<rootDir>/src/__mocks__/remark-plugin.ts',
},
coverageReporters: [['text', { skipFull: true }]],
coverageReporters: ['text', 'html'],
coverageThreshold: {
global: {
branches: 68,

View File

@@ -1,6 +1,6 @@
{
"name": "@verdaccio/ui-components",
"version": "2.0.0-6-next.8",
"version": "2.0.0-6-next.9",
"description": "theme ui component",
"author": "Juan Picado <juanpicado19@gmail.com>",
"license": "MIT",
@@ -15,23 +15,27 @@
"build:types": "tsc --emitDeclarationOnly -p tsconfig.build.json",
"build:js": "babel src/ --out-dir build/ --copy-files --no-copy-ignored --extensions \".ts,.tsx\" --source-maps --ignore \"src/**/*.stories.tsx\" --ignore \"src/**/*.test.tsx\" --ignore \"src/**/*.test.ts\"",
"build": "pnpm run build:js && pnpm run build:types",
"storybook": "start-storybook -p 6006 -s ./public",
"start": "start-storybook -p 6006 -s ./public",
"build-storybook": "build-storybook"
},
"dependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "5.11.9",
"@mui/material": "5.11.9",
"@mui/styles": "5.11.9",
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/icons-material": "5.11.16",
"@mui/material": "5.12.0",
"@mui/styles": "5.12.0",
"@mui/system": "5.12.0",
"@rematch/core": "2.2.0",
"@rematch/loading": "2.1.2",
"@rematch/persist": "2.1.2",
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@fontsource/material-icons": "^4.5.4",
"@fontsource/roboto": "^4.5.8",
"country-flag-icons": "1.5.5",
"dayjs": "1.11.7",
"dompurify": "2.4.5",
"github-markdown-css": "5.1.0",
"highlight.js": "11.7.0",
"history": "4.10.1",
"i18next": "20.6.1",
"localstorage-memory": "1.0.3",
"lodash": "4.17.21",
@@ -39,26 +43,23 @@
"normalize.css": "8.0.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "7.41.1",
"react-i18next": "12.1.1",
"react-json-view": "1.21.3",
"react-markdown": "8.0.5",
"react-redux": "7.2.9",
"react-hook-form": "7.41.1",
"react-router": "5.3.4",
"react-router-dom": "5.3.4",
"react-virtualized": "9.22.3",
"country-flag-icons": "1.5.5",
"history": "4.10.1",
"react-markdown": "8.0.5",
"remark-gfm": "3.0.1",
"redux": "4.2.1",
"remark-gfm": "3.0.1",
"validator": "13.9.0"
},
"devDependencies": {
"@verdaccio/types": "workspace:11.0.0-6-next.25",
"@babel/core": "^7.20.7",
"@emotion/babel-plugin": "11.10.5",
"@emotion/babel-plugin": "11.10.6",
"@emotion/jest": "11.10.5",
"@fontsource/material-icons": "^4.5.4",
"@fontsource/roboto": "^4.5.8",
"@storybook/addon-actions": "^6.5.15",
"@storybook/addon-essentials": "^6.5.15",
"@storybook/addon-interactions": "^6.5.15",
@@ -70,6 +71,9 @@
"@testing-library/dom": "8.19.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.4.0",
"@types/hast": "^2.0.0",
"@types/react-router": "^5.1.20",
"@types/unist": "^2.0.0",
"babel-loader": "^8.3.0",
"mockdate": "3.0.5",
"msw": "0.49.2"

View File

@@ -30,7 +30,6 @@ const ThemeProvider: React.FC<{ children: any }> = ({ children }) => {
const themeMode: ThemeMode = isDarkMode ? 'dark' : 'light';
const currentTheme = getTheme(themeMode, configOptions.primaryColor);
return (
<ThemeContext.Provider value={{ isDarkMode, setIsDarkMode }}>
<StyledEngineProvider injectFirst={true}>

View File

@@ -1,6 +1,6 @@
import styled from '@emotion/styled';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import { styled } from '@mui/system';
import React from 'react';
import { Theme } from '../../Theme';

View File

@@ -6,7 +6,7 @@ export default {
title: 'Dist',
};
export const DistFileAll: any = () => (
export const AllProperties: any = () => (
<Dist
packageMeta={{
latest: {
@@ -16,7 +16,50 @@ export const DistFileAll: any = () => (
fileCount: 7,
unpackedSize: 10,
},
license: '',
license: 'MIT',
},
_uplinks: {},
}}
/>
);
export const NoFileSize: any = () => (
<Dist
packageMeta={{
latest: {
name: 'verdaccio1',
version: '4.0.0',
dist: {
// @ts-ignore
fileCount: undefined,
unpackedSize: 10,
},
license: 'MIT',
},
_uplinks: {},
}}
/>
);
export const OnlyLicense: any = () => (
<Dist
packageMeta={{
latest: {
name: 'verdaccio1',
version: '4.0.0',
license: { type: 'MIT' },
},
_uplinks: {},
}}
/>
);
export const NoRender: any = () => (
<Dist
packageMeta={{
latest: {
name: 'verdaccio1',
version: '4.0.0',
},
_uplinks: {},
}}

View File

@@ -14,7 +14,7 @@ describe('<Dist /> component', () => {
});
test('should render the component in default state', () => {
const wrapper = render(
const { getByText } = render(
withDistComponent({
latest: {
name: 'verdaccio1',
@@ -28,11 +28,16 @@ describe('<Dist /> component', () => {
_uplinks: {},
})
);
expect(wrapper).toMatchSnapshot();
expect(getByText('sidebar.distribution.title')).toBeInTheDocument();
expect(getByText('sidebar.distribution.file-count')).toBeInTheDocument();
expect(getByText('sidebar.distribution.size')).toBeInTheDocument();
expect(getByText('sidebar.distribution.size')).toBeInTheDocument();
expect(getByText('7', { exact: false })).toBeInTheDocument();
expect(getByText('10.00 Bytes', { exact: false })).toBeInTheDocument();
});
test('should render the component with license as string', () => {
const wrapper = render(
const { getByText } = render(
withDistComponent({
latest: {
name: 'verdaccio2',
@@ -46,11 +51,11 @@ describe('<Dist /> component', () => {
_uplinks: {},
})
);
expect(wrapper).toMatchSnapshot();
expect(getByText('MIT', { exact: false })).toBeInTheDocument();
});
test('should render the component with license as object', () => {
const wrapper = render(
const { getByText } = render(
withDistComponent({
latest: {
name: 'verdaccio3',
@@ -67,6 +72,28 @@ describe('<Dist /> component', () => {
_uplinks: {},
})
);
expect(wrapper).toMatchSnapshot();
expect(getByText('MIT', { exact: false })).toBeInTheDocument();
});
test('should not render if latest is missing', () => {
const { queryAllByText } = render(
withDistComponent({
// @ts-ignore
latest: undefined,
_uplinks: {},
})
);
expect(queryAllByText('sidebar.distribution.title')).toHaveLength(0);
});
test('should not render if latest content is missing', () => {
const { queryAllByText } = render(
withDistComponent({
// @ts-expect-error
latest: { dist: undefined, license: undefined },
_uplinks: {},
})
);
expect(queryAllByText('sidebar.distribution.title')).toHaveLength(0);
});
});

View File

@@ -25,23 +25,31 @@ const DistChip: FC<{ name: string; children?: React.ReactElement | string }> = (
const Dist: FC<{ packageMeta: PackageMetaInterface }> = ({ packageMeta }) => {
const { t } = useTranslation();
if (!packageMeta) {
if (!packageMeta?.latest) {
return null;
}
const { dist, license } = packageMeta && packageMeta.latest;
const { dist, license } = packageMeta.latest;
if (!dist && !license) {
return null;
}
return (
<List
subheader={<StyledText variant="subtitle1">{t('sidebar.distribution.title')}</StyledText>}
>
<DistListItem>
<DistChip name={t('sidebar.distribution.file-count')}>{`${dist.fileCount}`}</DistChip>
{dist.unpackedSize ? (
{dist?.fileCount && (
<DistChip name={t('sidebar.distribution.file-count')}>{`${dist.fileCount}`}</DistChip>
)}
{dist?.unpackedSize ? (
<DistChip name={t('sidebar.distribution.size')}>{fileSizeSI(dist.unpackedSize)}</DistChip>
) : null}
<DistChip name={t('sidebar.distribution.license')}>{formatLicense(license)}</DistChip>
<DistChip name={t('sidebar.distribution.license')}>
{formatLicense(license as string)}
</DistChip>
</DistListItem>
</List>
);

View File

@@ -1,10 +1,11 @@
import { LicenseInterface } from '../../types/packageMeta';
/**
* Formats license field for webui.
* @see https://docs.npmjs.com/files/package.json#license
*/
// License should use type License defined above, but conflicts with the unit test that provide array or empty object
/* eslint-disable @typescript-eslint/no-explicit-any */
export function formatLicense(license: any): string | undefined {
export function formatLicense(license: string | LicenseInterface): string | undefined {
if (typeof license === 'string') {
return license;
}

View File

@@ -0,0 +1,17 @@
import { fileSizeSI, formatLicense } from './utils';
test('formatLicense as string', () => {
expect(formatLicense('MIT')).toEqual('MIT');
});
test('formatLicense as format object', () => {
expect(formatLicense({ type: 'MIT' })).toEqual('MIT');
});
test('fileSizeSI as number 1000', () => {
expect(fileSizeSI(1000)).toEqual('1.00 kB');
});
test('fileSizeSI as number 0', () => {
expect(fileSizeSI(0)).toEqual('0.00 Bytes');
});

View File

@@ -122,7 +122,7 @@ const Package: React.FC<PackageInterface> = ({
license && (
<OverviewItem>
<StyledLaw />
{license}
{license as string}
</OverviewItem>
);

View File

@@ -0,0 +1,52 @@
import { render } from '@testing-library/react';
import i18n from 'i18next';
import React from 'react';
import { initReactI18next } from 'react-i18next';
import { useTranslation } from 'react-i18next';
import TranslatorProvider, { useLanguage } from './TranslatorProvider';
i18n.use(initReactI18next).init({
lng: 'en-US',
fallbackLng: 'en-US',
whitelist: ['en-US'],
load: 'currentOnly',
react: {
useSuspense: false,
},
resources: {
'en-US': {
translation: {
'copy-to-clipboard': 'Copy to clipboard',
'author-anonymous': 'Anonymous',
'author-unknown': 'Unknown',
},
},
},
debug: false,
interpolation: {
escapeValue: false,
},
});
const RandomComponent = () => {
const { language } = useLanguage();
const { t } = useTranslation();
return (
<div>
<div>{language}</div>
<div>{t('copy-to-clipboard')}</div>
</div>
);
};
test('should provide translation', () => {
const mount = jest.fn();
const { getByText } = render(
<TranslatorProvider i18n={i18n} listLanguages={[]} onMount={mount}>
<RandomComponent />
</TranslatorProvider>
);
expect(getByText('en-US')).toBeInTheDocument();
expect(getByText('Copy to clipboard')).toBeInTheDocument();
});

View File

@@ -1,3 +1,4 @@
import { i18n } from 'i18next';
import React, { FunctionComponent, createContext, useCallback, useContext, useEffect } from 'react';
import { I18nextProvider } from 'react-i18next';
@@ -24,7 +25,7 @@ const I18nTranslatorContext = createContext<TranslatorProviderProps>({
*/
const TranslatorProvider: FunctionComponent<{
children: React.ReactElement<any>;
i18n: any;
i18n: i18n;
listLanguages: any;
onMount: () => {};
}> = ({ children, onMount, i18n, listLanguages }) => {

View File

@@ -16,7 +16,7 @@ function CustomComponent() {
const { packageMeta, packageName, packageVersion } = useVersion();
return (
<div>
<div>{packageMeta?.latest?.license}</div>
<div>{packageMeta?.latest?.license as string}</div>
<div>{packageName}</div>
<div>{packageVersion}</div>
</div>

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