npm package diff

Package: @forge/migrations

Versions: 0.7.0-experimental-c8ed390 - 1.0.0-next.0

Modified:package/out/migration/errors.js

Index: package/out/migration/errors.js
===================================================================
--- package/out/migration/errors.js
+++ package/out/migration/errors.js
@@ -1,13 +1,15 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
 exports.APIError = void 0;
 class APIError extends Error {
-    constructor(message) {
+    status;
+    constructor(message, status) {
         super(message);
+        this.status = status;
     }
     static forStatus(status, message) {
-        return new APIError(message);
+        return new APIError(message, status);
     }
     static forUnexpected(message) {
         return new APIError(message);
     }

Modified:package/out/migration/index.js

Index: package/out/migration/index.js
===================================================================
--- package/out/migration/index.js
+++ package/out/migration/index.js
@@ -1,7 +1,7 @@
 "use strict";
 Object.defineProperty(exports, "__esModule", { value: true });
-exports.migration = exports.getMigrationInstance = void 0;
+exports.MigrationAPIError = exports.migration = exports.getMigrationInstance = void 0;
 const migration_1 = require("./migration");
 const query_api_1 = require("./query-api");
 const getMigrationInstance = (adapter) => {
     return {
@@ -23,4 +23,6 @@
     getAppDataPayload: (s3Key) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getAppDataPayload(s3Key),
     getMappings: (transferId, namespace) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getMappings(transferId, namespace),
     getContainers: (transferId, containerType) => (0, exports.getMigrationInstance)(new migration_1.Migration()).getContainers(transferId, containerType)
 };
+var errors_1 = require("./errors");
+Object.defineProperty(exports, "MigrationAPIError", { enumerable: true, get: function () { return errors_1.APIError; } });

Modified:package/package.json

Index: package/package.json
===================================================================
--- package/package.json
+++ package/package.json
@@ -1,7 +1,7 @@
 {
   "name": "@forge/migrations",
-  "version": "0.7.0-experimental-c8ed390",
+  "version": "1.0.0-next.0",
   "description": "App migration methods for Forge app",
   "main": "out/index.js",
   "scripts": {
     "build": "yarn run clean && yarn run compile",
@@ -17,7 +17,7 @@
     "jest-when": "^3.6.0",
     "node-fetch": "2.7.0"
   },
   "dependencies": {
-    "@forge/api": "3.9.1-experimental-c8ed390"
+    "@forge/api": "3.9.1"
   }
 }
\ No newline at end of file

Modified:package/out/migration/errors.d.ts.map

Index: package/out/migration/errors.d.ts.map
===================================================================
--- package/out/migration/errors.d.ts.map
+++ package/out/migration/errors.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/migration/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAS,SAAQ,KAAK;IACjC,OAAO;WAIO,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ;WAIpD,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ;CAGvD"}
\ No newline at end of file
+{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/migration/errors.ts"],"names":[],"mappings":"AAAA,qBAAa,QAAS,SAAQ,KAAK;IACjC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,OAAO;WAKO,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ;WAIpD,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ;CAGvD"}
\ No newline at end of file

Modified:package/out/migration/index.d.ts.map

Index: package/out/migration/index.d.ts.map
===================================================================
--- package/out/migration/index.d.ts.map
+++ package/out/migration/index.d.ts.map
@@ -1,1 +1,1 @@
-{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,oBAAoB,YAAa,SAAS;iCAEtB,MAAM,aAAa,MAAM,QAAQ,MAAM,MAAM,CAAC;mCAE5C,MAAM,aAAa,MAAM;yBACnC,MAAM,cAAc,MAAM;iCAClB,MAAM;+BACR,MAAM;8BACP,MAAM,aAAa,MAAM;gCAEvB,MAAM,iBAAiB,aAAa;CAGnE,CAAC;AAEF,eAAO,MAAM,SAAS;iCACS,MAAM,aAAa,MAAM,QAAQ,MAAM,MAAM,CAAC;mCAE5C,MAAM,aAAa,MAAM;yBAEnC,MAAM,cAAc,MAAM;iCAElB,MAAM;+BACR,MAAM;8BACP,MAAM,aAAa,MAAM;gCAEvB,MAAM,iBAAiB,aAAa;CAEjE,CAAC"}
\ No newline at end of file
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,oBAAoB,YAAa,SAAS;iCAEtB,MAAM,aAAa,MAAM,QAAQ,MAAM,MAAM,CAAC;mCAE5C,MAAM,aAAa,MAAM;yBACnC,MAAM,cAAc,MAAM;iCAClB,MAAM;+BACR,MAAM;8BACP,MAAM,aAAa,MAAM;gCAEvB,MAAM,iBAAiB,aAAa;CAGnE,CAAC;AAEF,eAAO,MAAM,SAAS;iCACS,MAAM,aAAa,MAAM,QAAQ,MAAM,MAAM,CAAC;mCAE5C,MAAM,aAAa,MAAM;yBAEnC,MAAM,cAAc,MAAM;iCAElB,MAAM;+BACR,MAAM;8BACP,MAAM,aAAa,MAAM;gCAEvB,MAAM,iBAAiB,aAAa;CAEjE,CAAC;AAEF,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,UAAU,CAAC"}
\ No newline at end of file

Modified:package/CHANGELOG.md

Index: package/CHANGELOG.md
===================================================================
--- package/CHANGELOG.md
+++ package/CHANGELOG.md
@@ -1,12 +1,15 @@
 # @forge/migrations
 
-## 0.7.0-experimental-c8ed390
+## 1.0.0-next.0
 
+### Major Changes
+
+- 48774b3: Making Forge App Migrations generally available
+
 ### Patch Changes
 
-- Updated dependencies [942bbd5]
-  - @forge/[email protected]
+- d2676d6: Add migration api error class
 
 ## 0.7.0
 
 ### Minor Changes

Modified:package/out/migration/errors.d.ts

Index: package/out/migration/errors.d.ts
===================================================================
--- package/out/migration/errors.d.ts
+++ package/out/migration/errors.d.ts
@@ -1,5 +1,6 @@
 export declare class APIError extends Error {
+    status: number | undefined;
     private constructor();
     static forStatus(status: number, message: string): APIError;
     static forUnexpected(message: string): APIError;
 }

Modified:package/out/migration/index.d.ts

Index: package/out/migration/index.d.ts
===================================================================
--- package/out/migration/index.d.ts
+++ package/out/migration/index.d.ts
@@ -18,5 +18,6 @@
     getAppDataPayload: (s3Key: string) => Promise<import("@forge/api").APIResponse>;
     getMappings: (transferId: string, namespace: string) => DefaultQueryBuilder;
     getContainers: (transferId: string, containerType: ContainerType) => DefaultQueryBuilder;
 };
+export { APIError as MigrationAPIError } from './errors';
 //# sourceMappingURL=index.d.ts.map
\ No newline at end of file