From 7b603a27763adced4b461d6437162515884f16b9 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Mon, 4 Jan 2021 13:50:22 +1100 Subject: [PATCH] v1.11.0 (#582) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * v1.10.1 * Fix vue template dependencies versions (fixes #574) (#576) * resolve angular routing broken when app is built * Revert "resolve angular routing broken when app is built" This reverts commit e0aab7c27f0fac69efbe02d0870e2972cebcbfe7. * Update issue templates * v1.8.1 (#546) * resolve angular routing broken when app is built * Updated contributors * handle Set error on Update method * Remove incorrect build flag * v1.8.1-pre1 * added Get method * fixed return * implement gopath handling during cross compilation * update messages to output xgo version TODO: allow image override * use wailsapp/xgo:1.0.1 for cross-compiling * Support platform list in templates * Add warnings for windows builds * add fields Tags to ProjectOptions * add args tags to func BuildNative * add tags to func BuildDocker * delete escape tags * Update Contributors * feat: Vue3, Vue Router, Vuex, and Typescript Template * converted spaces to tabs in vue.config.js * single quotes and tabs Converted vue.config.js to using single quotes Converted example.spec.ts to tabs instead of spaces. * Added semicolons and mocha import * Update contributors * Make vue 3 template linux/mac only * Add tags to build * Add v2 artefacts * Update Vuetify in package.json (#537) * Update contributors * Replaced the old v-content tag with the new v-main (#536) * v1.8.1-pre4 * v1.8.1-pre5 * Update issue templates (#541) * Updated Contributors * Remove zero copy string conversion * v1.8.1-pre6 * Initial support for firebug (#543) * Initial support for firebug * Remove windows message * v1.8.1-pre7 * Update contributors * Allow use of custom HTML * Allow use of custom HTML (#545) * v1.8.1 Co-authored-by: Arthur Wiebe Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne * v1.10.1 (#572) * fix dependencies versions Co-authored-by: Arthur Wiebe Co-authored-by: Lea Anthony Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne * v1.11.0-rc1 * v1.11.0-pre1 * Bump ini from 1.3.5 to 1.3.8 in /runtime/js/runtime (#575) * resolve angular routing broken when app is built * Revert "resolve angular routing broken when app is built" This reverts commit e0aab7c27f0fac69efbe02d0870e2972cebcbfe7. * Update issue templates * v1.8.1 (#546) * resolve angular routing broken when app is built * Updated contributors * handle Set error on Update method * Remove incorrect build flag * v1.8.1-pre1 * added Get method * fixed return * implement gopath handling during cross compilation * update messages to output xgo version TODO: allow image override * use wailsapp/xgo:1.0.1 for cross-compiling * Support platform list in templates * Add warnings for windows builds * add fields Tags to ProjectOptions * add args tags to func BuildNative * add tags to func BuildDocker * delete escape tags * Update Contributors * feat: Vue3, Vue Router, Vuex, and Typescript Template * converted spaces to tabs in vue.config.js * single quotes and tabs Converted vue.config.js to using single quotes Converted example.spec.ts to tabs instead of spaces. * Added semicolons and mocha import * Update contributors * Make vue 3 template linux/mac only * Add tags to build * Add v2 artefacts * Update Vuetify in package.json (#537) * Update contributors * Replaced the old v-content tag with the new v-main (#536) * v1.8.1-pre4 * v1.8.1-pre5 * Update issue templates (#541) * Updated Contributors * Remove zero copy string conversion * v1.8.1-pre6 * Initial support for firebug (#543) * Initial support for firebug * Remove windows message * v1.8.1-pre7 * Update contributors * Allow use of custom HTML * Allow use of custom HTML (#545) * v1.8.1 Co-authored-by: Arthur Wiebe Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne * v1.10.1 (#572) * Bump ini from 1.3.5 to 1.3.8 in /runtime/js/runtime Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] Co-authored-by: Arthur Wiebe Co-authored-by: Lea Anthony Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump ini from 1.3.5 to 1.3.8 in /runtime/js (#573) * resolve angular routing broken when app is built * Revert "resolve angular routing broken when app is built" This reverts commit e0aab7c27f0fac69efbe02d0870e2972cebcbfe7. * Update issue templates * v1.8.1 (#546) * resolve angular routing broken when app is built * Updated contributors * handle Set error on Update method * Remove incorrect build flag * v1.8.1-pre1 * added Get method * fixed return * implement gopath handling during cross compilation * update messages to output xgo version TODO: allow image override * use wailsapp/xgo:1.0.1 for cross-compiling * Support platform list in templates * Add warnings for windows builds * add fields Tags to ProjectOptions * add args tags to func BuildNative * add tags to func BuildDocker * delete escape tags * Update Contributors * feat: Vue3, Vue Router, Vuex, and Typescript Template * converted spaces to tabs in vue.config.js * single quotes and tabs Converted vue.config.js to using single quotes Converted example.spec.ts to tabs instead of spaces. * Added semicolons and mocha import * Update contributors * Make vue 3 template linux/mac only * Add tags to build * Add v2 artefacts * Update Vuetify in package.json (#537) * Update contributors * Replaced the old v-content tag with the new v-main (#536) * v1.8.1-pre4 * v1.8.1-pre5 * Update issue templates (#541) * Updated Contributors * Remove zero copy string conversion * v1.8.1-pre6 * Initial support for firebug (#543) * Initial support for firebug * Remove windows message * v1.8.1-pre7 * Update contributors * Allow use of custom HTML * Allow use of custom HTML (#545) * v1.8.1 Co-authored-by: Arthur Wiebe Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne * v1.10.1 (#572) * Bump ini from 1.3.5 to 1.3.8 in /runtime/js Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. - [Release notes](https://github.com/isaacs/ini/releases) - [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8) Signed-off-by: dependabot[bot] Co-authored-by: Arthur Wiebe Co-authored-by: Lea Anthony Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove debug info * v1.11.0-pre2 * Limit v1 updates to v1 * v1.11.0-pre3 * Test fix for linux high CPU usage * v1.11.0 Co-authored-by: Elie Grenon (DrunkenPoney) Co-authored-by: Arthur Wiebe Co-authored-by: Ilgıt Yıldırım Co-authored-by: Travis McLane Co-authored-by: Altynbek Co-authored-by: Kyle Muchmore Co-authored-by: Balakrishna Prasad Ganne Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- CONTRIBUTORS.md | 3 +- cmd/semver.go | 8 +++ cmd/semver_test.go | 65 +++++++++++++++++++ .../vue3-full/frontend/package.json.template | 14 ++-- cmd/version.go | 2 +- config.go | 5 -- lib/renderer/webview/webview.h | 1 + runtime/js/package-lock.json | 6 +- runtime/js/runtime/package-lock.json | 8 +-- 9 files changed, 91 insertions(+), 21 deletions(-) create mode 100644 cmd/semver_test.go diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index bd18c8ab2..7dc5b1c89 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -39,4 +39,5 @@ Wails is what it is because of the time and effort given by these great people. * [Kyle](https://github.com/kmuchmore) * [Balakrishna Prasad Ganne](https://github.com/aayush420) * [Charaf Rezrazi](https://github.com/Rezrazi) - * [misitebao](https://github.com/misitebao) \ No newline at end of file + * [misitebao](https://github.com/misitebao) + * [Elie Grenon](https://github.com/DrunkenPoney) \ No newline at end of file diff --git a/cmd/semver.go b/cmd/semver.go index 277e3b5af..ab9405292 100644 --- a/cmd/semver.go +++ b/cmd/semver.go @@ -24,11 +24,19 @@ func NewSemanticVersion(version string) (*SemanticVersion, error) { // IsRelease returns true if it's a release version func (s *SemanticVersion) IsRelease() bool { + // Limit to v1 + if s.Version.Major() != 1 { + return false + } return len(s.Version.Prerelease()) == 0 && len(s.Version.Metadata()) == 0 } // IsPreRelease returns true if it's a prerelease version func (s *SemanticVersion) IsPreRelease() bool { + // Limit to v1 + if s.Version.Major() != 1 { + return false + } return len(s.Version.Prerelease()) > 0 } diff --git a/cmd/semver_test.go b/cmd/semver_test.go new file mode 100644 index 000000000..54261b6f7 --- /dev/null +++ b/cmd/semver_test.go @@ -0,0 +1,65 @@ +package cmd + +import ( + "testing" +) + +func TestSemanticVersion_IsPreRelease(t *testing.T) { + tests := []struct { + name string + version string + want bool + }{ + {"v1.6.7-pre0", "v1.6.7-pre0", true}, + {"v2.6.7+pre0", "v2.6.7+pre0", false}, + {"v2.6.7", "v2.6.7", false}, + {"v2.0.0+alpha.1", "v2.0.0+alpha.1", false}, + {"v2.0.0-alpha.1", "v2.0.0-alpha.1", false}, + {"v1.6.7", "v1.6.7", false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + semanticversion, err := NewSemanticVersion(tt.version) + if err != nil { + t.Errorf("Invalid semantic version: %s", semanticversion) + return + } + s := &SemanticVersion{ + Version: semanticversion.Version, + } + if got := s.IsPreRelease(); got != tt.want { + t.Errorf("IsPreRelease() = %v, want %v", got, tt.want) + } + }) + } +} + +func TestSemanticVersion_IsRelease(t *testing.T) { + tests := []struct { + name string + version string + want bool + }{ + {"v1.6.7", "v1.6.7", true}, + {"v2.6.7-pre0", "v2.6.7-pre0", false}, + {"v2.6.7", "v2.6.7", false}, + {"v2.6.7+release", "v2.6.7+release", false}, + {"v2.0.0-alpha.1", "v2.0.0-alpha.1", false}, + {"v1.6.7-pre0", "v1.6.7-pre0", false}, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + semanticversion, err := NewSemanticVersion(tt.version) + if err != nil { + t.Errorf("Invalid semantic version: %s", semanticversion) + return + } + s := &SemanticVersion{ + Version: semanticversion.Version, + } + if got := s.IsRelease(); got != tt.want { + t.Errorf("IsRelease() = %v, want %v", got, tt.want) + } + }) + } +} diff --git a/cmd/templates/vue3-full/frontend/package.json.template b/cmd/templates/vue3-full/frontend/package.json.template index cadd160a5..dc7eef41e 100644 --- a/cmd/templates/vue3-full/frontend/package.json.template +++ b/cmd/templates/vue3-full/frontend/package.json.template @@ -19,16 +19,16 @@ "@types/mocha": "^8.0.3", "@typescript-eslint/eslint-plugin": "^4.3.0", "@typescript-eslint/parser": "^4.3.0", - "@vue/cli-plugin-eslint": "~4.5.6", - "@vue/cli-plugin-router": "~4.5.6", - "@vue/cli-plugin-typescript": "~4.5.6", - "@vue/cli-plugin-unit-mocha": "~4.5.6", - "@vue/cli-service": "~4.5.6", + "@vue/cli-plugin-eslint": "~4.5.9", + "@vue/cli-plugin-router": "~4.5.9", + "@vue/cli-plugin-typescript": "~4.5.9", + "@vue/cli-plugin-unit-mocha": "~4.5.9", + "@vue/cli-service": "~4.5.9", "@vue/compiler-sfc": "^3.0.0", - "@vue/eslint-config-typescript": "^5.1.0", + "@vue/eslint-config-typescript": "^7.0.0", "@vue/test-utils": "^2.0.0-0", "chai": "^4.2.0", - "eslint": "^7.10.0", + "eslint": "<7.0.0", "eslint-plugin-vue": "^7.0.0", "node-sass": "^4.14.1", "sass-loader": "^10.0.2", diff --git a/cmd/version.go b/cmd/version.go index 0b77ffc72..0477f0086 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -1,4 +1,4 @@ package cmd // Version - Wails version -const Version = "v1.10.1" +const Version = "v1.11.0" \ No newline at end of file diff --git a/config.go b/config.go index d4d1f2dbb..dd0c457c3 100644 --- a/config.go +++ b/config.go @@ -1,7 +1,6 @@ package wails import ( - "fmt" "net/url" "strings" @@ -140,10 +139,6 @@ func newConfig(userConfig *AppConfig) (*AppConfig, error) { } } - println("****************************************************") - fmt.Printf("%+v\n", result) - println("****************************************************") - return result, nil } diff --git a/lib/renderer/webview/webview.h b/lib/renderer/webview/webview.h index 2502ff6cb..c08cb4794 100644 --- a/lib/renderer/webview/webview.h +++ b/lib/renderer/webview/webview.h @@ -364,6 +364,7 @@ struct webview_priv webkit_web_view_get_settings(WEBKIT_WEB_VIEW(w->priv.webview)); webkit_settings_set_enable_write_console_messages_to_stdout(settings, true); webkit_settings_set_enable_developer_extras(settings, true); + webkit_settings_set_hardware_acceleration_policy(settings, WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS); } else { diff --git a/runtime/js/package-lock.json b/runtime/js/package-lock.json index 61a8689b2..13881aa46 100644 --- a/runtime/js/package-lock.json +++ b/runtime/js/package-lock.json @@ -3959,9 +3959,9 @@ "dev": true }, "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true }, "interpret": { diff --git a/runtime/js/runtime/package-lock.json b/runtime/js/runtime/package-lock.json index 296bd2ec9..7a13b4e3a 100644 --- a/runtime/js/runtime/package-lock.json +++ b/runtime/js/runtime/package-lock.json @@ -1,6 +1,6 @@ { "name": "@wailsapp/runtime", - "version": "1.1.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -130,9 +130,9 @@ "dev": true }, "ini": { - "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", - "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", "dev": true }, "invert-kv": {