Open jcbhmr opened 1 year ago
Don't worry about existing consumers! That's what major versions are for, remember! 😉
{
"dependencies": {
// Will NOT auto-install v2. Stays on v1.0.1!
"node-navigator": "^1.0.1"
// 👆
// This is the default when 'npm install node-navigator' is run:
// The "^" caret range is vN.x.x
}
}
This is kinda a big change! 😬 I think it's a good one though! Using this as a polyfill first, but also exposing
/navigator_.js
(name collision withNavigator.js
) and/Navigator.js
as individual exports is a good idea!For example:
There is a debate to be had over which should be the default export. I think the
/ClassName.js
has a very nice "fit" for individual plucking exports, whereas the default export goes where?/global.js
? 🤔@skdhg Thoughts? I'd love to hear your ideas! ❤️