Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-compatibility-helpers

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-compatibility-helpers

The default blueprint for ember-cli addons.

  • 1.0.0-beta.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
138K
increased by7.63%
Maintainers
1
Weekly downloads
 
Created

What is ember-compatibility-helpers?

The ember-compatibility-helpers package provides utilities to help manage compatibility with different versions of Ember.js. It allows developers to write code that can adapt to different versions of Ember, making it easier to maintain and upgrade applications.

What are ember-compatibility-helpers's main functionalities?

Version Checks

This feature allows you to check the current version of Ember and conditionally execute code based on the version. The `gte` function checks if the current Ember version is greater than or equal to the specified version.

import { gte } from 'ember-compatibility-helpers';

if (gte('3.8.0')) {
  // Code for Ember 3.8.0 and above
} else {
  // Code for versions below Ember 3.8.0
}

Feature Flags

This feature allows you to check if a specific feature flag is enabled in the current Ember environment. This is useful for enabling or disabling features based on the environment or configuration.

import { isFeatureEnabled } from 'ember-compatibility-helpers';

if (isFeatureEnabled('some-feature')) {
  // Code for when the feature is enabled
} else {
  // Code for when the feature is disabled
}

Deprecation Warnings

This feature allows you to issue deprecation warnings in your code. The `deprecate` function helps you inform users of your addon or application about deprecated methods or features, providing a clear path for upgrades.

import { deprecate } from 'ember-compatibility-helpers';

deprecate('This method is deprecated, use newMethod instead', false, {
  id: 'my-addon.old-method',
  until: '4.0.0',
  url: 'http://example.com/deprecations/my-addon.old-method'
});

Other packages similar to ember-compatibility-helpers

Keywords

FAQs

Package last updated on 06 Mar 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc