Skip to content

Releases: eggjs/security

v4.0.0

17 Jan 16:58
Compare
Choose a tag to compare

4.0.0 (2025-01-17)

⚠ BREAKING CHANGES

  • drop Node.js < 18.19.0 support

part of eggjs/egg#3644

eggjs/egg#5257

Summary by CodeRabbit

Based on the comprehensive changes, here are the updated release notes:

  • New Features

    • Migrated security plugin to TypeScript.
    • Enhanced type safety for security configurations.
    • Improved middleware and helper utilities.
  • Introduced new middleware for handling Strict-Transport-Security,
    X-Frame-Options, and X-XSS-Protection headers.

    • Added support for new security configurations and helper functions.
  • Breaking Changes

    • Renamed package from egg-security to @eggjs/security.
    • Dropped support for Node.js versions below 18.19.0.
    • Restructured module exports and configurations.
    • Removed several deprecated middleware and utility functions.
  • Security Improvements

    • Updated CSRF, XSS, and SSRF protection mechanisms.
    • Enhanced middleware for handling security headers.
    • Refined configuration options for various security features.
  • Performance

    • Modernized codebase with ES module syntax.
    • Improved type definitions and module structure.
  • Enhanced test suite with TypeScript support and better resource
    management.

Features


This release is also available on:

v3.7.0

13 Jan 12:18
Compare
Choose a tag to compare

3.7.0 (2025-01-13)

Features

  • csrf support check origin header with referer type (#69) (2c950d3)

This release is also available on:

v3.6.0

08 Jul 15:03
Compare
Choose a tag to compare

3.6.0 (2024-07-08)

Features


This release is also available on:

v3.5.0

03 Jul 13:00
Compare
Choose a tag to compare

3.5.0 (2024-07-03)

Features

  • add rotateWhenInvalid option for CSRF token (#98) (ae37c8f)

This release is also available on:

v3.4.0

01 Jul 15:25
Compare
Choose a tag to compare

3.4.0 (2024-07-01)

Features

  • support SSRF check on useHttpClientNext = true (#96) (1d6bfff)

This release is also available on:

v3.3.1

12 Jun 08:37
Compare
Choose a tag to compare

3.3.1 (2024-06-12)

Bug Fixes


This release is also available on:

v3.3.0

29 May 09:43
Compare
Choose a tag to compare

3.3.0 (2024-05-29)

Features


This release is also available on:

v3.2.0

04 Jan 09:49
Compare
Choose a tag to compare

3.2.0 (2024-01-04)

Features

  • CSRF cookies allow the use of signatures (#88) (da1b532)

This release is also available on:

v3.1.0

09 Aug 13:25
Compare
Choose a tag to compare

3.1.0 (2023-08-09)

Features

  • context 中的 isSafeDomain() 函数增加自定义白名单参数 (#86) (a178552)

This release is also available on:

v3.0.0

10 May 10:40
Compare
Choose a tag to compare

3.0.0 (2023-05-10)

⚠ BREAKING CHANGES

  • drop Node.js < 14 support

Features


This release is also available on: