Skip to content

Commit 828d68d

Browse files
committed
Bumping fc-ts library version, doing migration, bumping version
1 parent 78e9f1a commit 828d68d

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

package-lock.json

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fastcomments-vue",
3-
"version": "1.0.11",
3+
"version": "1.0.12",
44
"author": "winrid",
55
"license": "MIT",
66
"repository": "fastcomments/fastcomments-vue",
@@ -35,7 +35,7 @@
3535
"@vue/cli-plugin-typescript": "^4.3.1",
3636
"@vue/cli-service": "^4.3.1",
3737
"cross-env": "^7.0.2",
38-
"fastcomments-typescript": "git+https://github.com/FastComments/fastcomments-typescript.git#main",
38+
"fastcomments-typescript": "^1.5.0",
3939
"minimist": "^1.2.5",
4040
"rollup": "^2.7.3",
4141
"rollup-plugin-babel": "^4.4.0",

src/fastcomments-vue.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import Vue from 'vue';
3-
import {FastCommentsConfig} from "../../fastcomments-typescript/src";
3+
import {FastCommentsCommentWidgetConfig} from "../../fastcomments-typescript/src";
44
55
async function insertScript(src: string, id: string, parentElement: Element) {
66
return new Promise((resolve, reject) => {
@@ -17,7 +17,7 @@
1717
1818
// noinspection TypeScriptExplicitMemberType
1919
let lastWidgetInstance: { update: (arg0: any) => void; } | null = null;
20-
function reset(config : FastCommentsConfig) {
20+
function reset(config : FastCommentsCommentWidgetConfig) {
2121
if (lastWidgetInstance) {
2222
lastWidgetInstance.update(config);
2323
}
@@ -28,7 +28,7 @@
2828
name: 'FastcommentsVue', // vue component name
2929
props: {
3030
config: {
31-
type: Object as () => FastCommentsConfig
31+
type: Object as () => FastCommentsCommentWidgetConfig
3232
}
3333
},
3434
data() {
@@ -45,7 +45,7 @@
4545
lastWidgetInstance = window.FastCommentsUI(document.getElementById(this.widgetId), this.config);
4646
},
4747
watch: {
48-
config(newConfig : FastCommentsConfig) {
48+
config(newConfig : FastCommentsCommentWidgetConfig) {
4949
reset(newConfig);
5050
},
5151
},

0 commit comments

Comments
 (0)