You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tim Branyen [@tbranyen](http://twitter.com/tbranyen), John Haley [@johnhaley81](http://twitter.com/johnhaley81), and Max Korp [@maxkorp](http://twitter.com/MaximilianoKorp) with help from [awesome contributors](https://github.com/nodegit/nodegit/contributors)!
26
+
Tim Branyen [@tbranyen](http://twitter.com/tbranyen),
27
+
John Haley [@johnhaley81](http://twitter.com/johnhaley81), and
28
+
Max Korp [@maxkorp](http://twitter.com/MaximilianoKorp) with help from tons of
This update is wholly and entirely a breaking one, and older versions won't be
208
241
maintained. For the purpose of migration, perhaps the biggest point to make
209
-
is that async methods can now use promises, rather than just taking callbacks. Additionally, lots of method and property names have changed.
242
+
is that async methods can now use promises, rather than just taking callbacks.
243
+
Additionally, lots of method and property names have changed.
210
244
211
245
## nw.js (Node-Webkit) ##
212
246
213
247
### Native compilation for nw.js ###
214
-
A common issue is with nodegit not functioning properly inside of
215
-
[nw.js](http://github.com/nwjs/nw.js) applications. Because nodegit
248
+
A common issue is with NodeGit not functioning properly inside of
249
+
[nw.js](http://github.com/nwjs/nw.js) applications. Because NodeGit
216
250
is a native module, it has to be rebuilt for node-webkit using
217
-
[nw-gyp](http://github.com/rogerwang/nw-gyp). By default, nodegit will look in the root package's package.json for an `engines` property, and within look for a `nw.js` property (or a `node-webkit` if the prior isn't found) that holds a specific version of nw.js. The value of this property is what will get passed as the `--target` argument to `nw-gyp configure`.
218
-
219
-
### Version incompatibiltiy ###
220
-
Prior to version 0.2.6, nodegit used [nan](http://github.com/rvagg/nan) v1.4.3. As of 0.2.6, nodegit uses nan v1.5.1 to provide support for io.js. Unfortunately, this breaks some nw.js compatability. With nw.js 0.12+, the name was changed to nw.js from node-webkit. The alpha currently still breaks with nodegit due to the nan update, but should be fixed in the final v0.12.0 release. Åpplications using previous versions of node webkit have 2 options:
221
-
1) Use an older version (v0.2.4 or earlier) of nodegit
222
-
2) Use [npm shrinkwrap](https://docs.npmjs.com/cli/shrinkwrap) to force nodegit to use nan v1.4.3. Since the binary always recompiles when being used with nw.js, you shouldnt have to do anything else to make sure it works. As of nodegit v0.2.6, the change to nan v1.4.3 doesn't cause any problems.
223
-
224
-
Currently, support for nw.js is limited, although we intend to support it better in the future.
251
+
[nw-gyp](http://github.com/rogerwang/nw-gyp). By default, NodeGit will look
252
+
in the root package's package.json for an `engines` property, and within look
253
+
for a `nw.js` property (or a `node-webkit` if the prior isn't found) that holds
254
+
a specific version of nw.js. The value of this property is what will get passed
255
+
as the `--target` argument to `nw-gyp configure`.
256
+
257
+
### Version incompatibility ###
258
+
Prior to version 0.2.6, NodeGit used [nan](http://github.com/rvagg/nan) v1.4.3.
259
+
As of 0.2.6, NodeGit uses nan v1.5.1 to provide support for io.js. Unfortunately,
260
+
this breaks some nw.js compatibility. With nw.js 0.12+, the name was changed to
261
+
nw.js from node-webkit. The alpha currently still breaks with NodeGit due to the
262
+
nan update, but should be fixed in the final v0.12.0 release. Åpplications using
263
+
previous versions of node webkit have 2 options:
264
+
1) Use an older version (v0.2.4 or earlier) of NodeGit
265
+
2) Use [npm shrinkwrap](https://docs.npmjs.com/cli/shrinkwrap) to force NodeGit to
266
+
use nan v1.4.3. Since the binary always recompiles when being used with nw.js, you
267
+
shouldn't have to do anything else to make sure it works. As of NodeGit v0.2.6,
268
+
the change to nan v1.4.3 doesn't cause any problems.
269
+
270
+
Currently, support for nw.js is limited, although we intend to support it better
0 commit comments