
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
ember-new-version-detection
Advanced tools
Our snazzy add-on for checking if a new version of your app is available
This is a highly opinionated add-on. It's incredibly specific to our needs at Precision Nutrition. We welcome pull requests to make this more flexible.
We needed a way to test if a new version of our Ember apps were being reported by our API. Our API does this by reporting back the SHA of the currently available release for the specific app in question.
Our Ember apps report back:
X-App-Name
: the name of the app in questionX-App-Version
: the version the app is (this comes from ember-cli-app-version)And our API reports back:
X-Current-Version
: the current version as understood by the API (we use
ember-cli-deploy to manage this)ember install ember-new-version-detection
In your config/environment.js
file you'll need to add a block like this:
const ENV = {
// snip
'ember-new-version-detection': {
appName: 'pickles' /* whatever your app is called by the API */,
},
// snip
};
// app/adapters/application.js
import VersionDetectingJsonApiAdapter from 'ember-new-version-detection/adapter/json-api';
export default class MyAdapter extends VersionDetectingJsonApiAdapter {
// snip
}
Not a problem. Example:
this.newVersionDetector.ignoreThisUpgrade();
The implementation of the adapter is pretty straightforward. Just copy and paste from our code.
FAQs
Our snazzy add-on for checking if a new version of your app is available
The npm package ember-new-version-detection receives a total of 14 weekly downloads. As such, ember-new-version-detection popularity was classified as not popular.
We found that ember-new-version-detection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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 Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.