Socket
Socket
Sign inDemoInstall

yarn-deduplicate

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-deduplicate - npm Package Compare versions

Comparing version 3.1.0 to 4.0.0

src/cli.js

24

CHANGELOG.md

@@ -10,2 +10,26 @@ # Changelog

## 4.0.0 - 2022-03-21
### Breaking
- Dropped support for Node 10
### Added
- Added `--exclude-scopes` flag to exclude scopes (thanks to @sventschui)
- Documented `--exclude` flags in `README.md`
- Added support for Node 16
### Fixed
- Fixed typo in documentation (thanks to @ChetanGoti)
- Updated repository information in `package.json`
- Do not publish test files
### Chores
- Updated dependencies
- Rename some directories/files
- Addded `typescript` 4.6.2 (via peer dependency)
## 3.1.0 - 2020-10-25

@@ -12,0 +36,0 @@

37

package.json
{
"name": "yarn-deduplicate",
"version": "3.1.0",
"bin": "./cli.js",
"version": "4.0.0",
"bin": "./src/cli.js",
"description": "Deduplication tool for yarn.lock files",

@@ -19,13 +19,15 @@ "keywords": [

},
"homepage": "https://github.com/atlassian/yarn-deduplicate#readme",
"bugs": "https://github.com/atlassian/yarn-deduplicate/issues",
"homepage": "https://github.com/scinos/yarn-deduplicate#readme",
"bugs": "https://github.com/scinos/yarn-deduplicate/issues",
"license": "Apache-2.0",
"author": "Sergio Cinos <sergio.cinos@gmail.com>",
"main": "index.js",
"main": "src/index.js",
"types": "src/index.d.ts",
"files": ["src"],
"repository": {
"type": "git",
"url": "git@github.com:atlassian/yarn-deduplicate.git"
"url": "git@github.com:scinos/yarn-deduplicate.git"
},
"engines": {
"node": ">=10",
"node": ">=12",
"yarn": ">=1"

@@ -35,20 +37,21 @@ },

"@yarnpkg/lockfile": "^1.1.0",
"commander": "^6.1.0",
"commander": "^9.0.0",
"semver": "^7.3.2"
},
"devDependencies": {
"eslint": "^7.12.0",
"eslint-config-prettier": "^6.14.0",
"eslint-plugin-jest": "^24.1.0",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-md": "^1.0.19",
"eslint-plugin-prettier": "^3.1.4",
"jest": "^26.6.1",
"outdent": "^0.7.1",
"prettier": "^2.1.2"
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.5.1",
"outdent": "^0.8.0",
"prettier": "^2.5.1",
"typescript": "^4.6.2"
},
"jest": {
"testPathIgnorePatterns": [
"<rootDir>/node_modules"
"testMatch": [
"<rootDir>/tests/*.js"
]
}
}

@@ -161,6 +161,15 @@ # yarn-deduplicate

### Excluding packages
`--exclude <package1> <package2> <packageN`
`--exclude-scopes <scope1> <scope2> <scopeN>`
With these commands you can exclude certain packages/scopes from the deduplication process. This is
specially useful if you want to apply a different strategy for a scope, for example.
### Pre-release versions
By default, `yarn-deduplicate` will only match pre-release versions if they share they share the
same `mayor`, `minor` and `patch` versions (example: `^1.2.3-alpha.1` and `1.2.3-alpha.2` can be
same `major`, `minor` and `patch` versions (example: `^1.2.3-alpha.1` and `1.2.3-alpha.2` can be
deduplicated, but `^1.2.3` and `1.2.4-alpha.1` can't). This matches the behaviour of

@@ -167,0 +176,0 @@ [semver](https://docs.npmjs.com/misc/semver#prerelease-tags).

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc