question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropped support for v0.12?

See original GitHub issue

The README.md makes it sound like node v0.12 is still supported but that support will be removed in the next version.

Using the following steps on macOS:

$ git clone git@github.com:ibmdb/node-ibm_db.git
$ cd node-ibm_db
$ npm install

Node v0.10.48 + npm v2.15.1: failed (expected) Node v0.12.18 + npm v2.15.11: failed (???) Node v4.8.3 + npm v2.15.11: success Node v6.10.3 + npm v3.10.10: success Node v7.10.0 + npm v4.2.0: success Node v8.0.0 + npm v5.0.0: success

It looks to me like Node v0.12 support has already been dropped. Is that correct?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rmgcommented, Jun 6, 2017

I’m sure that’s the problem; I just meant that I had already done what you asked.

I’m fine with this being an unfixable problem - I mostly wanted to verify so that I know which versions to worry about if/when submitting pull requests.

1reaction
bnoordhuiscommented, Jun 5, 2017

I get a compile error with v0.12.7 but I don’t think it’s node-ibm_db’s fault. It probably flew under the radar until a recent compiler update (for me: OS X, clang-802.0.42) because the code in v8.h is defective.

First, the error:

  CXX(target) Release/obj.target/odbc_bindings/src/odbc.o
In file included from ../src/odbc.cpp:19:
../../v0.12/deps/v8/include/v8.h:5768:54: error: 'CreateHandle' is a protected member of 'v8::HandleScope'
  return Handle<T>(reinterpret_cast<T*>(HandleScope::CreateHandle(

It can be fixed by patching v8.h in the v0.12.7 source tarball. Note that it affects all v0.12 releases, not just v0.12.7. Downgrading to an older version of node-ibm_db won’t help either.

diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h
index ef0bda6..148a1d4 100644
--- a/deps/v8/include/v8.h
+++ b/deps/v8/include/v8.h
@@ -836,6 +836,9 @@ class V8_EXPORT HandleScope {
   internal::Object** prev_next_;
   internal::Object** prev_limit_;
 
+  // Handle::New uses CreateHandle with an Isolate* parameter.
+  template<class F> friend class Handle;
+
   // Local::New uses CreateHandle with an Isolate* parameter.
   template<class F> friend class Local;
 

v0.12 is end-of-life so this is never going to be fixed upstream. The workaround would be to either patch the source by hand or use an older compiler.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Drop support for v0.10 and v0.12? · Issue #676 · nodejs/nan
So again I ask, is there a real reason to drop this support other than "it appears to be impossible to compile nan...
Read more >
Upgrade Terraform v0.12 to v0.13 (#13338) · Issues - GitLab
Since Terraform supports upgrading from one major release at a time, all terraform modules should be updated from v0.12.X to v0.13.
Read more >
Node.js agent release notes - New Relic Documentation
BREAKING: Updated the version of https-proxy-agent to v2.x - Dropped support for v0.10 and v0.12 of node.The version of https-proxy-agent used in the...
Read more >
deep-extend | Yarn - Package Manager
Updated "devDependencies" versions to fix vulnerability alerts; Dropped support of io.js and node.js v0.12.x and lower since new versions of ...
Read more >
How to upgrade to Terraform 0.12 - Opensource.com
0.12upgrade Rewrites pre-0.12 module source code for v0.12. Test the upgrade command to see what will be rewritten, then enter yes to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found