BREAKING CHANGE: The following top-level functions exported by the 'artalk' npm package have been deprecated: `Artalk.update`, `Artalk.reload`, and `Artalk.destroy`. These methods now require invocation on an instance created by either `Artalk.init` or `new Artalk`. Please utilize instance-level methods instead, such as `artalkInstance.update`. For more information, refer to [the documentation](https://artalk.js.org/guide/frontend/import-framework.html). The update was implemented to enable the concurrent creation of multiple instances, adapting to situations where Vue components are simultaneously referenced across various pages. Initially, only a singular instance was permitted to mitigate memory leak concerns. However, this proved limiting for scenarios involving the caching of multiple component instances through 'keep-alive.' To better suit intricate SPA application needs, the choice was made to permit the creation of multiple independent instances. It's crucial to remember to manually invoke the `artalk.destroy` method when releasing components to avoid memory leaks (Issue #660).
664 B
664 B
后端升级
更新变动
突破性变动,例如更新需要修改原有配置等,请注意查看版本更新日志中的提示:CHANGELOG.md
命令行一键升级
执行 ./artalk upgrade
此操作会从自动从 GitHub Release 下载并升级程序,执行前需关闭 Artalk。
:::tip
执行 ./artalk upgrade -f 携带参数 -f 执行强制更新。
:::
Docker 升级
可参考:Docker · 升级
普通方式
前往 GitHub Release 手动下载最新构建
替换掉旧版本文件即可。