Skip to content

Latest commit

 

History

History
1387 lines (626 loc) · 42.7 KB

CHANGELOG.md

File metadata and controls

1387 lines (626 loc) · 42.7 KB

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

9.5.9 (2019-10-29)

Bug Fixes

9.5.8 (2019-08-20)

9.5.7 (2019-08-19)

Bug Fixes

  • do not try to chown if not running as root (bbc5da3)

9.5.6 (2019-08-15)

Bug Fixes

  • extract: chown properly when more than one directory is made (5161828)

9.5.5 (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

9.5.4 (2019-07-16)

Bug Fixes

  • git: ensure stream failures are reported (7f07b5d), closes #1

9.5.3 (2019-07-16)

9.5.2 (2019-07-12)

Bug Fixes

  • always pass uid/gid to cacache.put (3d08925)

9.5.1 (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)

9.5.0 (2019-02-18)

Features

  • enjoy-by: add before as an alias to enjoy-by (75d62b7)

9.4.1 (2019-01-24)

Bug Fixes

  • directory, finalize-manifest: strip byte order marker from JSON (723ad63)

9.4.0 (2019-01-14)

Features

  • registry: fall back to fullfat if something might be wrong with corgis (0e71d6b)

9.3.0 (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

9.2.3 (2018-10-31)

9.2.2 (2018-10-31)

9.2.1 (2018-10-31)

9.2.0 (2018-10-30)

Features

  • enjoyBy: add opts.enjoy-by option (7df399c)

9.1.1 (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)

9.1.0 (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)

9.0.0 (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.

8.1.6 (2018-05-24)

8.1.5 (2018-05-22)

8.1.4 (2018-05-22)

8.1.3 (2018-05-20)

Bug Fixes

  • deps: try reverting tar (574ecff)
  • extract-stream: address "write after end" issue (#151) (50ed408), closes #142

8.1.2 (2018-05-16)

Bug Fixes

  • extract-stream: nudge things to stop write-after-end heisenbug, hopefully (a398715)

8.1.1 (2018-04-24)

Bug Fixes

8.1.0 (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)

8.0.0 (2018-04-12)

Bug Fixes

  • git: make full clones do a full mirror (85b269b)

deps

meta

  • drop support for node@4 (11478ff)

BREAKING CHANGES

  • some dependencies were upgraded to versions that do not support node@4.
  • node@4 is no longer supported

7.6.1 (2018-03-08)

Bug Fixes

  • standard: update to new standard rules (bb52d02)

7.6.0 (2018-03-08)

Features

  • git: added retry logic for all git operations. (#136) (425c58d)

7.5.3 (2018-03-02)

Bug Fixes

  • tarball: stop dropping stream errors on the floor (3db03c2)

7.5.2 (2018-03-02)

Bug Fixes

  • console: remove spurious debugging console.log :< (5b8b509)

7.5.1 (2018-03-01)

Bug Fixes

  • tarball: catch errors thrown from stream handler (bdd6628)

7.5.0 (2018-03-01)

Features

  • logging: let users know when file: resolved packages fail integrity check (0fb8037)

7.4.2 (2018-02-23)

Bug Fixes

  • deps: move mkdirp and rimraf to dependencies (#140) (bba20c8), closes #128

7.4.1 (2018-02-23)

Bug Fixes

  • tarball: fix spurious errors from tarball.stream() (0286ba5)

7.4.0 (2018-02-17)

Features

  • tarball: support file: opts.resolved shortcut (a6cf279)

7.3.3 (2018-02-15)

Bug Fixes

  • tarball: another attempt at fixing opts.resolved (aff3b6a)

7.3.2 (2018-02-15)

Bug Fixes

  • tarball: opts.resolved impl was triggering extra registry lookups (0a4729d)

7.3.1 (2018-02-14)

Bug Fixes

  • tarball: stop using mississippi.pipe() in tarball.js and extract.js (f5c1da9)

7.3.0 (2018-02-07)

Bug Fixes

Features

  • extract: append _resolved and _integrity automatically (#134) (6886b65)

7.2.0 (2018-01-19)

Features

  • resolved: tarball shortcut when opts.resolved is provided (46a2f58)

7.1.1 (2018-01-08)

Bug Fixes

  • publish: a spurious file was included in the previous release (296741a)

7.1.0 (2018-01-07)

Bug Fixes

  • security: deep-update debug due to vulnerabilities (ff16da7)

Features

  • resolved: add opts.resolved for cache stuff (#131) (149a4b5)

7.0.2 (2017-11-28)

Bug Fixes

  • git: only resolvedRefs can be shallow-cloned (899720f)

7.0.1 (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)

7.0.0 (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

6.1.0 (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)

6.0.4 (2017-10-05)

Bug Fixes

  • file: include integrity hash for streamed tarballs too (030cee7)

6.0.3 (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)

6.0.2 (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)

6.0.1 (2017-08-22)

Bug Fixes

  • finalize: insist on getting a package.json (f72ee91)

6.0.0 (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.

5.0.1 (2017-08-17)

Bug Fixes

  • tar: chown directories on extract as well (2fa4598)

5.0.0 (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.

4.0.0 (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

3.0.0 (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.

2.7.38 (2017-06-29)

Bug Fixes

  • manifest: bump npm-pick-manifest for loose semver fix (b3d45ef)

2.7.37 (2017-06-29)

Bug Fixes

  • deps: bump deps for fixes (f156655)

2.7.36 (2017-06-10)

Bug Fixes

  • deps: update tar-fs with the special characters patch (#102) (ed43aa3)

2.7.35 (2017-06-09)

Bug Fixes

  • registry: only print one 199 warning (#100) (b395138)

2.7.34 (2017-06-09)

Bug Fixes

  • git: whitelist specific shallow-cloneable hosts (b210cc8)

2.7.33 (2017-06-08)

Bug Fixes

  • git: better error reporting when ls-remote fails (10aae8f)

2.7.32 (2017-06-07)

Bug Fixes

  • registry: print both 111 and 199 warnings (2f8c201)

2.7.31 (2017-06-06)

Bug Fixes

  • extract: always return a bluebird promise (06ca91d)
  • registry: bump make-fetch-happen for local cache header issue fix (868615c)

2.7.30 (2017-06-05)

Bug Fixes

  • ssri: bump ssri for bugfix (70a859c)

2.7.29 (2017-06-05)

Bug Fixes

  • registry: use cert instead of certfile opt (a45880d)

2.7.28 (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)

2.7.27 (2017-06-01)

Bug Fixes

  • git: fix semver range detection. oops (76d9233)

2.7.26 (2017-06-01)

Bug Fixes

  • git: hash was not being replaced/appended correctly (6fcbed5)

2.7.25 (2017-05-31)

Bug Fixes

  • git: git deps were getting _resolved without shasums (96f0675)

2.7.24 (2017-05-31)

Bug Fixes

  • deps: update dep versions with new patches (dc2e4ff)

2.7.23 (2017-05-31)

Bug Fixes

  • git: fix ls-remote command and throw away ^{} junk (62ba84d)
  • git: use the parsed git committish from npa (77a676a)

2.7.22 (2017-05-31)

Bug Fixes

  • git: accept shortened git hashes (#91) (4466388)

2.7.21 (2017-05-25)

Bug Fixes

  • registry: stop URIEncoding username/password (011c9a2)

2.7.20 (2017-05-25)

Bug Fixes

  • registry: encode username and password for auth (c48b651)

2.7.19 (2017-05-25)

Bug Fixes

  • registry: respect alwaysAuth (150788a)

2.7.18 (2017-05-25)

Bug Fixes

  • cache: pass uid/gid settings through to mfh (d8845df)
  • deps: update m-f-h for cache opts fix (faab6cd)

2.7.17 (2017-05-25)

Bug Fixes

2.7.16 (2017-05-24)

Bug Fixes

  • deps: pull in various fixes from deps (4354703)

2.7.15 (2017-05-24)

Bug Fixes

  • proxy: bump m-f-h with more patches (26d4170)

2.7.14 (2017-05-24)

Bug Fixes

  • proxy: pull in new m-f-h with fixed http proxies (d6a14e0)

2.7.13 (2017-05-23)

Bug Fixes

  • deps: bump dep versions to fix http redirect issues (b23a9fa)

2.7.12 (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)

2.7.11 (2017-05-12)

Bug Fixes

  • fetch: make it play nicer with bundlers (67cd713)

2.7.10 (2017-05-12)

Bug Fixes

  • logging: shhhhhhh (e7ea56e)
  • manifest: _resolved is the only main field we do not overwrite (4c12421)

2.7.9 (2017-05-09)

Bug Fixes

  • git: Resolve to ref git specs w/o committishes (#88) (cb885f5), closes #88

2.7.8 (2017-05-07)

Bug Fixes

  • git: integrity hash was not always emitted (97ed9e1)

2.7.7 (2017-05-06)

Bug Fixes

  • auth: redirects no longer send auth to different host (82e78c5)

2.7.6 (2017-05-05)

Bug Fixes

  • git: only use longpaths on win32 because old gits (32846fc)

2.7.5 (2017-05-04)

Bug Fixes

  • registry-key: Use pathname instead of path in registryKey (#85) (5339831)

2.7.4 (2017-05-04)

Bug Fixes

  • pick-manifest: fix =1.2.3 semver range requests (dd6911c)

2.7.3 (2017-05-04)

Bug Fixes

  • pick-manifest: spaces in requested version are now trimmed out (6422b28)

2.7.2 (2017-05-04)

Bug Fixes

  • extract: missing or corrupted content properly re-fetched again (46f60c2)

2.7.1 (2017-05-01)

Bug Fixes

  • logging: log specs correctly on extract (4b5bab0)
  • manifest: obey opts.preferOnline when fetching from memoized (26928a7)

2.7.0 (2017-04-29)

Bug Fixes

  • registry: stop using integrity hashes for metadata. again. (4595ab2)

Features

  • manifest: include _shasum for legacy compat (b3a7eed)

2.6.0 (2017-04-29)

Features

  • manifest: annotate manifests with _from (e45e968)

2.5.0 (2017-04-28)

Bug Fixes

  • registry: JSON text is not a valid header value (78951ea)

Features

  • memoization: allow injection and control of memoizers (d8a2be7)

2.4.0 (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)

2.3.2 (2017-04-26)

Bug Fixes

  • deps: reduce deps size with m-f-h upgrade (ba75461)

2.3.1 (2017-04-26)

Bug Fixes

  • git: another attempt at fixing EPERM b.s. (e445bef)

2.3.0 (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)

2.2.2 (2017-04-24)

Bug Fixes

  • prefetch: pull in new cacache + fix prefetch hasContent call (9f476b8)

2.2.1 (2017-04-23)

Bug Fixes

  • finalize: pass on engines/cpu/os (0a73c78)

2.2.0 (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)

2.1.2 (2017-04-20)

2.1.1 (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)

2.1.0 (2017-04-18)

Bug Fixes

  • cache: bump deps for cache fixes (9596434)

Features

  • warn: http warning headers now logged (f22ce1d)

2.0.5 (2017-04-18)

Bug Fixes

  • file: oops, the type for these is file (e7a3d35)

2.0.4 (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)

2.0.3 (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)

2.0.2 (2017-04-15)

Bug Fixes

  • directory: fix default pack-dir and write a test for it (9d9266f)
  • extract: brainfart with extractByManifest fixed. lol. (a1367fb)

2.0.1 (2017-04-15)

Bug Fixes

  • tarball: missed the local->tarball rename (ac42dc4)

2.0.0 (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.

1.0.0 (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.