import { Schema, arrayOf } from 'normalizr';

export const packages = new Schema('packages', { idAttribute: 'name' });
export const arrayOfPackages = arrayOf(packages);

import { schema } from 'normalizr';

export const packages = new schema.Entity('packages', {}, { idAttribute: 'name' });
export const arrayOfPackages = new schema.Array(packages);

Change schemas to new format.
Change schemas to new format.

