@rebilly/framepay-vue 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ ## [3.0.1](https://github.com/Rebilly/rebilly/compare/framepay-vue-v3.0.0...framepay-vue-v3.0.1) (2023-03-20)
@@ -160,9 +160,12 @@ const Q = /* @__PURE__ */ L(K, [["render", X]]), o = {
160
160
  created() {
161
161
  this.mountElement(`#${this.mountId}`);
162
162
  },
163
+ // in vue 2 beforeDestroy is emitted but not in vue 3
163
164
  beforeDestroy() {
164
165
  this.destroyElement();
165
166
  },
167
+ // in vue 3 beforeDestroy hook is replaced with beforeUnmount,
168
+ // we should keep both of them for compatibility purpose
166
169
  beforeUnmount() {
167
170
  this.destroyElement();
168
171
  }
@@ -209,9 +212,12 @@ const Q = /* @__PURE__ */ L(K, [["render", X]]), o = {
209
212
  created() {
210
213
  this.mountElement(`#${this.mountId}`);
211
214
  },
215
+ // in vue 2 beforeDestroy is emitted but not in vue 3
212
216
  beforeDestroy() {
213
217
  this.destroyElement();
214
218
  },
219
+ // in vue 3 beforeDestroy hook is replaced with beforeUnmount,
220
+ // we should keep both of them for compatibility purpose
215
221
  beforeUnmount() {
216
222
  this.destroyElement();
217
223
  }
@@ -259,9 +265,12 @@ const Q = /* @__PURE__ */ L(K, [["render", X]]), o = {
259
265
  created() {
260
266
  this.mountElement(`#${this.mountId}`);
261
267
  },
268
+ // in vue 2 beforeDestroy is emitted but not in vue 3
262
269
  beforeDestroy() {
263
270
  this.destroyElement();
264
271
  },
272
+ // in vue 3 beforeDestroy hook is replaced with beforeUnmount,
273
+ // we should keep both of them for compatibility purpose
265
274
  beforeUnmount() {
266
275
  this.destroyElement();
267
276
  }
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
2
  "name": "@rebilly/framepay-vue",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.1",
5
5
  "description": "Official Vue wrapper for Rebilly FramePay",
6
6
  "author": "Rebilly",
7
- "repository": "https://github.com/Rebilly/framepay-vue",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/Rebilly/rebilly"
10
+ },
8
11
  "license": "MIT",
9
12
  "main": "./dist/framepay-vue.umd.cjs",
10
13
  "module": "./dist/framepay-vue.js",
@@ -15,7 +18,8 @@
15
18
  }
16
19
  },
17
20
  "files": [
18
- "dist"
21
+ "dist",
22
+ "CHANGELOG.md"
19
23
  ],
20
24
  "keywords": [
21
25
  "framepay",
@@ -31,15 +35,13 @@
31
35
  "test": "npm run lint && npm run test:unit && npm run test:e2e",
32
36
  "test:unit": "vitest run --environment jsdom --root src/",
33
37
  "test:unit:watch": "vitest --environment jsdom --root src/",
34
- "test:e2e": "start-server-and-test 'vite dev --port 4173' :4173 'cypress run --e2e'",
35
- "test:e2e:gui": "start-server-and-test 'vite dev --port 4173' :4173 'cypress open --e2e'",
36
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
38
+ "test:e2e": "start-server-and-test 'vite dev --port 4173' localhost:4173 'cypress run --e2e'",
39
+ "test:e2e:gui": "start-server-and-test 'vite dev --port 4173' localhost:4173 'cypress open --e2e'",
40
+ "lint:no-fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"
37
41
  },
38
42
  "peerDependencies": {
39
43
  "vue": "^3.0.0"
40
44
  },
41
- "dependencies": {
42
- },
43
45
  "devDependencies": {
44
46
  "@testing-library/cypress": "^7.0.2",
45
47
  "@vitejs/plugin-vue": "^4.0.0",