![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@wekanteam/meteor-globals
Advanced tools
Allows simple usage of meteor globals inside npm packages
As the name suggests, it's only possible to get the globals. It's not possible to get the es6 exports of custom atmosphere packages.
npm install meteor-globals
Use ensureDependencies
to ensure, that all your dependencies are installed. Do it, right after your package was loaded and make sure that you have specified the name
option, that the user knows were the dependencies are coming from.
After that, you can use getGlobal
to get the globals from these packages.
import { ensureDependencies, getGlobal } from 'meteor-globals'
ensureDependencies([
'mongo',
'cultofcoders:redis-oplog',
'teamgrid:optimistic-increment@1.0.0', // depending on specific versions are also possible (semver)
], {
name: 'my-awesome-meteor-npm-package',
restart: true,
})
const Mongo = getGlobal('mongo', 'Mongo') // from core package
const RedisOplog = getGlobal('cultofcoders:redis-oplog', 'RedisOplog') // from atmosphere package
ensureDependencies(packageNames[], options = { restart: true, name: 'A recently installed npm package'})
Installes the specified atmosphere packages and forces a restart if the restart
option is true.
It's highly recommended to specify a name from where the dependencies were installed.
getGlobal(packageName, globalName) => Any
Gets the value of a meteor global. If globalName
is omitted, all exports of the specified package will be returned. getGlobal
returns null if a Package isn't present
checkMeteor(opts = { fileCheck: false, globalCheck: true }) => Boolean
Checks if executed inside of a meteor project.
ensureDependency(packageName) => Boolean
Installes a single atmosphere package. Use ensureDependencies
for convenience.
Licensed under MIT license. Copyright (c) 2017 Max Nowack
Contributions are welcome. Please open issues and/or file Pull Requests.
FAQs
Allows getting meteor globals in npm packages
The npm package @wekanteam/meteor-globals receives a total of 64 weekly downloads. As such, @wekanteam/meteor-globals popularity was classified as not popular.
We found that @wekanteam/meteor-globals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.