import {GLOBAL_VERSION} from "./constants";
import events from "./events";

export function makeKey({
	name,
	version,
}, args){
	const pieces = [
		GLOBAL_VERSION,
		name,
		version || 0,
		...args,
	]
	for (let i = 0; i < pieces.length; i++){
		if (
			typeof pieces[i] !== 'string' &&
			typeof pieces[i] !== 'number'
		){
			const error = new Error(
				`Bad key component (${pieces[i]})`
			);
			events.emit('error', {name, error});
			return null;
		}
	}
	return pieces.join('_');
}

@@ -467,23 +467,29 @@
 urn 
-pieces.join('_'
+JSON.stringify(pieces
 );%0A%7D

Use JSON.stringify() instead of .join() to avoid key collision