From f3ce39ab7caf53988fb9dd1ddf9f785396165090 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Fri, 18 Oct 2024 14:07:18 +0200 Subject: [PATCH] Fixes after eventemitter3 migration (#698) * Missed EventEmitter2 in es6 transpiler * (README) EventEmitter2 -> 3 * (examples) EventEmitter2 -> 3 --- README.md | 2 +- es6-transpiler.js | 2 +- examples/continuousmap.html | 2 +- examples/depthcloud.html | 2 +- examples/interactivemarkers.html | 2 +- examples/kitti.html | 2 +- examples/map.html | 2 +- examples/markers.html | 2 +- examples/navsatfix.html | 2 +- examples/octree.html | 2 +- examples/pointcloud2.html | 2 +- examples/urdf.html | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a0b230ea..c5b9fb8e 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Alternatively, you can use the current release via the [JsDelivr](https://www.js ros3djs depends on: -[EventEmitter2](https://github.com/hij1nx/EventEmitter2). The current supported version is 6.4. The current supported version can be found on the JsDeliver CDN: ([full](https://cdn.jsdelivr.net/npm/eventemitter2@6.4/lib/eventemitter2.js)) | ([min](https://cdn.jsdelivr.net/npm/eventemitter2@6.4/lib/eventemitter2.min.js)) +[EventEmitter3](https://github.com/primus/eventemitter3). The current supported version is 5.0. The current supported version can be found on the JsDeliver CDN: ([full](https://cdn.jsdelivr.net/npm/eventemitter3@5.0/dist/eventemitter3.umd.js)) | ([min](https://cdn.jsdelivr.net/npm/eventemitter3@5.0/dist/eventemitter3.umd.js)) [three.js](https://github.com/mrdoob/three.js/). The current supported version is r89. The current supported version can be found on the Robot Web Tools CDN: ([full](https://cdn.jsdelivr.net/npm/three@0.89.0/build/three.js)) | ([min](https://cdn.jsdelivr.net/npm/three@0.89.0/build/three.min.js)) diff --git a/es6-transpiler.js b/es6-transpiler.js index 16b6ede9..50e74e75 100644 --- a/es6-transpiler.js +++ b/es6-transpiler.js @@ -258,7 +258,7 @@ const transpile = { ], // Track external dependencies for import injection externalDependencies: (filepath) => [ - /(.*)(THREE|EventEmitter2|ROSLIB|ColladaLoader|OBJLoader|MTLLoader|STLLoader).*/g, + /(.*)(THREE|EventEmitter3|ROSLIB|ColladaLoader|OBJLoader|MTLLoader|STLLoader).*/g, (match, $preStuffs, $dep) => { if (/^\s*(?:\*|\/\/)/.test($preStuffs)) { diff --git a/examples/continuousmap.html b/examples/continuousmap.html index bc81d8d5..c7cefbf9 100644 --- a/examples/continuousmap.html +++ b/examples/continuousmap.html @@ -4,7 +4,7 @@ - + diff --git a/examples/depthcloud.html b/examples/depthcloud.html index 7764c021..9229f071 100644 --- a/examples/depthcloud.html +++ b/examples/depthcloud.html @@ -4,7 +4,7 @@ - + diff --git a/examples/interactivemarkers.html b/examples/interactivemarkers.html index d3aa7983..5d1136a2 100644 --- a/examples/interactivemarkers.html +++ b/examples/interactivemarkers.html @@ -4,7 +4,7 @@ - + diff --git a/examples/kitti.html b/examples/kitti.html index 0ed42ab9..6aafbc5b 100644 --- a/examples/kitti.html +++ b/examples/kitti.html @@ -4,7 +4,7 @@ - + diff --git a/examples/map.html b/examples/map.html index 87a3cf8c..c2bbcf1b 100644 --- a/examples/map.html +++ b/examples/map.html @@ -4,7 +4,7 @@ - + diff --git a/examples/markers.html b/examples/markers.html index 6f63852e..6b0b1a9d 100644 --- a/examples/markers.html +++ b/examples/markers.html @@ -4,7 +4,7 @@ - + diff --git a/examples/navsatfix.html b/examples/navsatfix.html index 7ca885e1..8fa85078 100644 --- a/examples/navsatfix.html +++ b/examples/navsatfix.html @@ -4,7 +4,7 @@ - + diff --git a/examples/octree.html b/examples/octree.html index da931234..95b0cf7e 100644 --- a/examples/octree.html +++ b/examples/octree.html @@ -4,7 +4,7 @@ - + diff --git a/examples/pointcloud2.html b/examples/pointcloud2.html index ed0caa46..294c4618 100644 --- a/examples/pointcloud2.html +++ b/examples/pointcloud2.html @@ -4,7 +4,7 @@ - + diff --git a/examples/urdf.html b/examples/urdf.html index 18c3167f..be226865 100644 --- a/examples/urdf.html +++ b/examples/urdf.html @@ -6,7 +6,7 @@ - +