Skip to content

Commit

Permalink
feat: Move manifest file to cozy-client models
Browse files Browse the repository at this point in the history
BREAKING CHANGE: If you were importing manifest from
'cozy-client/dist/manifest` you have to either import it from the root
 or from the models.
  • Loading branch information
doubleface authored and doubleface committed Feb 10, 2023
1 parent 13c3183 commit edf9f2a
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/cozy-client/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export { getQueryFromState } from './store'
export { default as Registry } from './registry'
export { default as RealTimeQueries } from './RealTimeQueries'

import * as manifest from './manifest'
import * as manifest from './models/manifest'
export { manifest }

export { default as CozyProvider } from './Provider'
Expand Down
2 changes: 1 addition & 1 deletion packages/cozy-client/src/index.node.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export { cancelable } from './utils'
export { getQueryFromState } from './store'
export { default as Registry } from './registry'

import * as manifest from './manifest'
import * as manifest from './models/manifest'
export { manifest }

export * from './mock'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ export function isPartnershipValid(partnership) {
/**
* Normalize app manifest, retro-compatibility for old manifests
*
* @param {import('./types').Manifest} manifest - app manifest to normalize
* @returns {import('./types').Manifest}
* @param {import('../types').Manifest} manifest - app manifest to normalize
* @returns {import('../types').Manifest}
*/
export function sanitize(manifest) {
const sanitized = { ...manifest }
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/cozy-client/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export { default as fetchPolicies } from "./policies";
export * from "./mock";
export * from "./hooks";
export { BulkEditError } from "./errors";
import * as manifest from "./manifest";
import * as manifest from "./models/manifest";
import * as models from "./models";
export { manifest, models };
export { QueryDefinition, Q, Mutations, MutationTypes, getDoctypeFromOperation } from "./queries/dsl";
Expand Down
2 changes: 1 addition & 1 deletion packages/cozy-client/types/index.node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export * from "./mock";
export * from "./cli";
export { BulkEditError } from "./errors";
export { default as fetchPolicies } from "./policies";
import * as manifest from "./manifest";
import * as manifest from "./models/manifest";
import * as models from "./models";
export { manifest, models };
export { QueryDefinition, Mutations, MutationTypes, getDoctypeFromOperation, Q } from "./queries/dsl";
Expand Down
File renamed without changes.

0 comments on commit edf9f2a

Please sign in to comment.