From b9506d6ef6784a009d856b573248167bc1fa7921 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sun, 26 May 2019 14:20:38 +0200 Subject: [PATCH 1/4] feat: prepare release v4 (#1307) * chore: remove the next tag * chore: update readme * chore: add docs location info and translation * chore: update readme --- README.md | 44 +++++++++++++++++++++++++------------------- conf/full.yaml | 7 ++++++- scripts/publish.sh | 2 +- 3 files changed, 32 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index c0652b5d7..adf34e007 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ Google Cloud Storage** or create your own plugin. [![verdaccio (latest)](https://img.shields.io/npm/v/verdaccio/latest.svg)](https://www.npmjs.com/package/verdaccio) -[![verdaccio (next)](https://img.shields.io/npm/v/verdaccio/next.svg)](https://www.npmjs.com/package/verdaccio) -[![verdaccio (next)](http://img.shields.io/npm/dy/verdaccio.svg)](https://www.npmjs.com/package/verdaccio) +[![verdaccio (downloads)](http://img.shields.io/npm/dy/verdaccio.svg)](https://www.npmjs.com/package/verdaccio) [![docker pulls](https://img.shields.io/docker/pulls/verdaccio/verdaccio.svg?maxAge=43200)](https://verdaccio.org/docs/en/docker.html) [![backers](https://opencollective.com/verdaccio/tiers/backer/badge.svg?label=Backer&color=brightgreen)](https://opencollective.com/verdaccio) [![stackshare](https://img.shields.io/badge/Follow%20on-StackShare-blue.svg?logo=stackshare&style=flat)](https://stackshare.io/verdaccio) @@ -82,7 +81,7 @@ $ npm set registry http://localhost:4873/ Now you can navigate to [http://localhost:4873/](http://localhost:4873/) where your local packages will be listed and can be searched. -> Warning: Verdaccio does not currently support PM2's cluster mode, running it with cluster mode may cause unknown behavior. +> Warning: Verdaccio [does not currently support PM2's cluster mode](https://github.com/verdaccio/verdaccio/issues/1301#issuecomment-489302298), running it with cluster mode may cause unknown behavior. ## Publishing @@ -120,7 +119,7 @@ docker pull verdaccio/verdaccio Available as [tags](https://hub.docker.com/r/verdaccio/verdaccio/tags/). ``` -docker pull verdaccio/verdaccio:4.0.0 +docker pull verdaccio/verdaccio:4 ``` ### Running verdaccio using Docker @@ -153,6 +152,7 @@ Verdaccio aims to support all features of a standard npm client that make sense - Registering new users (npm adduser {newuser}) - **supported** - Change password (npm profile set password) - **supported** - Transferring ownership (npm owner add {user} {pkg}) - not supported, *PR-welcome* +- Token (npm token) - wip [#1271](https://github.com/verdaccio/verdaccio/pull/1271) ### Miscellany @@ -162,7 +162,7 @@ Verdaccio aims to support all features of a standard npm client that make sense ### Security -- npm audit - **supported** +- npm/yarn audit - **supported** ## Report a vulnerability @@ -182,24 +182,22 @@ 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#contributing-to-e2e-end-to-end-tests) *(+64k ⭐️)* -* [Storybook](https://github.com/storybooks/storybook) *(+34k ⭐️)* -* [Gatsby](https://github.com/gatsbyjs/gatsby) *(+31k ⭐️)* -* [Uppy](https://github.com/transloadit/uppy) *(+15k ⭐️)* -* [Aurelia Framework](https://github.com/aurelia) *(+10k ⭐️)* +* [create-react-app](https://github.com/facebook/create-react-app/blob/master/CONTRIBUTING.md#contributing-to-e2e-end-to-end-tests) *(+67k ⭐️)* +* [Storybook](https://github.com/storybooks/storybook) *(+37k ⭐️)* +* [Gatsby](https://github.com/gatsbyjs/gatsby) *(+34k ⭐️)* +* [Uppy](https://github.com/transloadit/uppy) *(+19k ⭐️)* +* [Aurelia Framework](https://github.com/aurelia) *(+11k ⭐️)* * [bit](https://github.com/teambit/bit) *(+6k ⭐️)* * [pnpm](https://github.com/pnpm/pnpm) *(+5k ⭐️)* * [Mozilla Neutrino](https://github.com/neutrinojs/neutrino) *(+3k ⭐️)* -* [Amazon Web Services Cloud Development Kit](https://github.com/awslabs/aws-cdk) *(+1.8k ⭐️)* * [Hyperledger Composer](https://github.com/hyperledger/composer) *(+1.6k ⭐️)* +* [webiny-js](https://github.com/Webiny/webiny-js) *(+1k ⭐️)* -## Special Thanks +🤓 Don't be shy, you also can be in [the list](https://github.com/verdaccio/website/blob/master/docs/who-is-using.md). -Thanks to the following companies to help us to achieve our goals providing free open source licenses. +## Sponsorship -[![jetbrain](assets/thanks/jetbrains/logo.png)](https://www.jetbrains.com/) -[![crowdin](assets/thanks/crowdin/logo.png)](https://crowdin.com/) -[![balsamiq](assets/thanks/balsamiq/logo.jpg)](https://balsamiq.com/) +If you are a *company/project* and you 😍 Verdaccio and FOSS, your **logo can be here** 😉 if you support our activities. [Donate](https://opencollective.com/verdaccio). ## Open Collective Sponsors @@ -222,6 +220,14 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com [![backers](https://opencollective.com/verdaccio/backers.svg?width=890)](https://opencollective.com/verdaccio#backers) +## Special Thanks + +Thanks to the following companies to help us to achieve our goals providing free open source licenses. + +[![jetbrain](assets/thanks/jetbrains/logo.png)](https://www.jetbrains.com/) +[![crowdin](assets/thanks/crowdin/logo.png)](https://crowdin.com/) +[![balsamiq](assets/thanks/balsamiq/logo.jpg)](https://balsamiq.com/) + ## Contributors This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. @@ -232,15 +238,15 @@ This project exists thanks to all the people who contribute. [[Contribute](CONTR If you have any issue you can try the following options, do no desist to ask or check our issues database, perhaps someone has asked already what you are looking for. -* [Blog](https://medium.com/verdaccio) +* [Blog](https://verdaccio.org/blog/) * [Donations](https://opencollective.com/verdaccio) -* [Roadmaps](https://github.com/verdaccio/verdaccio/projects) * [Reporting an issue](https://github.com/verdaccio/verdaccio/blob/master/CONTRIBUTING.md#reporting-a-bug) * [Running discussions](https://github.com/verdaccio/verdaccio/issues?q=is%3Aissue+is%3Aopen+label%3Adiscuss) * [Chat](http://chat.verdaccio.org/) * [Logos](https://verdaccio.org/docs/en/logo) -* [FAQ](https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20) * [Docker Examples](https://github.com/verdaccio/docker-examples) +* [FAQ](https://github.com/verdaccio/verdaccio/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3Aquestion%20) + ### License diff --git a/conf/full.yaml b/conf/full.yaml index 9950174a2..fd45178be 100644 --- a/conf/full.yaml +++ b/conf/full.yaml @@ -2,4 +2,9 @@ ## we highly recommend either visit ## https://verdaccio.org/docs/en/configuration ## or read the local file -## docs/config.md +## https://github.com/verdaccio/website/tree/master/docs/config.md + +## contribute with translations + +## You can contribute translating documentation through the crowdin platform +## https://crowdin.com/project/verdaccio diff --git a/scripts/publish.sh b/scripts/publish.sh index dd48567f5..bddb4bd7a 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -10,4 +10,4 @@ echo "Bumping version to new tag: ${lastTag}" echo "//$REGISTRY_URL/:_authToken=$REGISTRY_AUTH_TOKEN" > .npmrc # Publish to NPM -npm publish --tag next --registry https://$REGISTRY_URL/ +npm publish --registry https://$REGISTRY_URL/ From 2e71daacfd5aad1b0ec9379d6f972b0d2c4da044 Mon Sep 17 00:00:00 2001 From: Ayush Sharma Date: Sun, 26 May 2019 14:43:06 +0200 Subject: [PATCH 2/4] chore(release): 4.0.0 --- CHANGELOG.md | 18 ++++++++++++++++++ package.json | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de0b99734..bee51ed57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,24 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +# [4.0.0](https://github.com/verdaccio/verdaccio/compare/v4.0.0-beta.8...v4.0.0) (2019-05-26) + + +### Bug Fixes + +* add missing pkg version and name on start up ([8cf3966](https://github.com/verdaccio/verdaccio/commit/8cf3966)) +* update @verdaccio/ui-theme:0.1.7 ([8e48eea](https://github.com/verdaccio/verdaccio/commit/8e48eea)) +* warning text is hard to read when running under root ([3ac038f](https://github.com/verdaccio/verdaccio/commit/3ac038f)) + + +### Features + +* create security policy ([#1322](https://github.com/verdaccio/verdaccio/issues/1322)) ([0e9f23d](https://github.com/verdaccio/verdaccio/commit/0e9f23d)) +* prepare release v4 ([#1307](https://github.com/verdaccio/verdaccio/issues/1307)) ([b9506d6](https://github.com/verdaccio/verdaccio/commit/b9506d6)) +* update readme v4 ([#1312](https://github.com/verdaccio/verdaccio/issues/1312)) ([7686417](https://github.com/verdaccio/verdaccio/commit/7686417)) + + + # [4.0.0-beta.10](https://github.com/verdaccio/verdaccio/compare/v4.0.0-beta.9...v4.0.0-beta.10) (2019-05-20) diff --git a/package.json b/package.json index a1faffcc3..c05c17ef3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "verdaccio", - "version": "4.0.0-beta.10", + "version": "4.0.0", "description": "A lightweight private npm proxy registry", "author": { "name": "Verdaccio Maintainers", From de0446376d12113bb42a2e377a87c61d40a6b3f5 Mon Sep 17 00:00:00 2001 From: Honza Hommer Date: Tue, 28 May 2019 22:24:40 +0200 Subject: [PATCH 3/4] fix(web): fix sidebar tarball protocol (#1326) fix: #1320 https://github.com/verdaccio/verdaccio/issues/1320 --- src/api/web/endpoint/package.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/web/endpoint/package.js b/src/api/web/endpoint/package.js index 798e7de91..047236fe4 100644 --- a/src/api/web/endpoint/package.js +++ b/src/api/web/endpoint/package.js @@ -2,9 +2,8 @@ * @prettier * @flow */ - import _ from 'lodash'; -import { addScope, addGravatarSupport, deleteProperties, sortByName, parseReadme, formatAuthor } from '../../../lib/utils'; +import { addScope, addGravatarSupport, deleteProperties, sortByName, parseReadme, formatAuthor, convertDistRemoteToLocalTarballUrls } from '../../../lib/utils'; import { allow } from '../../middleware'; import { DIST_TAGS, HEADER_TYPE, HEADERS, HTTP_STATUS } from '../../../lib/constants'; import { generateGravatarUrl } from '../../../utils/user'; @@ -102,7 +101,8 @@ function addPackageWebApi(route: Router, storage: IStorageHandler, auth: IAuth, callback: function(err: Error, info: $SidebarPackage) { if (_.isNil(err)) { let sideBarInfo: any = _.clone(info); - sideBarInfo.latest = info.versions[info[DIST_TAGS].latest]; + sideBarInfo.versions = convertDistRemoteToLocalTarballUrls(info, req, config.url_prefix).versions; + sideBarInfo.latest = sideBarInfo.versions[info[DIST_TAGS].latest]; sideBarInfo.latest.author = formatAuthor(sideBarInfo.latest.author); sideBarInfo = deleteProperties(['readme', '_attachments', '_rev', 'name'], sideBarInfo); if (config.web) { From d53c345bed79a8185d71f272f2951d61e16fe775 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Tue, 28 May 2019 22:25:42 +0200 Subject: [PATCH 4/4] chore(release): 4.0.1 --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bee51ed57..5461f2948 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [4.0.1](https://github.com/verdaccio/verdaccio/compare/v4.0.0...v4.0.1) (2019-05-28) + + +### Bug Fixes + +* **web:** fix sidebar tarball protocol ([#1326](https://github.com/verdaccio/verdaccio/issues/1326)) ([de04463](https://github.com/verdaccio/verdaccio/commit/de04463)), closes [#1320](https://github.com/verdaccio/verdaccio/issues/1320) + + + # [4.0.0](https://github.com/verdaccio/verdaccio/compare/v4.0.0-beta.8...v4.0.0) (2019-05-26) diff --git a/package.json b/package.json index c05c17ef3..7390e5958 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "verdaccio", - "version": "4.0.0", + "version": "4.0.1", "description": "A lightweight private npm proxy registry", "author": { "name": "Verdaccio Maintainers",