All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
<a href="https://github.com/npm/pacote/compare/v9.5.11...v9.5.12">9.5.12</a> (2020-01-06)
Bug Fixes
- git: Do not drop uid/gid when executing in root-owned directory (d2f4176)
<a href="https://github.com/npm/pacote/compare/v9.5.10...v9.5.11">9.5.11</a> (2019-12-09)
Bug Fixes
- sanitize and normalize package bin field (6f229f7)
<a href="https://github.com/npm/pacote/compare/v9.5.9...v9.5.10">9.5.10</a> (2019-12-04)
Bug Fixes
- Do not drop perms in git when not root (5f33040), closes #23
<a href="https://github.com/npm/pacote/compare/v9.5.8...v9.5.9">9.5.9</a> (2019-10-29)
Bug Fixes
<a href="https://github.com/npm/pacote/compare/v9.5.7...v9.5.8">9.5.8</a> (2019-08-20)
<a href="https://github.com/npm/pacote/compare/v9.5.6...v9.5.7">9.5.7</a> (2019-08-19)
Bug Fixes
- do not try to chown if not running as root (bbc5da3)
<a href="https://github.com/npm/pacote/compare/v9.5.5...v9.5.6">9.5.6</a> (2019-08-15)
Bug Fixes
- extract: chown properly when more than one directory is made (5161828)
<a href="https://github.com/npm/pacote/compare/v9.5.4...v9.5.5">9.5.5</a> (2019-08-12)
Bug Fixes
- don't pass uid/gid to cacache (0a0c73c)
- Infer owner of all unpacked files (f12e7ef)
- invalid arg detection in extract() (b4dc363), closes #5 #6
<a href="https://github.com/npm/pacote/compare/v9.5.3...v9.5.4">9.5.4</a> (2019-07-16)
Bug Fixes
- git: ensure stream failures are reported (7f07b5d), closes #1
<a href="https://github.com/npm/pacote/compare/v9.5.2...v9.5.3">9.5.3</a> (2019-07-16)
<a href="https://github.com/npm/pacote/compare/v9.5.1...v9.5.2">9.5.2</a> (2019-07-12)
Bug Fixes
- always pass uid/gid to cacache.put (3d08925)
<a href="https://github.com/npm/pacote/compare/v9.5.0...v9.5.1">9.5.1</a> (2019-06-17)
Bug Fixes
- audit: npm audit fix (127a28b)
- errors: Fix "TypeError: err.code.match is not a function" error (#170) (92f5e4c)
- git: limit retry times, avoid unlimited retries (#172) (8bbd051)
<a href="https://github.com/npm/pacote/compare/v9.4.1...v9.5.0">9.5.0</a> (2019-02-18)
Features
- enjoy-by: add
before
as an alias to enjoy-by (75d62b7)
<a href="https://github.com/npm/pacote/compare/v9.4.0...v9.4.1">9.4.1</a> (2019-01-24)
Bug Fixes
- directory, finalize-manifest: strip byte order marker from JSON (723ad63)
<a href="https://github.com/npm/pacote/compare/v9.3.0...v9.4.0">9.4.0</a> (2019-01-14)
Features
- registry: fall back to fullfat if something might be wrong with corgis (0e71d6b)
<a href="https://github.com/npm/pacote/compare/v9.2.3...v9.3.0">9.3.0</a> (2018-12-21)
Bug Fixes
- git, file: properly catch otherwise unhandled errors (89d4897)
- test: set umask opt to fix extract-stream 'accepts dmode/fmode/umask opts' (e51de83)
Features
<a href="https://github.com/npm/pacote/compare/v9.2.2...v9.2.3">9.2.3</a> (2018-10-31)
<a href="https://github.com/npm/pacote/compare/v9.2.1...v9.2.2">9.2.2</a> (2018-10-31)
<a href="https://github.com/npm/pacote/compare/v9.2.0...v9.2.1">9.2.1</a> (2018-10-31)
<a href="https://github.com/npm/pacote/compare/v9.1.1...v9.2.0">9.2.0</a> (2018-10-30)
Features
- enjoyBy: add opts.enjoy-by option (7df399c)
<a href="https://github.com/npm/pacote/compare/v9.1.0...v9.1.1">9.1.1</a> (2018-10-26)
Bug Fixes
- deps: bump protoduck to remove CC0-1.0 license in dep (3d9d9a6)
- git: Fix temp directory permissions for git fetcher (#159) (97c3aeb)
- packument: group together all registry specs in silly log (2333a17)
- standard: standard –fix (0ecb188)
<a href="https://github.com/npm/pacote/compare/v9.0.0...v9.1.0">9.1.0</a> (2018-08-15)
Bug Fixes
- docs: tweaking ToC (1eeb8a0)
- packument: take accept header into account when memoizing (3c637e8)
Features
- aliases: add support for registry alias specs (b173f26)
- packument: add packument api (97888d9)
<a href="https://github.com/npm/pacote/compare/v8.1.6...v9.0.0">9.0.0</a> (2018-07-31)
Bug Fixes
- travis: idk why travis was failing (ab593c9)
Features
- config: convert to use figgy-pudding (0b5bb82)
- log: use process.emit-style logging by default (29ff8b3)
- registry: switch to npm-registry-fetch (c43d6b0)
BREAKING CHANGES
- log: pacote will start emitting events on the process object by default now, instead of doing silent logging
- registry: config has changed significantly, especially for auth and registry-related configs. Refer to README.md for available options.
<a href="https://github.com/npm/pacote/compare/v8.1.5...v8.1.6">8.1.6</a> (2018-05-24)
<a href="https://github.com/npm/pacote/compare/v8.1.4...v8.1.5">8.1.5</a> (2018-05-22)
<a href="https://github.com/npm/pacote/compare/v8.1.3...v8.1.4">8.1.4</a> (2018-05-22)
<a href="https://github.com/npm/pacote/compare/v8.1.2...v8.1.3">8.1.3</a> (2018-05-20)
Bug Fixes
- deps: try reverting tar (574ecff)
- extract-stream: address "write after end" issue (#151) (50ed408), closes #142
<a href="https://github.com/npm/pacote/compare/v8.1.1...v8.1.2">8.1.2</a> (2018-05-16)
Bug Fixes
- extract-stream: nudge things to stop write-after-end heisenbug, hopefully (a398715)
<a href="https://github.com/npm/pacote/compare/v8.1.0...v8.1.1">8.1.1</a> (2018-04-24)
Bug Fixes
<a href="https://github.com/npm/pacote/compare/v8.0.0...v8.1.0">8.1.0</a> (2018-04-18)
Bug Fixes
- git: workaround for mississippi.finished intermitent failures (#144) (788fd13), closes #143
Features
- tarball: calculate shasum when missing, not just integrity (#149) (ccc6e90)
<a href="https://github.com/npm/pacote/compare/v7.6.1...v8.0.0">8.0.0</a> (2018-04-12)
Bug Fixes
- git: make full clones do a full mirror (85b269b)
deps
meta
BREAKING CHANGES
- some dependencies were upgraded to versions that do not support node@4.
- node@4 is no longer supported
<a href="https://github.com/npm/pacote/compare/v7.6.0...v7.6.1">7.6.1</a> (2018-03-08)
Bug Fixes
- standard: update to new standard rules (bb52d02)
<a href="https://github.com/npm/pacote/compare/v7.5.3...v7.6.0">7.6.0</a> (2018-03-08)
Features
- git: added retry logic for all git operations. (#136) (425c58d)
<a href="https://github.com/npm/pacote/compare/v7.5.2...v7.5.3">7.5.3</a> (2018-03-02)
Bug Fixes
- tarball: stop dropping stream errors on the floor (3db03c2)
<a href="https://github.com/npm/pacote/compare/v7.5.1...v7.5.2">7.5.2</a> (2018-03-02)
Bug Fixes
- console: remove spurious debugging console.log :< (5b8b509)
<a href="https://github.com/npm/pacote/compare/v7.5.0...v7.5.1">7.5.1</a> (2018-03-01)
Bug Fixes
- tarball: catch errors thrown from stream handler (bdd6628)
<a href="https://github.com/npm/pacote/compare/v7.4.2...v7.5.0">7.5.0</a> (2018-03-01)
Features
- logging: let users know when file: resolved packages fail integrity check (0fb8037)
<a href="https://github.com/npm/pacote/compare/v7.4.1...v7.4.2">7.4.2</a> (2018-02-23)
Bug Fixes
<a href="https://github.com/npm/pacote/compare/v7.4.0...v7.4.1">7.4.1</a> (2018-02-23)
Bug Fixes
- tarball: fix spurious errors from tarball.stream() (0286ba5)
<a href="https://github.com/npm/pacote/compare/v7.3.3...v7.4.0">7.4.0</a> (2018-02-17)
Features
- tarball: support file: opts.resolved shortcut (a6cf279)
<a href="https://github.com/npm/pacote/compare/v7.3.2...v7.3.3">7.3.3</a> (2018-02-15)
Bug Fixes
- tarball: another attempt at fixing opts.resolved (aff3b6a)
<a href="https://github.com/npm/pacote/compare/v7.3.1...v7.3.2">7.3.2</a> (2018-02-15)
Bug Fixes
- tarball: opts.resolved impl was triggering extra registry lookups (0a4729d)
<a href="https://github.com/npm/pacote/compare/v7.3.0...v7.3.1">7.3.1</a> (2018-02-14)
Bug Fixes
- tarball: stop using mississippi.pipe() in tarball.js and extract.js (f5c1da9)
<a href="https://github.com/npm/pacote/compare/v7.2.0...v7.3.0">7.3.0</a> (2018-02-07)
Bug Fixes
Features
- extract: append _resolved and _integrity automatically (#134) (6886b65)
<a href="https://github.com/npm/pacote/compare/v7.1.1...v7.2.0">7.2.0</a> (2018-01-19)
Features
- resolved: tarball shortcut when opts.resolved is provided (46a2f58)
<a href="https://github.com/npm/pacote/compare/v7.1.0...v7.1.1">7.1.1</a> (2018-01-08)
Bug Fixes
- publish: a spurious file was included in the previous release (296741a)
<a href="https://github.com/npm/pacote/compare/v7.0.2...v7.1.0">7.1.0</a> (2018-01-07)
Bug Fixes
- security: deep-update debug due to vulnerabilities (ff16da7)
Features
- resolved: add opts.resolved for cache stuff (#131) (149a4b5)
<a href="https://github.com/npm/pacote/compare/v7.0.1...v7.0.2">7.0.2</a> (2017-11-28)
Bug Fixes
- git: only resolvedRefs can be shallow-cloned (899720f)
<a href="https://github.com/npm/pacote/compare/v7.0.0...v7.0.1">7.0.1</a> (2017-11-15)
Bug Fixes
- git: use resolved ref if available when doing a full clone (#125) (46ca45a), closes #125
- move: bump cacache for some cross-platform move fixes (eebdcda)
- test: missed a spot converting tests to promises (c43caed)
<a href="https://github.com/npm/pacote/compare/v6.1.0...v7.0.0">7.0.0</a> (2017-11-15)
Bug Fixes
- docs: You totally should use pacote now (#126) (d49a9b5)
- git: stop generating integrity for git (d45363b)
- integrity: stop defaulting to sha1 hashes (62f8cdf)
- license: relicense to MIT for OSI-compat (ba6b3e0)
Features
- tarball: add externall pacote.tarball() api (e30bd49)
prefetch
- deprecate pacote.prefetch (e47e521)
BREAKING CHANGES
- license: The license has changed from CC0-1.0 to MIT, which is less permissive and also OSI-approved.
- pacote.prefetch is deprecated in favor of pacote.tarball
<a href="https://github.com/npm/pacote/compare/v6.0.4...v6.1.0">6.1.0</a> (2017-10-19)
Bug Fixes
- git: use actual default git branch instead of assuming master (#122) (79ce949)
- npa: ensure spec is a valid npa instance (1757b2b)
Features
- selection: add opts.includeDeprecated (#123) (2001549)
<a href="https://github.com/npm/pacote/compare/v6.0.3...v6.0.4">6.0.4</a> (2017-10-05)
Bug Fixes
- file: include integrity hash for streamed tarballs too (030cee7)
<a href="https://github.com/npm/pacote/compare/v6.0.2...v6.0.3">6.0.3</a> (2017-10-05)
Bug Fixes
- extract: clean up mode/fmode/dmode tests (f915045)
- file: make sure file tarballs are written to cache and have integrity data (dae391a)
- git: version resolution regression from #115 (#119) (9a68205)
<a href="https://github.com/npm/pacote/compare/v6.0.1...v6.0.2">6.0.2</a> (2017-09-06)
Bug Fixes
- extract: preserve executable perms on extracted files (19b3dfd)
Performance Improvements
- replace some calls to .match() with .starts/endsWith() (#115) (192a02f)
<a href="https://github.com/npm/pacote/compare/v6.0.0...v6.0.1">6.0.1</a> (2017-08-22)
Bug Fixes
- finalize: insist on getting a package.json (f72ee91)
<a href="https://github.com/npm/pacote/compare/v5.0.1...v6.0.0">6.0.0</a> (2017-08-19)
Bug Fixes
- tar: bring back the .gitignore -> .npmignore logic (#113) (0dd518e)
BREAKING CHANGES
- tar: this reverts a previous change to disable this feature.
<a href="https://github.com/npm/pacote/compare/v5.0.0...v5.0.1">5.0.1</a> (2017-08-17)
Bug Fixes
- tar: chown directories on extract as well (2fa4598)
<a href="https://github.com/npm/pacote/compare/v4.0.0...v5.0.0">5.0.0</a> (2017-08-16)
Bug Fixes
- registry: Pass maxSockets options down (#110) (3f05b79)
Features
- deps: replace tar-fs/tar-stream with tar@3 (28c80a9)
- tar: switch to tarv3 (53899c7)
BREAKING CHANGES
- tar: this changes the underlying tar library, and thus may introduce some subtle low-level incompatibility. Also:
- The tarball packer built into pacote works much closer to how the one npm injects does.
- Special characters on Windows will now be escaped the way tar(1) usually does: by replacing them with the
0xf000
masked character on the way out.
- Directories won't be chowned.
<a href="https://github.com/npm/pacote/compare/v3.0.0...v4.0.0">4.0.0</a> (2017-06-29)
Bug Fixes
- extract: revert uid/gid change (41852e0)
BREAKING CHANGES
- extract: behavior for setting uid/gid on extracted contents was restored to what it was in pacote@2
<a href="https://github.com/npm/pacote/compare/v2.7.38...v3.0.0">3.0.0</a> (2017-06-29)
Bug Fixes
- extract: always extract as current user gid/uid (6fc01a5)
BREAKING CHANGES
- extract: pacote will no longer set ownership of extracted contents – uid/gid will only be used for the cache and other internal details.
<a href="https://github.com/npm/pacote/compare/v2.7.37...v2.7.38">2.7.38</a> (2017-06-29)
Bug Fixes
- manifest: bump npm-pick-manifest for loose semver fix (b3d45ef)
<a href="https://github.com/npm/pacote/compare/v2.7.36...v2.7.37">2.7.37</a> (2017-06-29)
Bug Fixes
- deps: bump deps for fixes (f156655)
<a href="https://github.com/npm/pacote/compare/v2.7.35...v2.7.36">2.7.36</a> (2017-06-10)
Bug Fixes
- deps: update tar-fs with the special characters patch (#102) (ed43aa3)
<a href="https://github.com/npm/pacote/compare/v2.7.34...v2.7.35">2.7.35</a> (2017-06-09)
Bug Fixes
- registry: only print one 199 warning (#100) (b395138)
<a href="https://github.com/npm/pacote/compare/v2.7.33...v2.7.34">2.7.34</a> (2017-06-09)
Bug Fixes
- git: whitelist specific shallow-cloneable hosts (b210cc8)
<a href="https://github.com/npm/pacote/compare/v2.7.32...v2.7.33">2.7.33</a> (2017-06-08)
Bug Fixes
- git: better error reporting when ls-remote fails (10aae8f)
<a href="https://github.com/npm/pacote/compare/v2.7.31...v2.7.32">2.7.32</a> (2017-06-07)
Bug Fixes
- registry: print both 111 and 199 warnings (2f8c201)
<a href="https://github.com/npm/pacote/compare/v2.7.30...v2.7.31">2.7.31</a> (2017-06-06)
Bug Fixes
- extract: always return a bluebird promise (06ca91d)
- registry: bump make-fetch-happen for local cache header issue fix (868615c)
<a href="https://github.com/npm/pacote/compare/v2.7.29...v2.7.30">2.7.30</a> (2017-06-05)
Bug Fixes
- ssri: bump ssri for bugfix (70a859c)
<a href="https://github.com/npm/pacote/compare/v2.7.28...v2.7.29">2.7.29</a> (2017-06-05)
Bug Fixes
- registry: use cert instead of certfile opt (a45880d)
<a href="https://github.com/npm/pacote/compare/v2.7.27...v2.7.28">2.7.28</a> (2017-06-05)
Bug Fixes
- git: limit ls-remote output to heads/tags (#97) (c1e3dcd)
- proxy: send certificate authority, key and other options (#95) (c4b6128)
- registry: add support for global auth and _auth token (#96) (7919fb7)
- registry: emit npm-session header (#98) (9816b18)
<a href="https://github.com/npm/pacote/compare/v2.7.26...v2.7.27">2.7.27</a> (2017-06-01)
Bug Fixes
- git: fix semver range detection. oops (76d9233)
<a href="https://github.com/npm/pacote/compare/v2.7.25...v2.7.26">2.7.26</a> (2017-06-01)
Bug Fixes
- git: hash was not being replaced/appended correctly (6fcbed5)
<a href="https://github.com/npm/pacote/compare/v2.7.24...v2.7.25">2.7.25</a> (2017-05-31)
Bug Fixes
- git: git deps were getting _resolved without shasums (96f0675)
<a href="https://github.com/npm/pacote/compare/v2.7.23...v2.7.24">2.7.24</a> (2017-05-31)
Bug Fixes
- deps: update dep versions with new patches (dc2e4ff)
<a href="https://github.com/npm/pacote/compare/v2.7.22...v2.7.23">2.7.23</a> (2017-05-31)
Bug Fixes
- git: fix ls-remote command and throw away ^{} junk (62ba84d)
- git: use the parsed git committish from npa (77a676a)
<a href="https://github.com/npm/pacote/compare/v2.7.21...v2.7.22">2.7.22</a> (2017-05-31)
Bug Fixes
- git: accept shortened git hashes (#91) (4466388)
<a href="https://github.com/npm/pacote/compare/v2.7.20...v2.7.21">2.7.21</a> (2017-05-25)
Bug Fixes
- registry: stop URIEncoding username/password (011c9a2)
<a href="https://github.com/npm/pacote/compare/v2.7.19...v2.7.20">2.7.20</a> (2017-05-25)
Bug Fixes
- registry: encode username and password for auth (c48b651)
<a href="https://github.com/npm/pacote/compare/v2.7.18...v2.7.19">2.7.19</a> (2017-05-25)
Bug Fixes
- registry: respect alwaysAuth (150788a)
<a href="https://github.com/npm/pacote/compare/v2.7.17...v2.7.18">2.7.18</a> (2017-05-25)
Bug Fixes
- cache: pass uid/gid settings through to mfh (d8845df)
- deps: update m-f-h for cache opts fix (faab6cd)
<a href="https://github.com/npm/pacote/compare/v2.7.16...v2.7.17">2.7.17</a> (2017-05-25)
Bug Fixes
<a href="https://github.com/npm/pacote/compare/v2.7.15...v2.7.16">2.7.16</a> (2017-05-24)
Bug Fixes
- deps: pull in various fixes from deps (4354703)
<a href="https://github.com/npm/pacote/compare/v2.7.14...v2.7.15">2.7.15</a> (2017-05-24)
Bug Fixes
- proxy: bump m-f-h with more patches (26d4170)
<a href="https://github.com/npm/pacote/compare/v2.7.13...v2.7.14">2.7.14</a> (2017-05-24)
Bug Fixes
- proxy: pull in new m-f-h with fixed http proxies (d6a14e0)
<a href="https://github.com/npm/pacote/compare/v2.7.12...v2.7.13">2.7.13</a> (2017-05-23)
Bug Fixes
- deps: bump dep versions to fix http redirect issues (b23a9fa)
<a href="https://github.com/npm/pacote/compare/v2.7.11...v2.7.12">2.7.12</a> (2017-05-16)
Bug Fixes
- fetch: fix default userAgent (4b9d344)
- registry: log failed requests too (0f23f06)
- remote: send a useful pkg id header for remote tarballs (ac13356)
<a href="https://github.com/npm/pacote/compare/v2.7.10...v2.7.11">2.7.11</a> (2017-05-12)
Bug Fixes
- fetch: make it play nicer with bundlers (67cd713)
<a href="https://github.com/npm/pacote/compare/v2.7.9...v2.7.10">2.7.10</a> (2017-05-12)
Bug Fixes
- logging: shhhhhhh (e7ea56e)
- manifest: _resolved is the only main field we do not overwrite (4c12421)
<a href="https://github.com/npm/pacote/compare/v2.7.8...v2.7.9">2.7.9</a> (2017-05-09)
Bug Fixes
- git: Resolve to ref git specs w/o committishes (#88) (cb885f5), closes #88
<a href="https://github.com/npm/pacote/compare/v2.7.7...v2.7.8">2.7.8</a> (2017-05-07)
Bug Fixes
- git: integrity hash was not always emitted (97ed9e1)
<a href="https://github.com/npm/pacote/compare/v2.7.6...v2.7.7">2.7.7</a> (2017-05-06)
Bug Fixes
- auth: redirects no longer send auth to different host (82e78c5)
<a href="https://github.com/npm/pacote/compare/v2.7.5...v2.7.6">2.7.6</a> (2017-05-05)
Bug Fixes
- git: only use longpaths on win32 because old gits (32846fc)
<a href="https://github.com/npm/pacote/compare/v2.7.4...v2.7.5">2.7.5</a> (2017-05-04)
Bug Fixes
- registry-key: Use pathname instead of path in registryKey (#85) (5339831)
<a href="https://github.com/npm/pacote/compare/v2.7.3...v2.7.4">2.7.4</a> (2017-05-04)
Bug Fixes
- pick-manifest: fix =1.2.3 semver range requests (dd6911c)
<a href="https://github.com/npm/pacote/compare/v2.7.2...v2.7.3">2.7.3</a> (2017-05-04)
Bug Fixes
- pick-manifest: spaces in requested version are now trimmed out (6422b28)
<a href="https://github.com/npm/pacote/compare/v2.7.1...v2.7.2">2.7.2</a> (2017-05-04)
Bug Fixes
- extract: missing or corrupted content properly re-fetched again (46f60c2)
<a href="https://github.com/npm/pacote/compare/v2.7.0...v2.7.1">2.7.1</a> (2017-05-01)
Bug Fixes
- logging: log specs correctly on extract (4b5bab0)
- manifest: obey opts.preferOnline when fetching from memoized (26928a7)
<a href="https://github.com/npm/pacote/compare/v2.6.0...v2.7.0">2.7.0</a> (2017-04-29)
Bug Fixes
- registry: stop using integrity hashes for metadata. again. (4595ab2)
Features
- manifest: include _shasum for legacy compat (b3a7eed)
<a href="https://github.com/npm/pacote/compare/v2.5.0...v2.6.0">2.6.0</a> (2017-04-29)
Features
- manifest: annotate manifests with _from (e45e968)
<a href="https://github.com/npm/pacote/compare/v2.4.0...v2.5.0">2.5.0</a> (2017-04-28)
Bug Fixes
- registry: JSON text is not a valid header value (78951ea)
Features
- memoization: allow injection and control of memoizers (d8a2be7)
<a href="https://github.com/npm/pacote/compare/v2.3.2...v2.4.0">2.4.0</a> (2017-04-27)
Bug Fixes
- tests: nicer error message on registry 404 (e8e71c8)
Features
- auth: added basic auth and always-auth support (548aeb5)
- proxy: proxy support for registry and remote deps (3766bbb)
<a href="https://github.com/npm/pacote/compare/v2.3.1...v2.3.2">2.3.2</a> (2017-04-26)
Bug Fixes
- deps: reduce deps size with m-f-h upgrade (ba75461)
<a href="https://github.com/npm/pacote/compare/v2.3.0...v2.3.1">2.3.1</a> (2017-04-26)
Bug Fixes
- git: another attempt at fixing EPERM b.s. (e445bef)
<a href="https://github.com/npm/pacote/compare/v2.2.2...v2.3.0">2.3.0</a> (2017-04-26)
Bug Fixes
- git: had ENOTSUP error on windows (ee17c35)
- memoization: actually memoize package metadata (e2078c0)
Features
- memoization: better packument memoization + pacote.clearMemoized() (eb1bd4f)
<a href="https://github.com/npm/pacote/compare/v2.2.1...v2.2.2">2.2.2</a> (2017-04-24)
Bug Fixes
- prefetch: pull in new cacache + fix prefetch hasContent call (9f476b8)
<a href="https://github.com/npm/pacote/compare/v2.2.0...v2.2.1">2.2.1</a> (2017-04-23)
Bug Fixes
- finalize: pass on engines/cpu/os (0a73c78)
<a href="https://github.com/npm/pacote/compare/v2.1.2...v2.2.0">2.2.0</a> (2017-04-22)
Bug Fixes
- git: fix shortcut fallback order again (5759d40)
- registry: fix infinite manifetch loop (6c6a62b)
Features
- manifest: opts.fullMetadata to get unfiltered manifests (ff2945b)
<a href="https://github.com/npm/pacote/compare/v2.1.1...v2.1.2">2.1.2</a> (2017-04-20)
<a href="https://github.com/npm/pacote/compare/v2.1.0...v2.1.1">2.1.1</a> (2017-04-19)
Bug Fixes
- git: use sshurl instead of ssh for ssh clones (ff20803)
- notice: only log npm-notice if the packument came from network (eeeb411)
- registry: improve 404 error messages (6a5cbdb)
<a href="https://github.com/npm/pacote/compare/v2.0.5...v2.1.0">2.1.0</a> (2017-04-18)
Bug Fixes
- cache: bump deps for cache fixes (9596434)
Features
- warn: http warning headers now logged (f22ce1d)
<a href="https://github.com/npm/pacote/compare/v2.0.4...v2.0.5">2.0.5</a> (2017-04-18)
Bug Fixes
- file: oops, the type for these is file (e7a3d35)
<a href="https://github.com/npm/pacote/compare/v2.0.3...v2.0.4">2.0.4</a> (2017-04-18)
Bug Fixes
- deps: remove normalize-git-url (12d464a)
- git: Correctly read in the HEAD ref after cloning (dbe1b15)
- git: The full clone path doesn't have _resolved set (ddce561)
- manifest: no _from ever (15087c4)
<a href="https://github.com/npm/pacote/compare/v2.0.2...v2.0.3">2.0.3</a> (2017-04-15)
Bug Fixes
- manifest: meh just shove _from in there (4396f09)
- registry: include CI header (86ad911)
- registry: include npm-scope header (574cd93)
- registry: make sure to send referer header (2d3aaac)
<a href="https://github.com/npm/pacote/compare/v2.0.1...v2.0.2">2.0.2</a> (2017-04-15)
Bug Fixes
- directory: fix default pack-dir and write a test for it (9d9266f)
- extract: brainfart with extractByManifest fixed. lol. (a1367fb)
<a href="https://github.com/npm/pacote/compare/v2.0.0...v2.0.1">2.0.1</a> (2017-04-15)
Bug Fixes
- tarball: missed the local->tarball rename (ac42dc4)
<a href="https://github.com/npm/pacote/compare/v1.0.0...v2.0.0">2.0.0</a> (2017-04-15)
Bug Fixes
- api: use npa@5 for spec parsing (#78) (3f56298)
- deprecated: remove underscore from manifest._deprecated (9f4af93)
- directory: add _resolved to directory manifests (1d305db)
- directory: return null instead of throwing (d35630d)
- finalize: don't try to cache manifests we can't get a good key for (8ab1758)
- finalize: refactored finalize-manifest code + add _integrity=false sentinel (657b7fa)
- git: cleaner handling of git tarball streams when caching (11acd0a)
- git: emit manifests from git tarball handler (b139d4b)
- git: fix .git exclusion, set mtime = 0 to make tarballs idempotent (9a9fa1b)
- git: fix fallback order and only fall back on hosted shortcuts (551cb33)
- git: fix filling-out of git manifests (95e807c)
- git: got dir packer option working with git (7669b3e)
- headers: nudge around some headers to make things behave (db1e0a1)
- manifest: get rid of resolved-with-non-error warning (d4d4917)
- manifest: stop using digest for manifests (4ddd2f5)
- opts: bring opt-check up to date (564419e)
- opts: rename refreshCache to preferOnline cause much clearer (94171d6)
- prefetch: fall back to the _integrity in the manifest if none calculated (083ac79)
- prefetch: if there's no stream, just skip (for directory) (714de91)
- registry: fix error handling for registry tarballs (e69539f)
- registry: nudging logging stuff around a bit (61d62cc)
- registry: only send auth info if tarball is hosted on the same registry (1de5a2b)
- registry: redirect tarball urls to provided registry port+protocol if same host (f50167e)
- registry: support memoizing packuments (e7fff31)
- registry: treat registry cache as "private" – bumps m-f-h (6fa1503)
Features
- directory: implement local dir packing (017d989)
- fetch: bump make-fetch-happen for new restarts (cf90716)
- git: support pulling in git submodules (5825d33)
- integrity: replace http client (#72) (189cdd2)
- prefetch: return cache-related info on prefetch (623b7f3)
- registry: allow injection of request agents (805e5ae)
- registry: fast request pooling (321f84b)
- registry: registry requests now follow cache spec more closely, respect Age, etc (9e47098)
BREAKING CHANGES
- api: spec objects can no longer be realize-package-specifier objects. Pass a string or generate npa>=5 spec objects to pass in.
- integrity: This PR replaces a pretty fundamental chunk of pacote.
- Caching now follows standard-ish cache rules for http-related requests.
- manifest() no longer includes the
_shasum
field. It's been replaced by _integrity
, which is a Subresource Integrity hash string containing equivalent data. These strings can be parsed and managed using https://npm.im/ssri.
- Any functions that accepted
opts.digest
and/or opts.hashAlgorithm
now expect opts.integrity
instead.
- Packuments and finalized manifests are now cached using sha512. Tarballs can start using that hash (or any other more secure hash) once registries start supporting them:
packument.dist.integrity
will be prioritized over packument.shasum
.
- If opts.offline is used, a
ENOCACHE
error will be returned.
<a href="https://github.com/npm/pacote/compare/v0.1.1...v1.0.0">1.0.0</a> (2017-03-17)
Bug Fixes
- extract-stream: adapt to tar-fs api (aa21308)
- add 'use strict' to all .js files (#26) (021bd59)
- cache: this is really a user error, so just throw (5c9c0fa)
- deps: cacache@5.0.3 (37cddc5)
- deps: tar-fs@1.15.1 (e0d853a)
- docs: correct fixtures table (#57) (23d2eb4)
- extract: correctly detect digest cache misses (ec6672b)
- extract: fixed race condition (14fd2a8)
- finalize-manifest: use digest to uniquify cached manifests (931a9cb)
- http: Fixed cache-related race condition (b70a4b1)
- manifest: dir manifests should throw ENOPACKAGEJSON (b06882d)
- manifest: ETARGET when no packages match (ea2127d)
- manifest: local manifest fn should return a promise (c700622)
- manifest: retry registry manifests once on ETARGET (#66) (3b99adc)
- prefetch: hashAlgorithm is required for hasContent (f03d51c)
- request: report cache write errors on end (c102b86)
Features
- api: support pre-realized specifiers as specs (#62) (1d5bf39)
- cache: grabbing info and hasContent (a559711)
- deps: minimatch@3.0.3 (2bb8cd5)
- deps: normalize-package-data@2.3.5 (4250e0d)
- directory: directory dep support (#68) (6d5307a)
- git: baseline git support (#69) (6d7eaf5)
- handlers: added remote tarball support (#64) (add1808)
- local: local tarball support (#67) (e50d625)
- manifest: handle deprecation notice (#60) (db82dae)
- manifest: standardize manifest format (3dd9a72)
- manifest: switch to cacache for caching (8ba7249)
- prefetch: added tarball prefetch support (26c34ce)
- request: accept maxSockets opt (3987807)
- scopes: new scopeTargets option (#59) (b5db7ae)
Performance Improvements
- finalize-manifest: cache finalized manifests (fa3c430)
BREAKING CHANGES
- manifest: Toplevel APIs now return Promises instead of using callbacks.