From a963b5e9f3f7b28751a13afbcab495d4f781969e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 10 Dec 2024 14:06:31 -0500 Subject: [PATCH] tools: update gyp-next to 0.19.1 PR-URL: https://github.com/nodejs/node/pull/56111 Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell --- tools/gyp/CHANGELOG.md | 7 +++++++ tools/gyp/pylib/gyp/__init__.py | 2 +- tools/gyp/pyproject.toml | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/gyp/CHANGELOG.md b/tools/gyp/CHANGELOG.md index 2bec1383e698f9..22257ab93d8929 100644 --- a/tools/gyp/CHANGELOG.md +++ b/tools/gyp/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.19.1](https://github.com/nodejs/gyp-next/compare/v0.19.0...v0.19.1) (2024-12-09) + + +### Bug Fixes + +* fixup for break in EscapeForCString ([#274](https://github.com/nodejs/gyp-next/issues/274)) ([610f661](https://github.com/nodejs/gyp-next/commit/610f661da877a358c8b3cbc106b528fb1d0b8095)) + ## [0.19.0](https://github.com/nodejs/gyp-next/compare/v0.18.3...v0.19.0) (2024-12-03) diff --git a/tools/gyp/pylib/gyp/__init__.py b/tools/gyp/pylib/gyp/__init__.py index 5b16e0b9a02f5b..8933d0c4f707c9 100755 --- a/tools/gyp/pylib/gyp/__init__.py +++ b/tools/gyp/pylib/gyp/__init__.py @@ -29,7 +29,7 @@ def EscapeForCString(string: bytes | str) -> str: string = string.encode(encoding='utf8') backslash_or_double_quote = {ord('\\'), ord('"')} - result = [] + result = '' for char in string: if char in backslash_or_double_quote or not 32 <= char < 127: result += '\\%03o' % char diff --git a/tools/gyp/pyproject.toml b/tools/gyp/pyproject.toml index 7fbd609554bde2..4b0c88c8a22c43 100644 --- a/tools/gyp/pyproject.toml +++ b/tools/gyp/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "gyp-next" -version = "0.19.0" +version = "0.19.1" authors = [ { name="Node.js contributors", email="ryzokuken@disroot.org" }, ]