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: eslint-community/eslint-plugin-n
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v17.5.0
Choose a base ref
...
head repository: eslint-community/eslint-plugin-n
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v17.5.1
Choose a head ref
  • 2 commits
  • 5 files changed
  • 2 contributors

Commits on May 7, 2024

  1. fix: Add supported version to Buffer constructor (#266)

    scagood authored May 7, 2024
    Copy the full SHA
    030f51b View commit details
  2. chore(master): release 17.5.1 (#267)

    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored May 7, 2024
    Copy the full SHA
    c3e5a19 View commit details
2 changes: 1 addition & 1 deletion .github/release-please/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{".":"17.5.0"}
{".":"17.5.1"}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [17.5.1](https://github.com/eslint-community/eslint-plugin-n/compare/v17.5.0...v17.5.1) (2024-05-07)


### 🩹 Fixes

* Add supported version to Buffer constructor ([#266](https://github.com/eslint-community/eslint-plugin-n/issues/266)) ([030f51b](https://github.com/eslint-community/eslint-plugin-n/commit/030f51bacd21918ef6d5b2bba9ec77cd701c3eba))

## [17.5.0](https://github.com/eslint-community/eslint-plugin-n/compare/v17.4.0...v17.5.0) (2024-05-07)


2 changes: 1 addition & 1 deletion lib/unsupported-features/node-builtins-modules/buffer.js
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ const buffer = {
},
Buffer: {
[READ]: { supported: ["0.1.90"] },
[CONSTRUCT]: { deprecated: ["6.0.0"] },
[CONSTRUCT]: { supported: ["0.1.90"], deprecated: ["6.0.0"] },
alloc: { [READ]: { supported: ["5.10.0", "4.5.0"] } },
allocUnsafe: { [READ]: { supported: ["5.10.0", "4.5.0"] } },
allocUnsafeSlow: { [READ]: { supported: ["5.12.0", "4.5.0"] } },
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-n",
"version": "17.5.0",
"version": "17.5.1",
"description": "Additional ESLint's rules for Node.js",
"engines": {
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
4 changes: 4 additions & 0 deletions tests/lib/rules/no-unsupported-features/node-builtins.js
Original file line number Diff line number Diff line change
@@ -218,6 +218,10 @@ new RuleTester({ languageOptions: { sourceType: "module" } }).run(
},
],
},
{
code: "new Buffer(123)",
options: [{ version: "6.0.0" }],
},
],
invalid: [
{