Skip to content

Commit 272e2d2

Browse files
committed
Merge branch 'master' into feat-exclude-global-gitignore
* master: (67 commits) Include key info for "expected hoisted" invariant (yarnpkg#7009) refactor: remove unnecessary checks (yarnpkg#6955) fix: drive letter casing for win32 pnp (yarnpkg#7007) Don’t call `release` with an exit code (yarnpkg#6981) Check os and platform even when engines is not present in package.json (yarnpkg#6976) Fix handling of non-offline errors (yarnpkg#6968) Treat the ignore-scripts in yarnrc as a synonym to the cli arg (yarnpkg#6983) fix(pnp): make sure pnp module is again the first preloaded module. (yarnpkg#6951) refactor: remove unused imports (yarnpkg#6956) Add 1.14.0 to changelog (yarnpkg#6967) 1.15.0-0 v1.14.0 Fix suggested command after unlinking a package (yarnpkg#6931) Update CHANGELOG.md fix(pnp): make sure pnp module is the first preloaded module. (yarnpkg#6942) fix(pnp): make sure that the package locator is fetched with a trailing slash (yarnpkg#6882) Improve rendering of Chocolatey package description (yarnpkg#6899) Fixing dynamic require missing from webpack (yarnpkg#6908) feat(policies): Use github access token when requesting releases (yarnpkg#6912) Fixes PnP detection across workspaces (yarnpkg#6878) ...
2 parents bb52cab + 0e380a1 commit 272e2d2

File tree

102 files changed

+2200
-291
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+2200
-291
lines changed

.circleci/config.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ jobs:
157157
brew uninstall --ignore-dependencies node
158158
brew update
159159
HOMEBREW_NO_AUTO_UPDATE=1 brew install node@10
160+
brew link --overwrite --force node@10
161+
[[ $(node --version) =~ ^v10\. ]]
160162
- *attach_workspace
161163
- *test_build
162164
- *test_run
@@ -168,6 +170,8 @@ jobs:
168170
command: |
169171
brew uninstall --ignore-dependencies node
170172
HOMEBREW_NO_AUTO_UPDATE=1 brew install node@8
173+
brew link --overwrite --force node@8
174+
[[ $(node --version) =~ ^v8\. ]]
171175
- *attach_workspace
172176
- *test_build
173177
- *test_run
@@ -179,7 +183,8 @@ jobs:
179183
command: |
180184
brew uninstall --ignore-dependencies node
181185
HOMEBREW_NO_AUTO_UPDATE=1 brew install node@6
182-
brew link --force node@6
186+
brew link --overwrite --force node@6
187+
[[ $(node --version) =~ ^v6\. ]]
183188
- *attach_workspace
184189
- *test_build
185190
- *test_run

.eslintrc.json

+14
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@
3737
"rules": {
3838
"no-console": "off"
3939
}
40+
},
41+
{
42+
"files": [
43+
"src/util/generate-pnp-map-api.tpl.js"
44+
],
45+
"rules": {
46+
"prettier/prettier": ["error", {
47+
"singleQuote": true,
48+
"trailingComma": "es5",
49+
"bracketSpacing": false,
50+
"printWidth": 120,
51+
"parser": "flow"
52+
}]
53+
}
4054
}
4155
]
4256
}

CHANGELOG.md

+161-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,151 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
44

55
## Master
66

7-
- Prevent infinite loop when parsing corrupted lockfile with unterminated string
7+
- Fixes occasionally mismatching upper/lowecases of drive letters in win32 pnp check
8+
9+
[#7007](https://github.com/yarnpkg/yarn/pull/7007) - [**Christoph Werner**](https://github.com/codepunkt)
10+
11+
- Fixes the error reporting for non-HTTP network errors (such as invalid certificates)
12+
13+
[#6968](https://github.com/yarnpkg/yarn/pull/6968) - [**Chih-Hsuan Yen**](https://github.com/yan12125)
14+
15+
- Changes the location where the `--require ./.pnp.js` flag gets added into `NODE_OPTIONS`: now at the front (bis)
16+
17+
[#6951](https://github.com/yarnpkg/yarn/pull/6951) - [**John-David Dalton**](https://twitter.com/jdalton)
18+
19+
- Packages won't be auto-unplugged anymore if `ignore-scripts` is set in the yarnrc file
20+
21+
[#6983](https://github.com/yarnpkg/yarn/pull/6983) - [**Micha Reiser**](https://github.com/MichaReiser)
22+
23+
## 1.14.0
24+
25+
- Improves PnP compatibility with Node 6
26+
27+
[#6871](https://github.com/yarnpkg/yarn/pull/6871) - [**Robert Jackson**](https://github.com/rwjblue)
28+
29+
- Fixes PnP detection with workspaces (`installConfig` is now read at the top-level)
30+
31+
[#6878](https://github.com/yarnpkg/yarn/pull/6878) - [**Maël Nison**](https://twitter.com/arcanis)
32+
33+
- Fixes an interaction between `yarn pack` and bundled dependencies
34+
35+
[#6908](https://github.com/yarnpkg/yarn/pull/6908) - [**Travis Hoover**](https://twitter.com/thoov)
36+
37+
- Adds support for `GITHUB_TOKEN` in `yarn policies set-version`
38+
39+
[#6912](https://github.com/yarnpkg/yarn/pull/6912) - [**Billy Vong**](https://github.com/billyvg)
40+
41+
- Fixes an issue where `resolve` would forward an incomplete basedir to the PnP hook
42+
43+
[#6882](https://github.com/yarnpkg/yarn/pull/6882) - [**Zoran Regvart**](https://github.com/zregvart)
44+
45+
- Fixes the command that `yarn unlink` recommends to run as a followup (now `yarn install --force`)
46+
47+
[#6931](https://github.com/yarnpkg/yarn/pull/6931) - [**Justin Sacbibit**](https://github.com/justinsacbibit)
48+
49+
- Changes the location where the `--require ./.pnp.js` flag gets added into `NODE_OPTIONS`: now at the front
50+
51+
[#6942](https://github.com/yarnpkg/yarn/pull/6942) - [**John-David Dalton**](https://twitter.com/jdalton)
52+
53+
- Fixes a bug where `os` and `platform` requirements weren't properly checked when `engines` was missing
54+
55+
[#6976](https://github.com/yarnpkg/yarn/pull/6976) - [**Micha Reiser**](https://github.com/MichaReiser)
56+
57+
## 1.13.0
58+
59+
- Implements a new `package.json` field: `peerDependenciesMeta`
60+
61+
[#6671](https://github.com/yarnpkg/yarn/pull/6671) - [**Maël Nison**](https://twitter.com/arcanis)
62+
63+
- Adds an `optional` settings to `peerDependenciesMeta` to silence missing peer dependency warnings
64+
65+
[#6671](https://github.com/yarnpkg/yarn/pull/6671) - [**Maël Nison**](https://twitter.com/arcanis)
66+
67+
- Implements `yarn policies set-version [range]`. Check [the documentation]() for usage & tips.
68+
69+
[#6673](https://github.com/yarnpkg/yarn/pull/6673) - [**Maël Nison**](https://twitter.com/arcanis)
70+
71+
- Fixes a resolution issue when a package had an invalid `main` entry
72+
73+
[#6682](https://github.com/yarnpkg/yarn/pull/6682) - [**Maël Nison**](https://twitter.com/arcanis)
74+
75+
- Decreases the size of the generated `$PATH` environment variable for a better Windows support
76+
77+
[#6683](https://github.com/yarnpkg/yarn/issues/6683) - [**Rowan Lonsdale**](https://github.com/hWorblehat)
78+
79+
- Fixes postinstall scripts for third-party packages when they were referencing a binary from their own dependencies
80+
81+
[#6712](https://github.com/yarnpkg/yarn/pull/6712) - [**Maël Nison**](https://twitter.com/arcanis)
82+
83+
- Fixes yarn audit exit code overflow
84+
85+
[#6748](https://github.com/yarnpkg/yarn/issues/6748) - [**Andrey Vetlugin**](https://github.com/antrew)
86+
87+
- Stops automatically unplugging packages with postinstall script when running under `--ignore-scripts`
88+
89+
[#6820](https://github.com/yarnpkg/yarn/pull/6820) - [**Maël Nison**](https://twitter.com/arcanis)
90+
91+
- Adds transparent support for the [`resolve`](https://github.com/browserify/resolve) package when using Plug'n'Play
92+
93+
[#6816](https://github.com/yarnpkg/yarn/pull/6816) - [**Maël Nison**](https://twitter.com/arcanis)
94+
95+
- Properly reports the error codes when the npm registry throws 500's
96+
97+
[#6817](https://github.com/yarnpkg/yarn/pull/6817) - [**Maël Nison**](https://twitter.com/arcanis)
98+
99+
## 1.12.3
100+
101+
**Important:** This release contains a cache bump. It will cause the very first install following the upgrade to take slightly more time, especially if you don't use the [Offline Mirror](https://yarnpkg.com/blog/2016/11/24/offline-mirror/) feature. After that everything will be back to normal.
102+
103+
- Fixes an issue with `yarn audit` when using workspaces
104+
105+
[#6625](https://github.com/yarnpkg/yarn/pull/6639) - [**Jeff Valore**](https://twitter.com/codingwithspike)
106+
107+
- Uses `NODE_OPTIONS` to instruct Node to load the PnP hook, instead of raw CLI arguments
108+
109+
**Caveat:** This change might cause issues for PnP users having a space inside their cwd (cf [nodejs/node#24065](https://github.com/nodejs/node/pull/24065))
110+
111+
[#6479](https://github.com/yarnpkg/yarn/pull/6629) - [**Maël Nison**](https://twitter.com/arcanis)
112+
113+
- Fixes Gulp when used with Plug'n'Play
114+
115+
[#6623](https://github.com/yarnpkg/yarn/pull/6623) - [**Maël Nison**](https://twitter.com/arcanis)
116+
117+
- Fixes an issue with `yarn audit` when the root package was missing a name
118+
119+
[#6611](https://github.com/yarnpkg/yarn/pull/6611) - [**Jack Zhao**](https://github.com/bugzpodder)
120+
121+
- Fixes an issue with `yarn audit` when a package was depending on an empty range
122+
123+
[#6611](https://github.com/yarnpkg/yarn/pull/6611) - [**Jack Zhao**](https://github.com/bugzpodder)
124+
125+
- Fixes an issue with how symlinks are setup into the cache on Windows
126+
127+
[#6621](https://github.com/yarnpkg/yarn/pull/6621) - [**Yoad Snapir**](https://github.com/yoadsn)
128+
129+
- Upgrades `inquirer`, fixing `upgrade-interactive` for users using both Node 10 and Windows
130+
131+
[#6635](https://github.com/yarnpkg/yarn/pull/6635) - [**Philipp Feigl**](https://github.com/pfeigl)
132+
133+
- Exposes the path to the PnP file using `require.resolve('pnpapi')`
134+
135+
[#6643](https://github.com/yarnpkg/yarn/pull/6643) - [**Maël Nison**](https://twitter.com/arcanis)
136+
137+
## 1.12.2
138+
139+
This release doesn't actually exists and was caused by a quirk in our systems.
140+
141+
## 1.12.1
142+
143+
- Ensures the engine check is ran before showing the UI for `upgrade-interactive`
144+
145+
[#6536](https://github.com/yarnpkg/yarn/pull/6536) - [**Orta Therox**](https://github.com/orta)
146+
147+
- Restores Node v4 support by downgrading `cli-table3`
148+
149+
[#6535](https://github.com/yarnpkg/yarn/pull/6535) - [**Mark Stacey**](https://github.com/Gudahtt)
150+
151+
- Prevents infinite loop when parsing corrupted lockfiles with unterminated strings
8152

9153
[#4965](https://github.com/yarnpkg/yarn/pull/4965) - [**Ryan Hendrickson**](https://github.com/rhendric)
10154

@@ -24,6 +168,22 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa
24168

25169
[#5322](https://github.com/yarnpkg/yarn/pull/5322) - [**Karolis Narkevicius**](https://twitter.com/KidkArolis)
26170

171+
- Adds 2FA (Two Factor Authentication) support to publish & alike
172+
173+
[#6555](https://github.com/yarnpkg/yarn/pull/6555) - [**Krzysztof Zbudniewek**](https://github.com/neonowy)
174+
175+
- Fixes how the `files` property is interpreted to bring it in line with npm
176+
177+
[#6562](https://github.com/yarnpkg/yarn/pull/6562) - [**Bertrand Marron**](https://github.com/tusbar)
178+
179+
- Fixes Yarn invocations on Darwin when the `yarn` binary was symlinked
180+
181+
[#6568](https://github.com/yarnpkg/yarn/pull/6568) - [**Hidde Boomsma**](https://github.com/hboomsma)
182+
183+
- Fixes `require.resolve` when used together with the `paths` option
184+
185+
[#6565](https://github.com/yarnpkg/yarn/pull/6565) - [**Maël Nison**](https://twitter.com/arcanis)
186+
27187
## 1.12.0
28188

29189
- Adds initial support for PnP on Windows

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<p align="center">
1212
<a href="https://circleci.com/gh/yarnpkg/yarn"><img alt="Circle Status" src="https://circleci.com/gh/yarnpkg/yarn.svg?style=shield&circle-token=5f0a78473b0f440afb218bf2b82323cc6b3cb43f"></a>
1313
<a href="https://ci.appveyor.com/project/kittens/yarn/branch/master"><img alt="Appveyor Status" src="https://ci.appveyor.com/api/projects/status/0xdv8chwe2kmk463?svg=true"></a>
14+
<a href="https://dev.azure.com/yarnpkg/yarn/_build"><img alt="Azure Pipelines status" src="https://dev.azure.com/yarnpkg/yarn/_apis/build/status/Yarn%20Acceptance%20Tests"></a>
1415
<a href="https://discord.gg/yarnpkg"><img alt="Discord Chat" src="https://img.shields.io/discord/226791405589233664.svg"></a>
1516
<a href="http://commitizen.github.io/cz-cli/"><img alt="Commitizen friendly" src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg"></a>
1617
</p>

__tests__/commands/_helpers.js

+2
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ export function makeConfigFromDirectory(cwd: string, reporter: Reporter, flags:
8585
{
8686
binLinks: !!flags.binLinks,
8787
cwd,
88+
ignoreScripts: flags.ignoreScripts,
8889
globalFolder: flags.globalFolder || path.join(cwd, '.yarn-global'),
8990
cacheFolder: flags.cacheFolder || path.join(cwd, '.yarn-cache'),
9091
linkFolder: flags.linkFolder || path.join(cwd, '.yarn-link'),
9192
prefix: flags.prefix,
9293
production: flags.production,
9394
updateChecksums: !!flags.updateChecksums,
9495
offline: !!flags.offline,
96+
nonInteractive: typeof flags.nonInteractive !== 'undefined' ? Boolean(flags.nonInteractive) : true,
9597
focus: !!flags.focus,
9698
enableDefaultRc: !flags.noDefaultRc,
9799
extraneousYarnrcFiles: flags.useYarnrc,

0 commit comments

Comments
 (0)