rclnodejs 0.32.4 → 0.32.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -45,7 +45,7 @@ npm i rclnodejs@x.y.z
45
45
 
46
46
  | RCLNODEJS Version | Compatible ROS 2 LTS |
47
47
  | :------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------: |
48
- | latest version (currently [v0.32.4](https://github.com/RobotWebTools/rclnodejs/tree/0.32.4)) | [Humble](https://github.com/RobotWebTools/rclnodejs/tree/humble-hawksbill)<br>[Jazzy](https://github.com/RobotWebTools/rclnodejs/tree/jazzy) |
48
+ | latest version (currently [v0.32.5](https://github.com/RobotWebTools/rclnodejs/tree/0.32.5)) | [Humble](https://github.com/RobotWebTools/rclnodejs/tree/humble-hawksbill)<br>[Jazzy](https://github.com/RobotWebTools/rclnodejs/tree/jazzy) |
49
49
 
50
50
  ## Documentation
51
51
 
package/binding.gyp CHANGED
@@ -12,6 +12,7 @@
12
12
  'runtime%': 'node',
13
13
  'ros_lib_dir': "<!(node -p \"require('./scripts/config.js').getROSLibPath()\")",
14
14
  'ros_include_root': "<!(node -p \"require('./scripts/config.js').getROSIncludeRootPath()\")",
15
+ 'node_major_version': '<!(node -p \"process.versions.node.split(\'.\')[0]\")',
15
16
  },
16
17
  'targets': [
17
18
  {
@@ -62,8 +63,21 @@
62
63
  'defines': [
63
64
  'OS_LINUX'
64
65
  ],
65
- 'cflags_cc': [
66
- '-std=c++20'
66
+ 'conditions': [
67
+ [
68
+ 'node_major_version >= 23', {
69
+ 'cflags_cc': [
70
+ '-std=c++20'
71
+ ]
72
+ }
73
+ ],
74
+ [
75
+ 'node_major_version < 23', {
76
+ 'cflags_cc': [
77
+ '-std=c++17'
78
+ ]
79
+ }
80
+ ]
67
81
  ]
68
82
  }
69
83
  ],
@@ -72,8 +86,21 @@
72
86
  'defines': [
73
87
  'OS_WINDOWS'
74
88
  ],
75
- 'cflags_cc': [
76
- '-std=c++20'
89
+ 'conditions': [
90
+ [
91
+ 'node_major_version >= 23', {
92
+ 'cflags_cc': [
93
+ '-std=c++20'
94
+ ]
95
+ }
96
+ ],
97
+ [
98
+ 'node_major_version < 23', {
99
+ 'cflags_cc': [
100
+ '-std=c++17'
101
+ ]
102
+ }
103
+ ]
77
104
  ],
78
105
  'include_dirs': [
79
106
  './src/third_party/dlfcn-win32/',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rclnodejs",
3
- "version": "0.32.4",
3
+ "version": "0.32.5",
4
4
  "description": "ROS2.0 JavaScript client with Node.js",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -45,7 +45,7 @@ npm i rclnodejs@x.y.z
45
45
 
46
46
  | RCLNODEJS Version | Compatible ROS 2 LTS |
47
47
  | :------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------: |
48
- | latest version (currently [v0.32.4](https://github.com/RobotWebTools/rclnodejs/tree/0.32.4)) | [Humble](https://github.com/RobotWebTools/rclnodejs/tree/humble-hawksbill)<br>[Jazzy](https://github.com/RobotWebTools/rclnodejs/tree/jazzy) |
48
+ | latest version (currently [v0.32.5](https://github.com/RobotWebTools/rclnodejs/tree/0.32.5)) | [Humble](https://github.com/RobotWebTools/rclnodejs/tree/humble-hawksbill)<br>[Jazzy](https://github.com/RobotWebTools/rclnodejs/tree/jazzy) |
49
49
 
50
50
  ## Documentation
51
51