0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
Commit graph

644 commits

Author SHA1 Message Date
renovate[bot]
a11c3cf924
fix(deps): update core verdaccio dependencies (6.x) (#4728)
* fix(deps): update core verdaccio dependencies

* Update publish.spec.ts.snap

* update deps

* Update ci.yml

* Update ci.yml

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2024-07-21 18:43:16 +02:00
Juan Picado
6edd6d29a7
chore: clean up old code (#4645)
* clean up duplicated methods

* format

* Update initializeServer.ts
2024-05-13 21:18:06 +02:00
Juan Picado
7b1414733b
feat: migrateToSecureLegacySignature 6.x (#4643)
* migrate to forceMigrateToSecureLegacySignature

update dependencies

* Update ci.yml

* Update ci.yml

* format

* improve ci
2024-05-13 19:52:34 +02:00
Juan Picado
ed3ce4dc93
feat: enable stream search from user interface (#4544)
* feat: search refactor

* add remote text support

* format

* remove indexser

* remove dep

* format
2024-03-17 11:32:01 +01:00
Juan Picado
a183446000 fix: profile v1 endpoint and tests 2024-02-03 12:07:15 +01:00
Juan Picado
428a256626
feat: refactor auth class (#4364)
* feat: refactor auth class

* chore: fix lint issues

* chore: fix lint issues

* Update user.ts

* chore: remove cookies dep
2024-01-01 20:23:23 +01:00
Juan Picado
62483bc1d0 chore: cleanup code 2023-10-30 07:37:30 +01:00
Juan Picado
8a8a3307a1
feat!: using new plugin loader (#4097)
* feat!: using new plugin loader

Already implemented here https://github.com/verdaccio/verdaccio/pull/3370

* format

* Update index.ts

* update ci

* fix workflow

* Update e2e-angular-cli-workflow.yml

* Update e2e-jest-workflow.yml

* ci

* test

* Create e2e-audit-workflow.yml

* Create e2e-next-cli-workflow.yml

* Delete e2e-next-cli-workflow.yml

* chore: replace storage plugin loader

* Update local-storage.spec.ts

* remove cache

* auth plugin loader

* format
2023-10-29 18:11:41 +01:00
Tiago Mota
e174e8c554
feat(experiment): accept async tarball_url_redirect function (#3914)
* chore: await tarball_url_redirect function

* test: unit test async tarball_url_redirect

* chore: prettier format

* chore: refactor redirectOrDownloadStream to better error handling

* refactor tests

* format

* format

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2023-10-07 23:49:28 +02:00
Juan Picado
c2aa0b6d3f
feat: search on cache packages (#4001)
* feat: search on cache packages

* remove dep
2023-09-02 23:08:22 +02:00
Juan Picado
d40d0ff7b3
feat!: remove request (#3960) 2023-08-28 23:03:36 +02:00
Juan Picado
5e9637da90
fix: add missing token auth middleware (#3944)
* fix: add missing token auth middleware

* improve tests

* format
2023-07-21 00:32:14 +02:00
Juan Picado
770cd27759
feat: replace internal web search indexer (#3818)
* feat: replace internal search indexer

* chore: add import

* chore: fix tests

* add search dependency

* remove lunr-mutable-indexes
2023-05-14 13:27:09 +02:00
Juan Picado
e939ca24af
feat: upgrade plugin htpassw major (#3712)
Replaces default auth plugin verdaccio-htpasswd@10.x by verdaccio-htpasswd@11.x which is being used in verdaccio 6.x (almost identical)
Apply backward compabiity
Reduces maintenance (monorepo plugin can be removed)
One more step to switch v6.x
Add Node.js 12 GH Action for check backward compatibility
2023-04-22 11:08:59 +02:00
Juan Picado
783422b4a2
refactor: migrate @verdaccio/types@11.x (#3692)
* refactor: migrate @verdaccio/types@11

* deps
2023-03-18 22:40:34 +01:00
Juan Picado
f6c22d3ea8
fix: #3666 experiments config fail on startup (#3668)
* fix: #3666 experiments config fail on startup

* Update experiments.yaml

* Update init.ts

* add tests

* Update bootstrap.ts

* update deps

* update deps
2023-03-07 22:50:16 +01:00
Juan Picado
8d584dddd0 chore: refactor createAnonymousRemoteUser and createRemoteUser 2023-03-03 21:50:43 +01:00
Juan Picado
e50d4d92a2
feat: improved config and token signature (#3658)
* chore: add signature module

* feat: improved config and token signature

feat: improved config and token signature

Update package.json

* chore: update deps

* types

* fix: logger missing options

* chore: update deps

* update dep

* Update e2e-jest-workflow.yml

* Update init.ts

* Update config-path.ts

* fix logger

* Update init.ts
2023-03-03 21:32:10 +01:00
薄涛
e4573c7e15
fix: avoid setting body for GET requests (#3643)
* fix: avoid setting body for GET requests

When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests.

This commit fixes the issue by checking the request method and avoiding setting the body field for GET requests. This ensures that GET requests are not affected by the issue and can be made without error.

Fixes #3601

* add missing deps for run test locally

* test(up-storage): add unit test about uplink is npmmirror

Cause thers is a bug in `isObject` function from `@verdaccio/core`, when `options.json` is `true`
GET request body will be string 'true', some uplinks might return 413 status code such as
https://registry.npmmirror.com

fix #3601

* chore(deps): update @verdaccio/core

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
Co-authored-by: botao <botao@tal.com>
2023-02-24 07:18:18 +01:00
Juan Picado
f9f269ee04
feat: refactor render middleware and audit plugin (#3602)
* chore: replace web middleware

* clean up

* migrate user agent

* migrate rate limit

* clean up

* replace audit plugin

* feat: refactor render middleware and audit plugin

* update deps

* update deps

* update packages

* update deps

* chore: update deps

* update deps

* update config dep

* chore: update deps

* update deps
2023-02-14 22:20:11 +01:00
Juan Picado
bf9ed26d90
feat: replace middleware and logger core (#3586)
Use verdaccio 6 modules for middleware and logger with pino 7
2023-02-09 21:42:24 +01:00
Juan Picado
bae430fe24
feat: refactor test and use verdaccio 6 core modules (#3569)
chore: clean up comments

remove commitlint

update deps

add new tests

test

separate ci

test

test

test

test

test

test

chore: add preprelase

test

test

test

test

test

chore: update deps

Update release-snapshot.yml

Update .npmignore

test

chore: remove @verdaccio/commons-api dep

chore: cleanup

remove normalizeContributors

remove validateMetadata

fix test

clean up getLocalRegistryTarballUri

Update store.spec.ts

clean up convertDistRemoteToLocalTarballUrls

chore: update libraries

reuse getPublic url

clean up

Update jest.config.js

Update jest.config.js

update nvmrc

add tests
2023-01-28 14:39:37 +01:00
Juan Picado
50a20e922b
chore: fix automated release notes on publish (#3568)
* chore: fix automated release notes on publish

* chore: fix automated release notes on publish
2023-01-19 22:53:05 +01:00
Juan Picado
a8a992cfb6
chore: upgrade jest 29 (#3566)
* chore: upgrade jest 29

* Update api.spec.ts
2023-01-19 00:09:24 +01:00
Juan Picado
6df04e1ce1
chore: upgrade eslint and prettier (#3565) 2023-01-18 22:49:28 +01:00
Juan Picado
0b49566176
fix: add hasInstallScript calculation (#3509)
* fix: add hasInstallScript calculation

* Update storage-utils.ts

* chore: add tests
2022-11-23 07:35:10 +01:00
Juan Picado
0a0b772f52
feat: export module types (#3508)
* chore: export types to the module

* chore: remove unused dep

* chore: format

* Update package.json
2022-11-22 18:35:47 +01:00
Juan Picado
8715a5cfa2
feat: highlight readme source code (#3506)
* feat: highlight readme source code

* chore: fix tests

* Delete utils.spec.ts.snap
2022-11-19 22:00:56 +01:00
Juan Picado
e62cd006ea
chore: update yarn 3.x (#3394)
* chore: update yarn

chore: update yarn

Update .pnp.cjs

* chore: rebase from 5.x

* chore: remove cli test

* chore: update jest

* chore: restore jest

* Update Dockerfile

* Update ci.yml

* chore: remove node linker

* restore docker file

* Update ci.yml
2022-11-02 22:52:53 +01:00
Juan Picado
e549d381db
chore: clean up project 5.x (#3468)
* chore: clean up project

* Update ci-e2e.yml
2022-11-02 21:41:58 +01:00
Juan Picado
cdb80aac20
fix: get header by quality priority value (#3359)
* fix: get header by quality priority value

* chore: disable some workflows

* chore: add more tests

* chore: remove some duplicated testss

* chore: return right content type haders
2022-09-05 21:36:23 +02:00
Juan Picado
966139ffd8
feat: implement abbreviated manifest (#3343)
* feat: implement abbreviated manifest

Follow up of https://github.com/verdaccio/verdaccio/pull/3322
Fixes for 5.x https://github.com/verdaccio/verdaccio/issues/2792

* chore: improve expects

* chore: fix test
2022-09-03 17:55:45 +02:00
Juan Picado
23b5c1d6ef
aling eslint config with main branch (#3238)
* chore: update linter tools

* fix: eslint warnings

* fix: eslint warnings

* chore: set max warnings
2022-06-19 21:26:46 +02:00
Juan Picado
5c50ec9a2c
feat: add scope support loading plugins (#3227)
* feat: add scope support loading plugins

* format

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* chore: add tests

* chore: add comment

* format

* chore: update dep

* chore: add better name

Co-authored-by: Michael Prentice <splaktar@gmail.com>
2022-06-14 07:47:17 +02:00
Juan Picado
42194c7302
feat: run server init as promise (#3210)
* feat: run server init as promise

* chore: format

* fix: format

* fix: format

* fix: restore files

* fix: restore files

* fix: disable steps

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli
2022-06-02 17:39:49 +02:00
Juan Picado
51803c3477
fix: duplicated groups on use jwt tokens (#3151)
* fix: duplicated groups on use jwt tokens

* chore: format

* chore: fix jest ci
2022-05-05 00:13:55 +02:00
Juan Picado
e88571fa3e
chore: enable test e2e pnpm7 (#3033)
* enable test e2e pnpm7

* chore: add npm8

* chore: rename title

* chore: skip flaky tests added note
2022-03-04 21:08:18 +01:00
osher
681dc821aa
feat: new environment variable (storage path) (#2993)
* WIP: port PR#2199 to master into 5.x

* port PR#2199 to master to 5.x - env.variables.md

* port PR#2199 to master to 5.x - config.spec

* Update config.spec.ts

* Update config.spec.ts

* fix format

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-02-14 21:05:59 +01:00
Juan Picado
b79266d54e
feat: use backward compatible UI from v6 on v5 (#2912)
* feat: upgrade ui theme plugin v4

* chore: fix e2e

* fix: format

* chore: update theme ui
2022-01-15 20:51:14 +01:00
Juan Picado
558fcafc71
build: format code prettier, enable ci (#2886)
* fix: format code prettier, enable ci

* chore: add trivago import prettier pluggin
2022-01-09 20:51:50 +01:00
renovate[bot]
23d0bd7056
fix(deps): update all non-major linting dependencies (5.x) (#2885)
* fix(deps): update all non-major linting dependencies

* fix lint issues

* chore: increase timeout

* chore: increase timeout

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 20:31:26 +01:00
Juan Picado
5b1264c733
feat: allow override user rate limit and user agent (#2803)
* feat: allow override user rate limit

- improve user_agent config allow string

* chore: fix tests

* chore: refactor userRateLimit

* chore: remove comment

* chore: optional prop

* chore: refactor limiter

* chore: refactor endpoints

* chore: fix undefined

* chore: fix params

* chore: fix params

* chore: update ui

* chore: refactor limiter

* chore: fix tests

* chore: fix test
2021-12-24 19:04:15 +01:00
Juan Picado
c91d6beb8b
feat: add rate limit to web endpoints (#2799)
* feat: add rate limit to web endpoints

* fix: types express conflict

* fix: undefined issue

* fix: tests
2021-12-23 17:35:31 +01:00
Juan Picado
b2b3804f87
build: enable Node 17 on CI and npm8 on E2E (#2795)
* chore: increase ci e2e settings

* fix: ci for node 17

* chore: restore versions

* chore: fix tests

* chore: fix tests

* chore: fix domain

* chore: restore yarn on angular

* chore: rename tests

* chore: fix syntax

* chore: disable yarn angular
2021-12-23 00:14:53 +01:00
Juan Picado
fd3ad1e546
feat: add cache-control header to endpoints (#2791)
Add no cache to endpoints that returns tokens in the body
2021-12-20 23:11:17 +01:00
贾顺名(Jarvis)
b5ac3c0f28
fix: publish with deprecated field (#2771)
* fix: publish with deprecated field by @Jiasm 

When publish with deprecated field in `package.json`, that will make all old versions miss.

Examples:

I have package@1.0.0 and package@1.0.1.

When `npm deprecate package@1.0.0 "xxx"`, Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.0": {
      "deprecated": "xxx"
    },
    "1.0.1": {}
  }
}
```

⬆️ This make sense

But then publish new version with @1.0.2.

Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.2": {
      "deprecated": "xxx" // if we set this field in package.json
    },
  }
}
```

and that metadata will override package.json, make old version miss.

migrate from #2766

* remove spaces

* fix: ignore empty package case

* fix: cover normal unpublish case

* refactor: Optimize check logic for lazy execution

* test: upgrade Jest Snapshot

* fix: set storage.getPackage `uplinksLook: false`.

* feat: use `_attachments` to distinguish deprecate

* test: rollback test snapshots

* test: rollback jest snapshots

* test: publish new version with deprecate field

* test: remove space
2021-12-16 16:17:52 +01:00
Juan Picado
57bd5169f9 test: system test add logging for debuggin 2021-10-24 10:15:54 +02:00
Juan Picado
38ca095fb0
fix: improve get headers from request #2190 (#2271)
* fix: improve request header handling

* chore: fix test

* chore: apply suggestion
2021-05-26 20:07:13 +02:00
Juan Picado
8434cc550f
fix: restore using local path web logo (#2270)
* fix: logo loaded locally

* chore: fix lint
2021-05-22 14:46:47 +02:00
Juan Picado
251bd95373
feat: implement search v1 endpoint (#2256)
* feat: implement search v1 endpoint

* add allow_access

* chore: add types

* chore: format

* fix eslint prettier

* chore: add tests

* add tests

* chore: add npm search cli
2021-05-15 16:39:03 +02:00