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

@ember-data/rfc395-data

Package Overview
Dependencies
Maintainers
10
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ember-data/rfc395-data

JSON data for Ember.js RFC #395

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
148K
increased by19.62%
Maintainers
10
Weekly downloads
 
Created
Source

ember-data-rfc395-data

JSON data for RFC #395

Contents

Globals to New Modules

BeforeAfter
DS.AbortErrorimport { AbortError } from '@ember-data/adapter/error';
DS.Adapterimport Adapter from '@ember-data/adapter';
DS.AdapterErrorimport AdapterError from '@ember-data/adapter/error';
DS.attrimport { attr } from '@ember-data/model';
DS.belongsToimport { belongsTo } from '@ember-data/model';
DS.BuildURLMixinimport { BuildURLMixin } from '@ember-data/adapter';
DS.ConflictErrorimport { ConflictError } from '@ember-data/adapter/error';
DS.EmbeddedRecordsMixinimport { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';
DS.errorsArrayToHashimport { errorsArrayToHash } from '@ember-data/adapter/error';
DS.errorsHashToArrayimport { errorsHashToArray } from '@ember-data/adapter/error';
DS.ForbiddenErrorimport { ForbiddenError } from '@ember-data/adapter/error';
DS.hasManyimport { hasMany } from '@ember-data/model';
DS.InvalidErrorimport { InvalidError } from '@ember-data/adapter/error';
DS.JSONAPIAdapterimport JSONAPIAdapter from '@ember-data/adapter/json-api';
DS.JSONAPISerializerimport JSONAPISerializer from '@ember-data/serializer/json-api';
DS.JSONSerializerimport JSONSerializer from '@ember-data/serializer/json';
DS.Modelimport Model from '@ember-data/model';
DS.normalizeModelNameimport { normalizeModelName } from '@ember-data/store';
DS.NotFoundErrorimport { NotFoundError } from '@ember-data/adapter/error';
DS.RecordDataimport RecordData from '@ember-data/record-data';
DS.RESTAdapterimport RESTAdapter from '@ember-data/adapter/rest';
DS.RESTSerializerimport RESTSerializer from '@ember-data/serializer/rest';
DS.Serializerimport Serializer from '@ember-data/serializer';
DS.ServerErrorimport { ServerError } from '@ember-data/adapter/error';
DS.Storeimport Store from '@ember-data/store';
DS.TimeoutErrorimport { TimeoutError } from '@ember-data/adapter/error';
DS.Transformimport Transform from '@ember-data/serializer/transform';
DS.UnauthorizedErrorimport { UnauthorizedError } from '@ember-data/adapter/error';

New Modules to Globals

@ember-data/adapter
ModuleGlobal
import Adapter from '@ember-data/adapter';DS.Adapter
import { BuildURLMixin } from '@ember-data/adapter';DS.BuildURLMixin
import { AbortError } from '@ember-data/adapter/error';DS.AbortError
import AdapterError from '@ember-data/adapter/error';DS.AdapterError
import { ConflictError } from '@ember-data/adapter/error';DS.ConflictError
import { ForbiddenError } from '@ember-data/adapter/error';DS.ForbiddenError
import { InvalidError } from '@ember-data/adapter/error';DS.InvalidError
import { NotFoundError } from '@ember-data/adapter/error';DS.NotFoundError
import { ServerError } from '@ember-data/adapter/error';DS.ServerError
import { TimeoutError } from '@ember-data/adapter/error';DS.TimeoutError
import { UnauthorizedError } from '@ember-data/adapter/error';DS.UnauthorizedError
import { errorsArrayToHash } from '@ember-data/adapter/error';DS.errorsArrayToHash
import { errorsHashToArray } from '@ember-data/adapter/error';DS.errorsHashToArray
import JSONAPIAdapter from '@ember-data/adapter/json-api';DS.JSONAPIAdapter
import RESTAdapter from '@ember-data/adapter/rest';DS.RESTAdapter
@ember-data/model
ModuleGlobal
import { attr } from '@ember-data/model';DS.attr
import Model from '@ember-data/model';DS.Model
import { belongsTo } from '@ember-data/model';DS.belongsTo
import { hasMany } from '@ember-data/model';DS.hasMany
@ember-data/record-data
ModuleGlobal
import RecordData from '@ember-data/record-data';DS.RecordData
@ember-data/serializer
ModuleGlobal
import Serializer from '@ember-data/serializer';DS.Serializer
import JSONSerializer from '@ember-data/serializer/json';DS.JSONSerializer
import JSONAPISerializer from '@ember-data/serializer/json-api';DS.JSONAPISerializer
import { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';DS.EmbeddedRecordsMixin
import RESTSerializer from '@ember-data/serializer/rest';DS.RESTSerializer
import Transform from '@ember-data/serializer/transform';DS.Transform
@ember-data/store
ModuleGlobal
import Store from '@ember-data/store';DS.Store
import { normalizeModelName } from '@ember-data/store';DS.normalizeModelName

Scripts

The tables above can be generated using the scripts in the scripts folder, e.g.:

node scripts/generate-markdown-table.js

Contributing

mappings.json format

The mappings.json file contains an array of entries with the following format:

interface Mapping {
  /**
    The globals based API that this module and export replace.
   */
  global: string;

  /**
    The module to import.
   */
  module: string;

  /**
    The export name from the module.
   */
  export: string;

  /**
    The recommended `localName` to use for a given module/export. Only present
    when a name other than the value for `export` should be used.

    This is useful for things like ember-data-codemod or eslint-plugin-ember
    so that they can provide a nice suggested import for a given global path usage.
   */
  localName?: string;

  /**
    A replacement module/export which should be used instead.
  */
  replacement?: {
    module: string;
    export: string;
  }
}

FAQs

Package last updated on 31 Jul 2019

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