This is an automated email from the ASF dual-hosted git repository.
GitToTheHub pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new 4ef1687c chore(docs): pass new EventEmitter when creating iOS project
instance (#1678)
4ef1687c is described below
commit 4ef1687ca585d75b888108656f1e60753cdc508d
Author: エリス <[email protected]>
AuthorDate: Fri Aug 7 19:05:33 2026 +0900
chore(docs): pass new EventEmitter when creating iOS project instance
(#1678)
When a new EventEmitter is not passed into the project instance, it seems
to stack with the existing emitter and can experience duplicate printout.
---
CordovaLib/CordovaLib.docc/upgrading-8.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/CordovaLib/CordovaLib.docc/upgrading-8.md
b/CordovaLib/CordovaLib.docc/upgrading-8.md
index c628f7ff..e260da58 100644
--- a/CordovaLib/CordovaLib.docc/upgrading-8.md
+++ b/CordovaLib/CordovaLib.docc/upgrading-8.md
@@ -62,11 +62,14 @@ const xcodeProject = xcode.project(pbxprojPath);
```js
// New code
+const EventEmitter = require('node:events');
+const eventEmitter = new EventEmitter();
+
const projectRoot = context.opts.projectRoot;
const platformPath = path.join(projectRoot, 'platforms', 'ios');
const cordova_ios = require('cordova-ios');
-const iosProject = new cordova_ios('ios', platformPath);
+const iosProject = new cordova_ios('ios', platformPath, eventEmitter);
const xcodeProject = xcode.project(iosProject.locations.pbxproj);
```
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]