summaryrefslogtreecommitdiff
path: root/platform/node
Commit message (Collapse)AuthorAgeFilesLines
* [node] Build OS X on BitriseJohn Firebaugh2016-03-244-12/+66
|
* [node] Add test that explicitly doesn call map.release()Thiago Marcos P. Santos2016-02-241-0/+16
| | | | | Make sure mbgl.Map is not holding any references to the node's main loop and thus preventing the node from exit.
* Revert "[node] Destroy the RunLoop with the last Map object"Thiago Marcos P. Santos2016-02-244-18/+10
| | | | This reverts commit 3633fd7ebdb2f406f17cf05320f9480a73455e09.
* [node] Not all tests were calling `map.release()`Thiago Marcos P. Santos2016-02-201-3/+8
| | | | Which prevents the test runner to close.
* [node] Destroy the RunLoop with the last Map objectThiago Marcos P. Santos2016-02-204-10/+18
| | | | | | | | | | | The last map object to get destroyed will also destroy the RunLoop (which will also destroy the AsyncTask). This will clear any reference to the Node default main loop and let it close. Downside is that we need to make sure we are always calling `map.release()`.
* [node] Fix handling of response callback with no arguments; add testJohn Firebaugh2016-02-192-1/+30
|
* [node] add debug options to node bindingsAnsis Brammanis2016-02-082-0/+30
| | | | fix #3579
* node-v3.0.2node-v3.0.2Mike Morris2016-02-041-0/+6
|
* [node] patch memory leak in NodeMap::requestMike Morris2016-02-041-1/+1
| | | | | | | | Creating a v8::Function with Nan::GetFunction(Nan::New<v8::FunctionTemplate>) can leak, use Nan::New<v8::Function> instead. https://code.google.com/p/chromium/issues/detail?id=272579
* node-v3.0.1node-v3.0.1Mike Morris2016-01-261-0/+6
|
* [core] Use better types for modified / expires / etagJohn Firebaugh2016-01-211-3/+2
|
* node-v3.0.0node-v3.0.0Mike Morris2016-01-211-0/+6
|
* [node] Drop 0.10 from build; require v4+John Firebaugh2016-01-201-1/+1
|
* node-v2.2.2node-v2.2.2Mike Morris2016-01-191-0/+4
|
* [node] extract the error message from the Error objectKonstantin Käfer2016-01-141-2/+16
| | | | this avoids double "Error: Error: reason" messages
* [test] don't pass raw strings as error messagesKonstantin Käfer2016-01-141-1/+1
|
* [test] deliver error responses when the underlying request failedKonstantin Käfer2016-01-081-1/+7
|
* [node] bump version to v2.2.1node-v2.2.1bsudekum2016-01-071-0/+4
|
* Rewrote documentationMinh Nguyễn2016-01-052-1/+35
| | | | | | | | Rewrote some copy to provide more context and link to more GL-related repos, including GL JS. Put the various SDKs in a table so we can show the various CI bot status images. Integrated target list into the relevant documents. Rewrote large portions of iOS and OS X setup documentation to guide normal developers to more friendly places. Combined some Android documentation. Moved SDK-specific documentation into platform/. Added a temporary readme in ios/ that points to the one in platform/ios/.
* [core] Rationalize error handling for resource loadingJohn Firebaugh2015-12-231-2/+0
| | | | | | | | | * Standardize on std::exception_ptr as the error representation (fixes #2854). * Don't format textual strings at the error source; pass on the constituent data via observer method parameters instead. * Use the null object pattern to simplify observer notification code. * Further refactoring for ResourceLoading tests.
* Move platform scripts into platformsJohn Firebaugh2015-12-165-0/+216
|
* node-v2.2.0node-v2.2.0Mike Morris2015-12-161-0/+4
|
* [node] code review cleanupMike Morris2015-12-152-21/+21
|
* [test] Update test suiteJohn Firebaugh2015-12-092-3/+11
|
* [node] document EventEmitter interface [skip ci]Mike Morris2015-12-081-8/+52
|
* node-v2.1.0node-v2.1.0Mike Morris2015-12-081-0/+4
|
* [core] Abstract main loop inside RunLoop classThiago Marcos P. Santos2015-12-011-1/+1
|
* [core] Replace time_t with std::chrono::secondsBruno de Oliveira Abinader2015-11-271-2/+5
| | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response.
* [node] Fix build on GCC 4.9.2Thiago Marcos P. Santos2015-11-265-8/+4
|
* [core] Fix image type of Map::renderStillJohn Firebaugh2015-11-252-2/+2
| | | | | | | It's a premultiplied image. This implies that we were misusing encodePNG in most cases, as we were passing premultiplied pixels which were then interpreted as unmultiplied. I changed encodePNG to accept premultipled pixels, and unpremultiply in the implementations.
* [core] Rewrite image handlingJohn Firebaugh2015-11-252-14/+12
| | | | | | * Consolidate Image and StillImage * Typecheck unassociated vs premultiplied images * Rewrite default platform image decoding implementation
* node-v2.0.1node-v2.0.1Mike Morris2015-11-251-0/+4
|
* [core] For binary image data use uint8_t, not charJohn Firebaugh2015-11-231-2/+1
|
* [node] Allow GC in spite of reference loops through the request methodJohn Firebaugh2015-11-205-71/+35
| | | | | | | | | | | | | | The following produces a reference cycle: var map = new mbgl.Map({ request: function () { ... } }); map has a reference to the request function, which has a reference to its closure, which has a reference to map. Storing a the map options in an internal field, rather than a Persistent, allows V8 to collect the reference cycle when none of its members have other references.
* [node] Fix race condition in testsJohn Firebaugh2015-11-181-8/+0
| | | | The message callback races with the rest of this test. We already have tests for errors being emitted from mbgl, so just remove it.
* [node] Need to have a singleton RunLoop instanceJohn Firebaugh2015-11-164-11/+27
|
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-165-212/+49
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-162-3/+4
| | | | This should be abstracted by util::RunLoop
* [node] Fixes 'make xnode' to configure HOST_SLUG.gypiMike Morris2015-11-055-0/+5
| | | | | Adds node-gyp to dev-dependencies to support 'make xnode' on Node v0.10.x Ignores -Wnested-anon-types around v8.h includes.
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-11-041-7/+5
|
* [node] update platform/node/CHANGELOG.md [skip ci]Mike Morris2015-11-041-2/+2
|
* [node] make ratio optional, default to 1.0Mike Morris2015-11-044-20/+39
|
* [node] swap array order to [lng, lat] for render option centerMike Morris2015-11-043-6/+7
| | | | For consistency with GeoJSON and mapbox-gl-js
* [node] enable npm to build mapbox-gl-native package from sourceLucas Wojciechowski2015-11-043-5/+4
| | | | | | This reverts commit 311bf93abe9f815668e8e0a779c87c3eb5c1199d. more explicit require paths in tests
* Update version and changelognode-v2.0.0-pre.11bsudekum2015-11-021-0/+1
|
* [node] add pitch optionbsudekum2015-11-021-0/+6
|
* [core] Make DefaultFileSource react to all NetworkStatus changesKonstantin Käfer2015-11-021-6/+5
|
* Document node-mapbox-gl-native with JSDocTom MacWright2015-10-291-0/+75
|
* [node] Output debug logs when a render test times outJohn Firebaugh2015-10-283-1/+23
|
* [core] Make response data shared to avoid excessive copyingKonstantin Käfer2015-10-261-2/+2
|