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
Juan Picado
1c17d0986e
feat: jwt default time new set ( #2787 )
...
Reduce 7 days to 1 hour as expiration time to improve security measures.
2021-12-20 08:09:18 +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
coolsp
820c9d5db2
fix: markdown anchor links in package readme.md broken #2712
2021-12-01 23:33:25 +01:00
weifan she
ecfc4c3304
fix: plugin allow_publish (pkg) got a undefined version ( #2315 )
2021-08-12 07:41:00 +02:00
Juan Picado
29240544b1
fix: remove token experiment flag ( #2332 )
2021-07-14 20:22:15 +02:00
Juan Picado
558dd3f3c6
fix: add logger fatal if fails on startup ( #2288 )
...
fix #2287
2021-06-12 06:19:26 +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
2d7d8143e9
chore: remove try catch not need it
2021-05-22 14:49:11 +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
Favo Yang
78d04cf9f8
feat: tarball url redirect ( #1688 )
...
* feat: tarball url redirect
* fix: handle uplinks
* feat: allow function for config.tarball_url_redirect
* fix: hasLocalTarball was calling localStream,abort when already aborted
* chore: simplify localStream null check in hasLocalTarball
As requested in PR feedback.
* chore: fix sonarcloud code smell on test
the variable `credentials` was already declared before the tarball url tests.
* fix: move tarball_url_redirect to experiments
Co-authored-by: Gord Lea <johlea@cisco.com>
Co-authored-by: Gord Lea <jgordonlea@gmail.com>
2021-05-03 20:53:00 +02:00
Claude
01c5d2ca27
fix: scoped query support ( #2208 )
2021-04-28 07:18:30 +02:00
Claude
d8b62cff53
fix: incorrect sanity check for theme plugin ( #2205 )
2021-04-27 19:53:12 +02:00
Juan Picado
782dd1ca93
fix: logo and favicon configuration ( #2180 )
2021-04-10 11:09:50 +02:00
Juan Picado
507e55a9a5
chore: remove behindProxy
...
not ready for this release, need more thoughts
2021-04-05 20:48:41 +02:00
Juan Picado
80d669e6eb
chore: emit warning if is using multiple addresses
2021-04-04 08:21:32 +02:00
Juan Picado
6fef45f9ef
chore: better logging for publish ( #2163 )
2021-04-03 22:09:31 +02:00
Juan Picado
be2f6129bb
feat: clipanion as cli ( #2160 )
...
* feat: clipanion as cli
* chore: add version command
* chore: update ts
2021-04-03 13:13:31 +02:00
Juan Picado
9c803993d0
feat: custom protocol header ( #2156 )
2021-04-02 10:48:51 +02:00
Paola Morales
b0fc25a8c4
refactor: improve logging ( #2154 )
...
* refactor: improve logging
* chore: update test
* chore: update local-storage.ts
* chore: update local-storage.ts
2021-03-31 23:22:32 +02:00
Juan Picado
5b6be2aa09
fix: using correctly logging levels ( #2153 )
...
* fix: using correctly logging levels
* chore: update deps
2021-03-31 21:21:40 +02:00
Juan Picado
ee97dcb46c
feat: replace bunyan by pino.js ( #2148 )
...
* feat: replace bunyan by pino.js
* chore: refactor logger
* chore: fix e2e
* chore: better catch
2021-03-30 20:32:46 +02:00
Juan Picado
15bb350ae4
feat: improve url_prefix behavior ( #2122 )
...
read pr 2122 for more details
2021-03-29 12:32:37 +02:00
Juan Picado
3a1f608f0b
feat: upgrade to commander v7 ( #2143 )
2021-03-28 17:53:58 +02:00
Juan Picado
43f70437af
feat!: drop node 8 and node 10 ( #2142 )
...
There is no breaking changes on features aside of Node version
2021-03-28 10:40:52 +02:00
Juan Picado
7b6fbae6ae
feat: handle kill signals nicely ( #2130 )
...
* feat: handle kill signals nicely
* chore: add docs and rename variable
Co-authored-by: edward kim <edward.kim@lendi.com.au>
2021-03-17 07:29:07 +01:00
Juan Picado
93468211d6
chore: update eslint dependencies ( #2126 )
...
* chore: update eslint
* chore: update rules and style
* chore: aling formatting
* chore: update ci rules
* chore: aling formatting
* chore: aling formatting
2021-03-14 08:42:46 +01:00
Juan Picado
4d152ca01b
feat: enable keep alive ( #2067 )
2021-01-20 21:43:50 +01:00
Juan Picado
39376be345
feat: skip log static content from web ( #2027 )
...
The PR #2026 will create more noise because the static content is smaller and segmented, this PR skip all those entries to the log.
2020-12-13 22:58:36 +01:00
Andrey Frimuchkov
e2f7bb2f29
feat: Set bytesin log as optional ( #2013 )
...
https://github.com/verdaccio/verdaccio/issues/1912
Co-authored-by: frimuchkov <frimuchkov@yandex-team.ru>
2020-12-02 21:48:01 +01:00
Andrey Frimuchkov
1e59b6aa6f
fix: doubled request logs in node.js >= 11 ( #2012 )
...
```
$ docker run -it --rm --name verdaccio -p 4873:4873 verdaccio/verdaccio warn --- config file - /verdaccio/conf/config.yaml
warn --- Verdaccio started
warn --- Plugin successfully loaded: verdaccio-htpasswd
warn --- Plugin successfully loaded: verdaccio-audit
warn --- http address - http://0.0.0.0:4873/ - verdaccio/4.9.1
http --> 200, req: 'GET https://registry.npmjs.org/execa ' (streaming)
http --> 200, req: 'GET https://registry.npmjs.org/execa ', bytes: 0/119164
http <-- 200, user: null(172.17.0.1), req: 'GET /execa', bytes: 0/27224
http <-- 200, user: null(172.17.0.1), req: 'GET /execa', bytes: 0/27224
```
2020-12-02 21:17:36 +01:00
Juan Picado
f4a85af20d
fix: fix missing readme on npm7 ( #2010 )
...
* fix: fix missing readme on npm7
* test: update test for readme
2020-11-28 22:57:52 +01:00
Juan Picado
185babc53f
fix: check author if lastest is not found ( #1994 )
2020-11-22 13:55:14 +01:00
Juan Picado
4feaf241c9
fix: buffer deprecated warnings ( #1993 )
...
* chore: use Buffer.from and Buffer.alloc instead of deprecated new Buffer
* chore: fix lint
* chore: fix lint
Co-authored-by: Jarom Loveridge <jaroml@gradecam.com>
2020-11-03 07:55:08 +01:00
Juan Picado
1ece11cfc0
feat: migrate yarn 1 to yarn 2 ( #1962 )
2020-10-11 19:06:21 +02:00
Juan Picado
647b6b3ff7
test: add test for socket timeout ( #1959 )
...
* test: add test for socket timeout
* chore: add offline online test
2020-10-11 15:58:57 +02:00
Juan Picado
844267ce25
fix: revert move bodyParse to the upper level ( #1841 ) ( #1877 )
...
This reverts commit 67c31b69
2020-07-16 21:59:21 +02:00
Jian-Chen Chen (jesse)
912482a5ae
feat: ca certificate is optional for https configuration ( #1853 )
...
* setup https server
* typed handleHttps
* fix if condition
* generate certificate on the fly
* revert yarn.lock
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-30 19:05:29 +02:00
Juan Picado
0bfdeaa2e4
fix: move search v1 endpoint as experimental ( #1850 )
...
the current one has not auth implemented, to avoid the lack of fallback to the original one now is required to be used it by default until the v1 is on shape production ready.
2020-06-22 13:33:43 +02:00
Jian-Chen Chen (jesse)
80ade97801
feat: npm deprecation support ( #1842 )
...
* support deprecation
* test case for deprecation
* fix format
* testing for multiple packages deprecation
* update README
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 22:54:03 +02:00
Robert Sabirov
67c31b69ca
fix: move bodyParse to the upper level ( #1841 )
...
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 07:40:06 +02:00
Juan Picado
c2e0e1e0bf
fix: avoid access to sidebar without login ( #1794 )
2020-05-01 11:09:44 +02:00
Juan Picado
416d41fa08
fix: improve token validation ( #1784 )
...
* fix: check name of credentials
* chore: improve validation
2020-04-26 22:26:49 +02:00
Juan Picado @jotadeveloper
1a9a12e918
fix: fatal exception and crash when log rotate signal event is called ( #1774 )
...
fix #1709
2020-04-10 17:36:29 +02:00
Juan Picado @jotadeveloper
d68926050d
fix: incorrect primary_color crash the ui ( #1771 )
...
* fix: incorrect primary_color crash the ui
* chore: also supports 3 and 6 characters as valid hex
2020-04-09 00:33:03 +02:00
Juan Picado @jotadeveloper
4a812620cf
feat: add dark mode on and chinese translation for web ( #1765 )
...
* feat: add dark mode on ui
* chore: update description
* chore: update @verdaccio/ui-theme@1.5.0
* chore: add spaces
2020-04-08 23:24:57 +02:00
Juan Picado @jotadeveloper
c493b316b1
feat: i18n on web ( #1750 )
...
* feat: add i18n to web
* chore: enable es features
2020-03-14 07:16:47 +01:00
Joshua Jensch
9ac307adc5
feat: add support for new search endpoint( #1732 )
...
https://github.com/verdaccio/verdaccio/issues/310
* Add an incomplete implementation of the v1/search api
* Use parseInt and || instead of ?? for processing numeric arguments
* Remove res.end, as we already use response.json
* Remove unused request parameters and add TODO comment
* Fix eslint errors
Co-authored-by: Joshua Jensch <j.jensch@hvs.de>
2020-03-06 08:19:06 +01:00
Kevin Yockey
3aaa04829a
fix: adding Content-Type to response in GET /-/all ( #1697 ) ( #1728 )
2020-03-03 21:16:53 +01:00