85
85
86
86
```bash
87
87
grep \
88
- -E \
88
+ -nHE \
89
89
'N(ODE_)?API_EXPERIMENTAL' \
90
90
src/js_native_api{_types,}.h \
91
91
src/node_api{_types,}.h
@@ -95,13 +95,13 @@ and update the define version guards with the release version:
95
95
96
96
```diff
97
97
- #ifdef NAPI_EXPERIMENTAL
98
- + #if NAPI_VERSION >= 10
98
+ + #if NAPI_VERSION >= 11
99
99
100
100
NAPI_EXTERN napi_status NAPI_CDECL
101
101
node_api_function (napi_env env);
102
102
103
103
- #endif // NAPI_EXPERIMENTAL
104
- + #endif // NAPI_VERSION >= 10
104
+ + #endif // NAPI_VERSION >= 11
105
105
```
106
106
107
107
Remove any feature flags of the form `NODE_API_EXPERIMENTAL_HAS_<FEATURE>`.
@@ -121,11 +121,11 @@ Also, update the Node-API version value of the `napi_get_version` test in
121
121
#### Step 2. Update runtime version guards
122
122
123
123
If this release includes runtime behavior version guards, the relevant commits
124
- should already include ` NAPI_VERSION_EXPERIMENTAL ` guard for the change. Check
125
- for these guards with:
124
+ should already include the ` NAPI_VERSION_EXPERIMENTAL ` guard for the change.
125
+ Check for these guards with:
126
126
127
127
``` bash
128
- grep NAPI_VERSION_EXPERIMENTAL src/js_native_api_v8* src/node_api.cc
128
+ grep -nH NAPI_VERSION_EXPERIMENTAL src/js_native_api_v8* src/node_api.cc
129
129
```
130
130
131
131
and substitute this guard version with the release version ` x ` .
@@ -138,7 +138,7 @@ Check for these definitions with:
138
138
139
139
``` bash
140
140
grep \
141
- -E \
141
+ -nHE \
142
142
' N(ODE_)?API_EXPERIMENTAL' \
143
143
test/node-api/* /{* .{h,c},binding.gyp} \
144
144
test/js-native-api/* /{* .{h,c},binding.gyp}
@@ -186,7 +186,7 @@ For all runtime version guards updated in Step 2, check for these definitions
186
186
with:
187
187
188
188
``` bash
189
- grep NAPI_EXPERIMENTAL doc/api/n-api.md
189
+ grep -nH NAPI_EXPERIMENTAL doc/api/n-api.md
190
190
```
191
191
192
192
In ` doc/api/n-api.md ` , update the ` experimental ` change history item to be the
0 commit comments