Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
edsilv committed Oct 27, 2016
1 parent cf44930 commit 3f1940c
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 77 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto",
"version": "1.0.0",
"version": "2.0.0",
"homepage": "https://github.com/edsilv/manifesto",
"authors": [
"edsilv <[email protected]>"
Expand Down
11 changes: 11 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
#v2.0.0

##Breaking Changes

- Removed `Manifesto.getRenderings()`. Use `ManifestoResource.getRenderings()` instead.
- Removed `Manifesto.getService()`. Use `Manifesto.Utils.getService()` instead.
- Removed `Manifesto.getTreeNode()`. Use `new Manifeso.TreeNode()` instead.
- Removed `Manifesto.isImageProfile()`. Use `Manifesto.Utils.isImageProfile()` instead.
- Removed `Manifesto.isLevel0ImageProfile()`. Use `Manifesto.Utils.isLevel0ImageProfile()` instead.
- Removed `Manifesto.isLevel1ImageProfile()`. Use `Manifesto.Utils.isLevel1ImageProfile()` instead.
- Removed `Manifesto.isLevel2ImageProfile()`. Use `Manifesto.Utils.isLevel2ImageProfile()` instead.
- Removed `Manifesto.loadExternalResources()`. Use `Manifesto.Utils.loadExternalResources()` instead.

#v1.0.0

Expand Down
14 changes: 0 additions & 14 deletions dist/client/manifesto.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -2386,20 +2386,6 @@ global.manifesto = global.Manifesto = module.exports = {
create: function (manifest, options) {
return Manifesto.Deserialiser.parse(manifest, options);
},
// todo: create hasServiceDescriptor
// based on @profile and @type (or lack of) can the resource describe associated services?
// loadExternalResources: function(resources: Manifesto.IExternalResource[],
// tokenStorageStrategy: string,
// clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>,
// restricted: (resource: Manifesto.IExternalResource) => Promise<void>,
// login: (resource: Manifesto.IExternalResource) => Promise<void>,
// getAccessToken: (resource: Manifesto.IExternalResource, rejectOnError: boolean) => Promise<Manifesto.IAccessToken>,
// storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken, tokenStorageStrategy: string) => Promise<void>,
// getStoredAccessToken: (resource: Manifesto.IExternalResource, tokenStorageStrategy: string) => Promise<Manifesto.IAccessToken>,
// handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
// options?: Manifesto.IManifestoOptions): Promise<Manifesto.IExternalResource[]>{
// return Manifesto.Utils.loadExternalResources(resources, tokenStorageStrategy, clickThrough, restricted, login, getAccessToken, storeAccessToken, getStoredAccessToken, handleResourceResponse, options);
// },
loadManifest: function (uri) {
return Manifesto.Utils.loadResource(uri);
}
Expand Down
14 changes: 0 additions & 14 deletions dist/client/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -2322,20 +2322,6 @@ global.manifesto = global.Manifesto = module.exports = {
create: function (manifest, options) {
return Manifesto.Deserialiser.parse(manifest, options);
},
// todo: create hasServiceDescriptor
// based on @profile and @type (or lack of) can the resource describe associated services?
// loadExternalResources: function(resources: Manifesto.IExternalResource[],
// tokenStorageStrategy: string,
// clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>,
// restricted: (resource: Manifesto.IExternalResource) => Promise<void>,
// login: (resource: Manifesto.IExternalResource) => Promise<void>,
// getAccessToken: (resource: Manifesto.IExternalResource, rejectOnError: boolean) => Promise<Manifesto.IAccessToken>,
// storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken, tokenStorageStrategy: string) => Promise<void>,
// getStoredAccessToken: (resource: Manifesto.IExternalResource, tokenStorageStrategy: string) => Promise<Manifesto.IAccessToken>,
// handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
// options?: Manifesto.IManifestoOptions): Promise<Manifesto.IExternalResource[]>{
// return Manifesto.Utils.loadExternalResources(resources, tokenStorageStrategy, clickThrough, restricted, login, getAccessToken, storeAccessToken, getStoredAccessToken, handleResourceResponse, options);
// },
loadManifest: function (uri) {
return Manifesto.Utils.loadResource(uri);
}
Expand Down
14 changes: 0 additions & 14 deletions dist/server/manifesto.js
Original file line number Diff line number Diff line change
Expand Up @@ -2385,20 +2385,6 @@ global.manifesto = global.Manifesto = module.exports = {
create: function (manifest, options) {
return Manifesto.Deserialiser.parse(manifest, options);
},
// todo: create hasServiceDescriptor
// based on @profile and @type (or lack of) can the resource describe associated services?
// loadExternalResources: function(resources: Manifesto.IExternalResource[],
// tokenStorageStrategy: string,
// clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>,
// restricted: (resource: Manifesto.IExternalResource) => Promise<void>,
// login: (resource: Manifesto.IExternalResource) => Promise<void>,
// getAccessToken: (resource: Manifesto.IExternalResource, rejectOnError: boolean) => Promise<Manifesto.IAccessToken>,
// storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken, tokenStorageStrategy: string) => Promise<void>,
// getStoredAccessToken: (resource: Manifesto.IExternalResource, tokenStorageStrategy: string) => Promise<Manifesto.IAccessToken>,
// handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
// options?: Manifesto.IManifestoOptions): Promise<Manifesto.IExternalResource[]>{
// return Manifesto.Utils.loadExternalResources(resources, tokenStorageStrategy, clickThrough, restricted, login, getAccessToken, storeAccessToken, getStoredAccessToken, handleResourceResponse, options);
// },
loadManifest: function (uri) {
return Manifesto.Utils.loadResource(uri);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "manifesto.js",
"version": "1.0.0",
"version": "2.0.0",
"description": "IIIF Presentation API utility library for client and server",
"main": "dist/server/manifesto.js",
"scripts": {
Expand Down
17 changes: 0 additions & 17 deletions src/IManifesto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,7 @@ interface IManifesto {
AnnotationMotivation: Manifesto.AnnotationMotivation;
create: (manifest: string, options?: Manifesto.IManifestoOptions) => Manifesto.IIIIFResource;
ElementType: Manifesto.ElementType;
//getRenderings(resource: any): Manifesto.IRendering[];
//getService: (resource: any, profile: Manifesto.ServiceProfile | string) => Manifesto.IService;
//getTreeNode(): Manifesto.ITreeNode;
IIIFResourceType: Manifesto.IIIFResourceType;
// isImageProfile(profile: Manifesto.ServiceProfile): boolean;
// isLevel0ImageProfile(profile: Manifesto.ServiceProfile): boolean;
// isLevel1ImageProfile(profile: Manifesto.ServiceProfile): boolean;
// isLevel2ImageProfile(profile: Manifesto.ServiceProfile): boolean;
// loadExternalResources: (resources: Manifesto.IExternalResource[],
// tokenStorageStrategy: string,
// clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>,
// restricted: (resource: Manifesto.IExternalResource) => Promise<void>,
// login: (resource: Manifesto.IExternalResource) => Promise<void>,
// getAccessToken: (resource: Manifesto.IExternalResource, rejectOnError: boolean) => Promise<Manifesto.IAccessToken>,
// storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken, tokenStorageStrategy: string) => Promise<void>,
// getStoredAccessToken: (resource: Manifesto.IExternalResource, tokenStorageStrategy: string) => Promise<Manifesto.IAccessToken>,
// handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
// options?: Manifesto.IManifestoOptions) => Promise<Manifesto.IExternalResource[]>;
loadManifest: (uri: string) => Promise<string>;
ManifestType: Manifesto.ManifestType;
MetadataItem: any;
Expand Down
16 changes: 0 additions & 16 deletions src/Manifesto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,6 @@
return Manifesto.Deserialiser.parse(manifest, options);
},

// todo: create hasServiceDescriptor
// based on @profile and @type (or lack of) can the resource describe associated services?

// loadExternalResources: function(resources: Manifesto.IExternalResource[],
// tokenStorageStrategy: string,
// clickThrough: (resource: Manifesto.IExternalResource) => Promise<void>,
// restricted: (resource: Manifesto.IExternalResource) => Promise<void>,
// login: (resource: Manifesto.IExternalResource) => Promise<void>,
// getAccessToken: (resource: Manifesto.IExternalResource, rejectOnError: boolean) => Promise<Manifesto.IAccessToken>,
// storeAccessToken: (resource: Manifesto.IExternalResource, token: Manifesto.IAccessToken, tokenStorageStrategy: string) => Promise<void>,
// getStoredAccessToken: (resource: Manifesto.IExternalResource, tokenStorageStrategy: string) => Promise<Manifesto.IAccessToken>,
// handleResourceResponse: (resource: Manifesto.IExternalResource) => Promise<any>,
// options?: Manifesto.IManifestoOptions): Promise<Manifesto.IExternalResource[]>{
// return Manifesto.Utils.loadExternalResources(resources, tokenStorageStrategy, clickThrough, restricted, login, getAccessToken, storeAccessToken, getStoredAccessToken, handleResourceResponse, options);
// },

loadManifest: function (uri: string): Promise<any> {
return Manifesto.Utils.loadResource(uri);
}
Expand Down

0 comments on commit 3f1940c

Please sign in to comment.