Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: expressjs/compression
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.7.5
Choose a base ref
...
head repository: expressjs/compression
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 12 commits
  • 7 files changed
  • 11 contributors

Commits on Nov 1, 2024

  1. Configuration menu
    Copy the full SHA
    0a10f23 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Refactor toBuffer function to simplify buffer check logic (#201)

    The function now directly returns the existing buffer if the input is already a buffer,
    eliminating the need for a negated condition. This improves code readability and
    maintains functionality by ensuring that non-buffer inputs are converted to a buffer
    using the specified encoding.
    Ayoub-Mabrouk authored Nov 2, 2024
    Configuration menu
    Copy the full SHA
    0cd9d86 View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2024

  1. Configuration menu
    Copy the full SHA
    7b7f84b View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Use headersSent instead of _header (#129)

    * fix: change usage of _header to headersSernt
    
    * improve logic
    
    * update history
    
    ---------
    
    Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
    maritz and bjohansebas authored Nov 9, 2024
    Configuration menu
    Copy the full SHA
    8e5641c View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Bugfix/use write head instead of implicit header (#170)

    * Add failing tests for http2
    
    * Add support for http2
    The change just removes the usage of undocumented http API and instead uses the proper writeHead method
    
    * Remove arrow function in tests
    
    * Conditionally run http2 tests if http2 is available
    
    * Fix port in tests to be assigned automatically
    
    * Change http2 test usage to describe.skip if no http2 available
    
    * Fix closing the http2 connections to prevent possible exceptions
    
    * Fix closing the request first, then the client, then the server
    
    * Fix closing for v8.x and v9.x
    
    * fix tests not draining data for http2 requests, resulting in timeouts in node v10.4 onwards
    
    * fix: 🐛 assert.equal error
    
    * fix: 🐛 remove console.log's and timeout, let build fail
    
    * Apply suggestions from code review
    
    Co-authored-by: Lam Wei Li <lam_wei_li@hotmail.com>
    
    * fixed lint
    
    * fix: an issue where test hangs when assertion fails in http2 as http2server is not closed
    
    * refactor: use http2.constants instead of hard-coded strings in http2 test
    
    * Node.js 0.8 compatible
    
    * fix lint issue
    
    ---------
    
    Co-authored-by: Moritz Peters <maritz.peters@gmail.com>
    Co-authored-by: Moritz Peters <moritz@mpeters.biz>
    Co-authored-by: Lam Wei Li <lam_wei_li@hotmail.com>
    Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>
    5 people authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    b7d5d77 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2024

  1. feat: add default option (#191)

    * add test for default encoding
    
    * add functionality
    
    * support *
    
    * add docs
    
    * fix logic
    
    * change defaultEncoding to enforceEnconding
    
    * sort conditional
    bjohansebas authored Dec 5, 2024
    Configuration menu
    Copy the full SHA
    f4e596c View commit details
    Browse the repository at this point in the history

Commits on Dec 20, 2024

  1. Configuration menu
    Copy the full SHA
    96df7c5 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2025

  1. feat: support for brotli (#194)

    * Added support for brotli ('br') content-encoding
    
    * Update README.md
    
    * Update README.md
    
    * Update README.md
    
    * Apply default value also when params is specified
    
    * Increase coverage for specifying params
    
    * Updated brotli detection method
    
    * Prefer br over gzip and deflate
    
    * feat: use "koa-compress" logic to determine the preferred encoding
    
    * test: adding one more test case br/gzip with quality params
    
    * chore: fix linting errors
    
    * fix: hand write encodings lib to be compatible with node 0.8
    
    * Fix: fixing lint errors in new lib
    
    * Fix: fixing lint errors in new lib
    
    * implemented required encoding negotiator without 3rd party dependency
    
    * fix
    
    * use negotiator
    
    * improve negotiateEnconding
    
    * fix support
    
    * update history
    
    * add new test
    
    * add new test
    
    * Update test/compression.js
    
    Co-authored-by: Wes Todd <wes@wesleytodd.com>
    
    * improve parse options
    
    * don't directly manipulate the object.
    
    * remove .npmrc
    
    * use object assign in params
    
    * test: add test for enforceEnconding
    
    * deps: remove  object-assign
    
    ---------
    
    Co-authored-by: Daniel Cohen Gindi <danielgindi@gmail.com>
    Co-authored-by: Nick Randall <nicksrandall@gmail.com>
    Co-authored-by: Ulises Gascón <ulisesgascongonzalez@gmail.com>
    Co-authored-by: Wes Todd <wes@wesleytodd.com>
    5 people authored Jan 8, 2025
    Configuration menu
    Copy the full SHA
    d272132 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2025

  1. fix(docs): improve readme (#209)

    * docs: improve readme
    
    * funding?
    
    * some work
    
    * remove some things
    bjohansebas authored Jan 10, 2025
    Configuration menu
    Copy the full SHA
    0cf7d3f View commit details
    Browse the repository at this point in the history
  2. fix(docs): keywords field (#210)

    * docs: add funding and keywork field
    
    * remove funding
    bjohansebas authored Jan 10, 2025
    Configuration menu
    Copy the full SHA
    82c9cb5 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2025

  1. Configuration menu
    Copy the full SHA
    0af2a9a View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2025

  1. v1.8.0

    bjohansebas authored and wesleytodd committed Feb 10, 2025
    Configuration menu
    Copy the full SHA
    c7ace2c View commit details
    Browse the repository at this point in the history
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy