Skip to content

Commit

Permalink
Node.js: sync with upstream source
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 committed Nov 9, 2024
1 parent 7d82e06 commit 3871024
Show file tree
Hide file tree
Showing 47 changed files with 229 additions and 58 deletions.
11 changes: 11 additions & 0 deletions lang/node-authenticate-pam/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"url": "https://github.com/RushPL/node-authenticate-pam.git"
},
"dependencies": {
- "nan": "^2.3.3"
+ "nan": "^2.22.0"
},
"files": [
"authenticate_pam.cc",
4 changes: 2 additions & 2 deletions lang/node-azure-event-hubs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ include $(TOPDIR)/rules.mk
PKG_NPM_SCOPE:=azure
PKG_NPM_NAME:=event-hubs
PKG_NAME:=node-$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)
PKG_VERSION:=5.12.1
PKG_VERSION:=5.12.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_SCOPE)-$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL_FILE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://registry.npmjs.org/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/-/
PKG_HASH:=a87a5e2eaea95d77e124aef63d8bc825eeca1c65297b72e59dbff6cad5441027
PKG_HASH:=1d3e7d60fb75084332c385c51ad6e94a8803a6e735e1f6e958375f13de37652d

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
11 changes: 11 additions & 0 deletions lang/node-bignum/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -23,7 +23,7 @@
},
"dependencies": {
"bindings": "^1.5.0",
- "nan": "^2.14.0",
+ "nan": "^2.22.0",
"safe-buffer": "^5.2.0"
},
"devDependencies": {
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Subject: [PATCH 3/6] Fix things up for Node 12, nan 2.14.x
"debug": "^3.1.0",
- "nan": "^2.10.0",
- "node-pre-gyp": "^0.11.0"
+ "nan": "^2.14.0",
+ "nan": "^2.22.0",
+ "node-pre-gyp": "^0.13.0"
},
"optionalDependencies": {},
Expand Down
4 changes: 2 additions & 2 deletions lang/node-classic-level/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=classic-level
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=1.4.1
PKG_VERSION:=2.0.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=60efaa69af0f6b703085ced30026f492c9ba237c9ad6d6a812801f0a4de056a3
PKG_HASH:=6a510485aeefba899694b9ad2d1fd789041185d65dbf10bced9eff02a00ee430

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
11 changes: 11 additions & 0 deletions lang/node-epoll/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -21,7 +21,7 @@
},
"dependencies": {
"bindings": "^1.5.0",
- "nan": "^2.17.0"
+ "nan": "^2.22.0"
},
"devDependencies": {
"jshint": "^2.13.6"
11 changes: 11 additions & 0 deletions lang/node-expat/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -20,7 +20,7 @@
},
"dependencies": {
"bindings": "^1.5.0",
- "nan": "^2.19.0"
+ "nan": "^2.22.0"
},
"devDependencies": {
"benchmark": "^2.1.0",
4 changes: 2 additions & 2 deletions lang/node-ffmpeg-for-homebridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=ffmpeg-for-homebridge
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=2.1.3
PKG_VERSION:=2.1.7
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=aedee8a520ac7de79b485e12a310ffffc3659107f0399e3194c6532402414b8f
PKG_HASH:=edf52d9ff9c2ae67ae201ebb035dc629f01089aa554e51a59849879df3d37169

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=none
Expand Down
2 changes: 1 addition & 1 deletion lang/node-fuse-bindings/patches/001-update_depends.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
- "node-gyp": "^6.0.1",
- "node-gyp-build": "^4.2.0",
- "prebuild-install": "^5.3.3",
+ "nan": "^2.17.0",
+ "nan": "^2.22.0",
+ "node-gyp": "^9.3.1",
+ "node-gyp-build": "^4.6.0",
+ "prebuild-install": "^7.1.1",
Expand Down
4 changes: 2 additions & 2 deletions lang/node-hid/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=node-hid
PKG_NAME:=$(PKG_NPM_NAME)
PKG_VERSION:=3.1.0
PKG_VERSION:=3.1.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=85c284e8c1658ec29c278e6b5a73cad25909b658393c7615c9ae378e0bec3050
PKG_HASH:=620f94e6a4f05b20c896afe7f269ae496828ba1a938597c31a569ac564e2e478

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT OR X11
Expand Down
4 changes: 2 additions & 2 deletions lang/node-homebridge-cmd4/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=homebridge-cmd4
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=8.0.1
PKG_VERSION:=8.0.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=63f6d88f323e298e9e1bbac1a41c08f49749c4a847c66ab84a3b4357ccf4978e
PKG_HASH:=58dd19721411924a2fd9efdd1779aa7d381b797491642e5a0814e149e3653054

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions lang/node-homebridge-ewelink/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=homebridge-ewelink
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=12.3.1
PKG_VERSION:=12.3.3
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=17530555f6bbd58a05caeba02fbf1d101c29226cfcd61cff919c6938187c3a96
PKG_HASH:=301b448e588da907c3e10afbbeb692c0ddd1f19af6d30757697597212af087fa

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions lang/node-homebridge-hue/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=homebridge-hue
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=0.13.70
PKG_VERSION:=0.14.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=49c744e6000cdfa32473ecfb9d03a3d1102cec4b8243b5f6bd986127698e9ddb
PKG_HASH:=2bb87e8cd0e2fdcee3ee81a0edc89878a830231a16a320973586ff264fe5fdb6

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=Apache-2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
--- a/package.json
+++ b/package.json
@@ -48,7 +48,7 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
- "nan": "^2.19.0",
+ "nan": "^2.22.0",
"prebuild-install": "^7.1.2"
},
"devDependencies": {
@@ -65,4 +65,4 @@
"ps-list": "=7.2.0",
"typescript": "^5.4.5"
}
-}
\ No newline at end of file
+}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--- a/binding.gyp
+++ b/binding.gyp
@@ -95,8 +95,8 @@
'libraries': [
'-lutil'
],
- 'cflags': ['-Wall', '-std=c++17'],
- 'cflags_cc': [ '-std=c++17' ],
+ 'cflags': ['-Wall', '-std=c++20'],
+ 'cflags_cc': [ '-std=c++20' ],
'conditions': [
# http://www.gnu.org/software/gnulib/manual/html_node/forkpty.html
# One some systems (at least including Cygwin, Interix,
4 changes: 2 additions & 2 deletions lang/node-homebridge/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=homebridge
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=1.8.4
PKG_VERSION:=1.8.5
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=9c97a4307f9e9ee787e54b293c31dbe758c50f028b9bbee48637d6d098d8cd00
PKG_HASH:=86633cab9fee97a4ed99b9495b6db398f3f2879b0effbb818237b9568f679691

PKG_BUILD_DEPENDS:=node/host
PKG_BUILD_FLAGS:=no-mips16
Expand Down
11 changes: 11 additions & 0 deletions lang/node-i2c-bus/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -24,7 +24,7 @@
},
"dependencies": {
"bindings": "^1.5.0",
- "nan": "^2.17.0"
+ "nan": "^2.22.0"
},
"devDependencies": {
"async": "^3.2.4",
4 changes: 2 additions & 2 deletions lang/node-mdns/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=mdns
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=2.7.2
PKG_RELEASE:=4
PKG_RELEASE:=5

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
Expand All @@ -30,7 +30,7 @@ define Package/node-mdns
CATEGORY:=Languages
TITLE:=multicast DNS service discovery
URL:=https://www.npmjs.org/package/mdns
DEPENDS:=+node +mdnsd
DEPENDS:=+node +mdnsd @NODEJS_23:BROKEN
endef

define Package/node-mdns/description
Expand Down
11 changes: 11 additions & 0 deletions lang/node-mdns/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -79,7 +79,7 @@
],
"dependencies": {
"bindings": "~1.2.1",
- "nan": "^2.14.0"
+ "nan": "^2.22.0"
},
"gypfile": true
}
4 changes: 2 additions & 2 deletions lang/node-mocha/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=mocha
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=10.7.3
PKG_VERSION:=10.8.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=6ae75159720a11d18883f87f1400e7e3e923a6b5437f5c75131790378d3e9338
PKG_HASH:=59884ed98aaeaae5bb7ea50be87917e66a77237554106a5d467ce884e2e7293b

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
4 changes: 2 additions & 2 deletions lang/node-npm-check-updates/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=npm-check-updates
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=17.1.3
PKG_VERSION:=17.1.9
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=c1406d101dd6de4635beb0bd8fe1d45175d1cd79bea8f3e1c3c6272c9fc696be
PKG_HASH:=686987e8066d2173e36f21cc374efd60b012fd9f981d31cb5f2dc19e29d3353b

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>, Patrik Laszlo <alabard@gmail.com>
PKG_LICENSE:=Apache-2.0
Expand Down
4 changes: 2 additions & 2 deletions lang/node-npm-run-all2/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=npm-run-all2
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=6.2.3
PKG_VERSION:=7.0.1
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=bfbbaf364f6c8c5ee72054aba211a07977a0cee15effcef38b8c97c4a4301976
PKG_HASH:=1adfef0b8d8a50483f3199a9b57de1d1019db1c867511b6b975e4a83e42e1754

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
2 changes: 1 addition & 1 deletion lang/node-openzwave-shared/patches/001-nan_update.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"types": "./types/openzwave-shared.d.ts",
"dependencies": {
- "nan": ">=2.14.0"
+ "nan": "^2.17.0"
+ "nan": "^2.22.0"
},
"scripts": {
"test": "node test.js",
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
],
"cflags_cc": [
- "-std=c++11"
+ "-std=c++17"
+ "-std=c++20"
],
"cflags_cc!": [
"<!@(find <(OZW_INC) -name OZWException.h -exec echo -n \"-fno-exceptions\" \\;)"
10 changes: 10 additions & 0 deletions lang/node-pi-spi/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- a/package.json
+++ b/package.json
@@ -20,6 +20,6 @@
"url": "https://github.com/natevw/pi-spi/issues"
},
"dependencies": {
- "nan": "^2.14.0"
+ "nan": "^2.22.0"
}
}
4 changes: 2 additions & 2 deletions lang/node-pty/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=node-pty
PKG_NAME:=$(PKG_NPM_NAME)
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
Expand Down Expand Up @@ -53,7 +53,7 @@ define Build/Compile
$(MAKE_FLAGS) \
npm_config_nodedir=$(STAGING_DIR)/usr/ \
$(if $(CONFIG_NODEJS_NPM_KEEP_CACHE), npm_config_cache=$(NPM_CACHE_DIR)/npm-cache-$(PKG_NPM_NAME),npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM)) \
npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --omit=dev --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU)
npm install --prefer-offline --no-audit --global-style --install-strategy=shallow --no-save --no-package-lock --build-from-source --target_arch=$(NODEJS_CPU)
rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM)
rm -f $(PKG_BUILD_DIR)/node_modules/.package-lock.json
find $(PKG_BUILD_DIR)/node_modules -type d -empty -print0 | xargs -0 -r rmdir || true
Expand Down
11 changes: 11 additions & 0 deletions lang/node-raw-socket/patches/999-node_v23_support.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
"example": "example"
},
"dependencies": {
- "nan": "2.19.*"
+ "nan": "^2.22.0"
},
"contributors": [
{
4 changes: 2 additions & 2 deletions lang/node-red-contrib-homekit-bridged/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ include $(TOPDIR)/rules.mk

PKG_NPM_NAME:=node-red-contrib-homekit-bridged
PKG_NAME:=$(PKG_NPM_NAME)
PKG_VERSION:=1.7.1
PKG_VERSION:=1.7.2
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=https://mirrors.tencent.com/npm/$(PKG_NPM_NAME)/-/ \
https://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_HASH:=a99d01df20fe1a379d091fd962c5c7932c99d9e077301e781c405b1f9d4536e7
PKG_HASH:=d18c0aeab98b8fb452228216eef216914763c20c85bd27d3a4da93a41377457b

PKG_MAINTAINER:=Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE:=MIT
Expand Down
Loading

0 comments on commit 3871024

Please sign in to comment.