From 4820fe2fbccbe2c397696a97fe6d8fd31fae1661 Mon Sep 17 00:00:00 2001 From: David Thornley Date: Fri, 21 Jun 2024 11:47:25 +0200 Subject: [PATCH 1/2] Changes for mac and node-20 --- binding.gyp | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/binding.gyp b/binding.gyp index 8280a81..cb5a8db 100644 --- a/binding.gyp +++ b/binding.gyp @@ -21,9 +21,9 @@ 'conditions': [ ['OS=="mac"', { 'xcode_settings': { - 'MACOSX_DEPLOYMENT_TARGET': '10.7', + 'MACOSX_DEPLOYMENT_TARGET': '10.15', 'GCC_VERSION': 'com.apple.compilers.llvm.clang.1_0', - 'CLANG_CXX_LANGUAGE_STANDARD': 'gnu++1y', # -std=gnu++1y + 'CLANG_CXX_LANGUAGE_STANDARD': 'c++17', # -std=gnu++1y 'CLANG_CXX_LIBRARY': 'libc++', } }], diff --git a/package.json b/package.json index 68a8afa..4aef4f8 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "An async libmagic binding for node.js for detecting content types by data inspection", "main": "./lib/index", "dependencies": { - "nan": "^2.13.2" + "nan": "^2.17.0" }, "scripts": { "install": "node-gyp rebuild", From 8aa9805cb78be5004d9a2fb29903776bc3293af0 Mon Sep 17 00:00:00 2001 From: David Thornley Date: Fri, 21 Jun 2024 11:48:30 +0200 Subject: [PATCH 2/2] Support node-22 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4aef4f8..af3a26d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "description": "An async libmagic binding for node.js for detecting content types by data inspection", "main": "./lib/index", "dependencies": { - "nan": "^2.17.0" + "nan": "^2.20.0" }, "scripts": { "install": "node-gyp rebuild",