Skip to content

Commit

Permalink
Merge branch 'release/0.6.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Feb 21, 2020
2 parents fd1b640 + 522841d commit 63eb224
Show file tree
Hide file tree
Showing 9 changed files with 144 additions and 91 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)

## [Unreleased]

## [0.6.6] - 2020-02-21
### Changed
- Update dependencies
- Improve Blob URL management in DataViewer
- Use type-only import

## [0.6.5] - 2020-02-13
### Changed
- Update dependencies
Expand Down Expand Up @@ -249,7 +255,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
### Added
- First release

[Unreleased]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.5...HEAD
[Unreleased]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.6...HEAD
[0.6.6]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.5...v0.6.6
[0.6.5]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.4...v0.6.5
[0.6.4]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.3...v0.6.4
[0.6.3]: https://github.com/nwtgck/piping-ui-web/compare/v0.6.2...v0.6.3
Expand Down
148 changes: 87 additions & 61 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "piping-ui",
"version": "0.6.5",
"version": "0.6.6",
"private": true,
"author": "Ryo Ota <nwtgck@nwtgck.org> (https://github.com/nwtgck)",
"scripts": {
Expand Down Expand Up @@ -29,9 +29,9 @@
"file-type": "^14.1.2",
"filepond": "^4.11.0",
"jszip": "^3.2.2",
"jwk-thumbprint": "^0.1.2",
"jwk-thumbprint": "^0.1.3",
"linkifyjs": "^2.1.8",
"openpgp": "^4.9.0",
"openpgp": "^4.9.1",
"register-service-worker": "^1.6.2",
"sanitize-html": "^1.21.1",
"smoothscroll-polyfill": "^0.4.4",
Expand All @@ -40,28 +40,27 @@
"vue": "^2.6.11",
"vue-async-computed": "^3.8.2",
"vue-async-computed-decorator": "0.0.4",
"vue-class-component": "^7.2.2",
"vue-class-component": "^7.2.3",
"vue-filepond": "^6.0.2",
"vue-property-decorator": "^8.4.0",
"vuetify": "^2.2.12"
"vuetify": "^2.2.14"
},
"devDependencies": {
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
"@mdi/js": "^4.9.95",
"@types/chai": "^4.2.9",
"@types/clipboard": "^2.0.1",
"@types/file-saver": "^2.0.1",
"@types/jszip": "^3.1.7",
"@types/mocha": "^7.0.1",
"@types/openpgp": "^4.4.8",
"@types/react": "^16.9.19",
"@types/react": "^16.9.21",
"@types/react-dom": "^16.9.5",
"@types/sanitize-html": "^1.20.2",
"@types/smoothscroll-polyfill": "^0.3.1",
"@types/url-join": "^4.0.0",
"@types/workbox-sw": "^4.3.0",
"@typescript-eslint/eslint-plugin": "^2.19.2",
"@typescript-eslint/parser": "^2.19.2",
"@typescript-eslint/eslint-plugin": "^2.20.0",
"@typescript-eslint/parser": "^2.20.0",
"@vue/cli-plugin-babel": "~4.2.2",
"@vue/cli-plugin-eslint": "~4.2.2",
"@vue/cli-plugin-pwa": "~4.2.2",
Expand All @@ -75,13 +74,13 @@
"copyfiles": "^2.2.0",
"cross-var": "^1.1.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.1.2",
"eslint-plugin-vue": "^6.2.1",
"license-checker": "^25.0.1",
"material-design-icons-iconfont": "^5.0.1",
"react": "^16.12.0",
"sass": "^1.25.0",
"sass-loader": "^8.0.2",
"typescript": "~3.7.5",
"typescript": "~3.8.2",
"vue-cli-plugin-vuetify": "^2.0.5",
"vue-template-compiler": "^2.6.11",
"vuetify-loader": "^1.4.3",
Expand Down
21 changes: 21 additions & 0 deletions src/blob-url-manager.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Blob URL manager for preventing memory leak
*/
export class BlobUrlManager {
private blobUrl: string | undefined = undefined;

set(blob: Blob) {
this.clearIfNeed();
this.blobUrl = URL.createObjectURL(blob);
}

clearIfNeed() {
if (this.blobUrl !== undefined) {
URL.revokeObjectURL(this.blobUrl);
}
}

get url(): string | undefined {
return this.blobUrl;
}
}
2 changes: 1 addition & 1 deletion src/components/DataDownloader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import {mdiAlert, mdiChevronDown} from "@mdi/js";
import {globalStore} from "@/vue-global";
import {strings} from "@/strings";
import * as pipingUiUtils from "@/piping-ui-utils";
import {Protection, VerificationStep} from "@/datatypes";
import type {Protection, VerificationStep} from "@/datatypes";
import VerificationCode from "@/components/VerificationCode.vue";
Expand Down
Loading

0 comments on commit 63eb224

Please sign in to comment.