Giter Site home page Giter Site logo

Comments (9)

niftylettuce avatar niftylettuce commented on May 2, 2024 1

I merged the wrong PR haha. You had two, #110 and #120, I merged #110 not #120. I reverted #110 and merged #120 and released to npm.

from compress.

niftylettuce avatar niftylettuce commented on May 2, 2024

I added a comment to #110 - once PR is updated or a new one made, I will merge and release as major semver bump.

from compress.

uhop avatar uhop commented on May 2, 2024

Will do.

from compress.

uhop avatar uhop commented on May 2, 2024

Done.

from compress.

niftylettuce avatar niftylettuce commented on May 2, 2024

Merged. Once @jonathanong gives me npm access, I will publish v5.0.0 to npm and GitHub releases.

from compress.

niftylettuce avatar niftylettuce commented on May 2, 2024

@uhop I just tested locally and I seem to have a failing test:

> [email protected] test /Users/test/Projects/compress
> jest

 PASS  __tests__/encodings.js
 PASS  __tests__/middleware.js
 FAIL  __tests__/index.js
  ● Compress › should not compress if no accept-encoding is sent

    assert(received)

    Expected value to be equal to:
      true
    Received:
      false

      263 |         if (err) { return done(err) }
      264 |
    > 265 |         assert(!res.headers['content-encoding'])
          |         ^
      266 |         assert(!res.headers['transfer-encoding'])
      267 |         assert.equal(res.headers['content-length'], '1024')
      268 |         assert.equal(res.headers.vary, 'Accept-Encoding')

      at Test.<anonymous> (__tests__/index.js:265:9)
      at Test.assert (node_modules/supertest/lib/test.js:181:6)
      at localAssert (node_modules/supertest/lib/test.js:131:12)
      at node_modules/supertest/lib/test.js:128:5
      at Test.Request.callback (node_modules/superagent/lib/node/index.js:716:12)
      at Stream.<anonymous> (node_modules/superagent/lib/node/index.js:916:18)
      at Unzip.<anonymous> (node_modules/superagent/lib/node/unzip.js:55:12)

from compress.

niftylettuce avatar niftylettuce commented on May 2, 2024

The unset seems to not be working, hmm.

from compress.

niftylettuce avatar niftylettuce commented on May 2, 2024

v5.0.0 published to npm and GitHub

https://github.com/koajs/compress/releases/tag/v5.0.0

from compress.

uhop avatar uhop commented on May 2, 2024

Strange — I modified the test to not use unset()… Are you sure you tested the right thing?

from compress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.