compression on npm

1.7.4 (18 Mar 2019 14:03)

Node.js compression middleware


HISTORY.md

1.7.4 / 2019-03-18

  • deps: compressible@~2.0.16
    • Mark text/less as compressible
    • deps: mime-db@'>= 1.38.0 < 2'
  • deps: on-headers@~1.0.2
    • Fix res.writeHead patch missing return value
  • perf: prevent unnecessary buffer copy

1.7.3 / 2018-07-15

  • deps: accepts@~1.3.5
    • deps: mime-types@~2.1.18
  • deps: compressible@~2.0.14
    • Mark all XML-derived types as compressible
    • deps: mime-db@'>= 1.34.0 < 2'
  • deps: safe-buffer@5.1.2

1.7.2 / 2018-02-18

  • deps: compressible@~2.0.13
    • deps: mime-db@'>= 1.33.0 < 2'

1.7.1 / 2017-09-26

  • deps: accepts@~1.3.4
    • deps: mime-types@~2.1.16
  • deps: bytes@3.0.0
  • deps: compressible@~2.0.11
    • deps: mime-db@'>= 1.29.0 < 2'
  • deps: debug@2.6.9
  • deps: vary@~1.1.2
    • perf: improve header token parsing speed

1.7.0 / 2017-07-10

  • Use safe-buffer for improved Buffer API
  • deps: bytes@2.5.0
  • deps: compressible@~2.0.10
    • Fix regex fallback to not override compressible: false in db
    • deps: mime-db@'>= 1.27.0 < 2'
  • deps: debug@2.6.8
    • Allow colors in workers
    • Deprecated DEBUG_FD environment variable set to 3 or higher
    • Fix error when running under React Native
    • Fix DEBUG_MAX_ARRAY_LENGTH
    • Use same color for same namespace
    • deps: ms@2.0.0
  • deps: vary@~1.1.1
    • perf: hoist regular expression

1.6.2 / 2016-05-12

  • deps: accepts@~1.3.3
    • deps: mime-types@~2.1.11
    • deps: negotiator@0.6.1
  • deps: bytes@2.3.0
    • Drop partial bytes on all parsed units
    • Fix parsing byte string that looks like hex
    • perf: hoist regular expressions
  • deps: compressible@~2.0.8
    • deps: mime-db@'>= 1.23.0 < 2'

1.6.1 / 2016-01-19

  • deps: bytes@2.2.0
  • deps: compressible@~2.0.7
    • deps: mime-db@'>= 1.21.0 < 2'
  • deps: accepts@~1.3.1
    • deps: mime-types@~2.1.9

1.6.0 / 2015-09-29

  • Skip compression when response has Cache-Control: no-transform
  • deps: accepts@~1.3.0
    • deps: mime-types@~2.1.7
    • deps: negotiator@0.6.0
  • deps: compressible@~2.0.6
    • deps: mime-db@'>= 1.19.0 < 2'
  • deps: on-headers@~1.0.1
    • perf: enable strict mode
  • deps: vary@~1.1.0
    • Only accept valid field names in the field argument

1.5.2 / 2015-07-30

  • deps: accepts@~1.2.12
    • deps: mime-types@~2.1.4
  • deps: compressible@~2.0.5
    • deps: mime-db@'>= 1.16.0 < 2'
  • deps: vary@~1.0.1
    • Fix setting empty header from empty field
    • perf: enable strict mode
    • perf: remove argument reassignments

1.5.1 / 2015-07-05

  • deps: accepts@~1.2.10
    • deps: mime-types@~2.1.2
  • deps: compressible@~2.0.4
    • deps: mime-db@'>= 1.14.0 < 2'
    • perf: enable strict mode

1.5.0 / 2015-06-09

  • Fix return value from .end and .write after end
  • Improve detection of zero-length body without Content-Length
  • deps: accepts@~1.2.9
    • deps: mime-types@~2.1.1
    • perf: avoid argument reassignment & argument slice
    • perf: avoid negotiator recursive construction
    • perf: enable strict mode
    • perf: remove unnecessary bitwise operator
  • deps: bytes@2.1.0
    • Slight optimizations
    • Units no longer case sensitive when parsing
  • deps: compressible@~2.0.3
    • Fix regex fallback to work if type exists, but is undefined
    • deps: mime-db@'>= 1.13.0 < 2'
    • perf: hoist regex declaration
    • perf: use regex to extract mime
  • perf: enable strict mode
  • perf: remove flush reassignment
  • perf: simplify threshold detection

1.4.4 / 2015-05-11

  • deps: accepts@~1.2.7
    • deps: mime-types@~2.0.11
    • deps: negotiator@0.5.3
  • deps: debug@~2.2.0
    • deps: ms@0.7.1

1.4.3 / 2015-03-14

  • deps: accepts@~1.2.5
    • deps: mime-types@~2.0.10
  • deps: debug@~2.1.3
    • Fix high intensity foreground color for bold
    • deps: ms@0.7.0

1.4.2 / 2015-03-11

  • Fix error when code calls res.end(str, encoding)
    • Specific to Node.js 0.8
  • deps: debug@~2.1.2
    • deps: ms@0.7.0

1.4.1 / 2015-02-15

  • deps: accepts@~1.2.4
    • deps: mime-types@~2.0.9
    • deps: negotiator@0.5.1

1.4.0 / 2015-02-01

  • Prefer gzip over deflate on the server
    • Not all clients agree on what "deflate" coding means

1.3.1 / 2015-01-31

  • deps: accepts@~1.2.3
    • deps: mime-types@~2.0.8
  • deps: compressible@~2.0.2
    • deps: mime-db@'>= 1.1.2 < 2'

1.3.0 / 2014-12-30

  • Export the default filter function for wrapping
  • deps: accepts@~1.2.2
    • deps: mime-types@~2.0.7
    • deps: negotiator@0.5.0
  • deps: debug@~2.1.1

1.2.2 / 2014-12-10

  • Fix .end to only proxy to .end
    • Fixes an issue with Node.js 0.11.14
  • deps: accepts@~1.1.4
    • deps: mime-types@~2.0.4

1.2.1 / 2014-11-23

  • deps: accepts@~1.1.3
    • deps: mime-types@~2.0.3

1.2.0 / 2014-10-16

  • deps: debug@~2.1.0
    • Implement DEBUG_FD env variable support

1.1.2 / 2014-10-15

  • deps: accepts@~1.1.2
    • Fix error when media type has invalid parameter
    • deps: negotiator@0.4.9

1.1.1 / 2014-10-12

  • deps: accepts@~1.1.1
    • deps: mime-types@~2.0.2
    • deps: negotiator@0.4.8
  • deps: compressible@~2.0.1
    • deps: mime-db@1.x

1.1.0 / 2014-09-07

  • deps: accepts@~1.1.0
  • deps: compressible@~2.0.0
  • deps: debug@~2.0.0

1.0.11 / 2014-08-10

  • deps: on-headers@~1.0.0
  • deps: vary@~1.0.0

1.0.10 / 2014-08-05

  • deps: compressible@~1.1.1
    • Fix upper-case Content-Type characters prevent compression

1.0.9 / 2014-07-20

  • Add debug messages
  • deps: accepts@~1.0.7
    • deps: negotiator@0.4.7

1.0.8 / 2014-06-20

  • deps: accepts@~1.0.5
    • use mime-types

1.0.7 / 2014-06-11

  • use vary module for better Vary behavior
  • deps: accepts@1.0.3
  • deps: compressible@1.1.0

1.0.6 / 2014-06-03

  • fix regression when negotiation fails

1.0.5 / 2014-06-03

  • fix listeners for delayed stream creation
    • fixes regression for certain stream.pipe(res) situations

1.0.4 / 2014-06-03

  • fix adding Vary when value stored as array
  • fix back-pressure behavior
  • fix length check for res.end

1.0.3 / 2014-05-29

  • use accepts for negotiation
  • use on-headers to handle header checking
  • deps: bytes@1.0.0

1.0.2 / 2014-04-29

  • only version compatible with node.js 0.8
  • support headers given to res.writeHead
  • deps: bytes@0.3.0
  • deps: negotiator@0.4.3

1.0.1 / 2014-03-08

  • bump negotiator
  • use compressible
  • use .headersSent (drops 0.8 support)
  • handle identity;q=0 case

Version History

Version Date
1.7.4 18 Mar 2019 14:03
1.7.3 15 Jul 2018 21:07
1.7.2 19 Feb 2018 04:02
1.7.1 27 Sep 2017 05:09
1.7.0 11 Jul 2017 06:07
1.6.2 12 May 2016 23:05
1.6.1 20 Jan 2016 04:01
1.6.0 30 Sep 2015 05:09
1.5.2 31 Jul 2015 03:07
1.5.1 06 Jul 2015 02:07
1.5.0 10 Jun 2015 03:06
1.4.4 12 May 2015 05:05
1.4.3 15 Mar 2015 03:03
1.4.2 12 Mar 2015 04:03
1.4.1 15 Feb 2015 20:02
1.4.0 01 Feb 2015 22:02
1.3.1 01 Feb 2015 07:02
1.3.0 31 Dec 2014 05:12
1.2.2 10 Dec 2014 21:12
1.2.1 23 Nov 2014 19:11
1.2.0 17 Oct 2014 01:10
1.1.2 16 Oct 2014 03:10
1.1.1 13 Oct 2014 04:10
1.1.0 08 Sep 2014 03:09
1.0.11 11 Aug 2014 01:08
1.0.10 06 Aug 2014 03:08
1.0.9 21 Jul 2014 03:07
1.0.8 20 Jun 2014 18:06
1.0.7 12 Jun 2014 02:06
1.0.6 04 Jun 2014 01:06
1.0.5 04 Jun 2014 01:06
1.0.4 03 Jun 2014 20:06
1.0.3 30 May 2014 00:05
1.0.2 29 Apr 2014 05:04
1.0.1 08 Mar 2014 21:03
1.0.0 01 Jan 2014 23:01