Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit da10866

Browse files
committed
Add support for Node 12
1 parent 0f86a0a commit da10866

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ jobs:
1717
- stage: platform-test
1818
node_js: "node"
1919
os: osx
20+
- stage: platform-test
21+
node_js: "11"
22+
os: linux
23+
- stage: platform-test
24+
node_js: "11"
25+
os: osx
2026
- stage: platform-test
2127
node_js: "10"
2228
os: linux

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v4.12.0
2+
3+
https://github.com/sass/node-sass/releases/tag/v4.12.0
4+
15
## v4.11.0
26

37
https://github.com/sass/node-sass/releases/tag/v4.11.0

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
NodeJS | Minimum node-sass version | Node Module
66
--------|--------------------------|------------
7+
Node 12 | 4.12+ | 72
78
Node 11 | 4.10+ | 67
89
Node 10 | 4.9+ | 64
910
Node 8 | 4.5.3+ | 57

appveyor.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
- nodejs_version: 11
7474
GYP_MSVS_VERSION: 2015
7575
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
76+
- nodejs_version: 12
77+
GYP_MSVS_VERSION: 2015
78+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
7679

7780
install:
7881
- ps: Install-Product node $env:nodejs_version $env:platform
@@ -166,7 +169,10 @@
166169
- nodejs_version: 11
167170
GYP_MSVS_VERSION: 2015
168171
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
169-
172+
- nodejs_version: 12
173+
GYP_MSVS_VERSION: 2015
174+
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
175+
170176
install:
171177
- ps: Install-Product node $env:nodejs_version $env:platform
172178
- node --version

lib/extensions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ function getHumanNodeVersion(abi) {
7777
case 59: return 'Node.js 9.x';
7878
case 64: return 'Node.js 10.x';
7979
case 67: return 'Node.js 11.x';
80+
case 72: return 'Node.js 12.x';
8081
default: return false;
8182
}
8283
}

src/create_string.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
char* create_string(Nan::MaybeLocal<v8::Value> maybevalue) {
77
v8::Local<v8::Value> value;
8-
8+
99
if (maybevalue.ToLocal(&value)) {
1010
if (value->IsNull() || !value->IsString()) {
1111
return 0;
@@ -14,7 +14,7 @@ char* create_string(Nan::MaybeLocal<v8::Value> maybevalue) {
1414
return 0;
1515
}
1616

17-
v8::String::Utf8Value string(value);
17+
Nan::Utf8String string(value);
1818
char *str = (char *)malloc(string.length() + 1);
1919
strcpy(str, *string);
2020
return str;

0 commit comments

Comments
 (0)