@todesktop/shared 7.77.0 → 7.80.0

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.
@@ -143,6 +143,10 @@ export interface DesktopifyAppWindow {
143
143
  }
144
144
  export interface DesktopifyApp2 {
145
145
  id: string;
146
+ /**
147
+ * Last ToDesktop Builder version that was used to update the app
148
+ */
149
+ lastUsedBuilderVersion?: string;
146
150
  /**
147
151
  * The name of the app
148
152
  */
@@ -27,9 +27,8 @@ function isNumericSemver(value) {
27
27
  exports.forceVersionValidation = yup
28
28
  .string()
29
29
  .label("App version")
30
- .min(5)
31
30
  .required()
32
- .when("$currentVersion", (currentVersion, schema) => schema.test("semantic-version", "Specified app version must follow a numeric SemVer versioning scheme (e.g. 1.0.0)", (forceVersion) => {
31
+ .when("$currentVersion", (currentVersion, schema) => schema.test("semantic-version", "App version must follow a numeric SemVer versioning scheme (e.g. 1.0.0) and be greater than prior version.", (forceVersion) => {
33
32
  return (isNumericSemver(forceVersion) &&
34
33
  semver.gt(forceVersion, currentVersion));
35
34
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@todesktop/shared",
3
- "version": "7.77.0",
3
+ "version": "7.80.0",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -250,6 +250,10 @@ export interface DesktopifyAppWindow {
250
250
 
251
251
  export interface DesktopifyApp2 {
252
252
  id: string;
253
+ /**
254
+ * Last ToDesktop Builder version that was used to update the app
255
+ */
256
+ lastUsedBuilderVersion?: string;
253
257
  /**
254
258
  * The name of the app
255
259
  */
@@ -30,12 +30,11 @@ function isNumericSemver(value: string) {
30
30
  export const forceVersionValidation = yup
31
31
  .string()
32
32
  .label("App version")
33
- .min(5)
34
33
  .required()
35
34
  .when("$currentVersion", (currentVersion, schema) =>
36
35
  schema.test(
37
36
  "semantic-version",
38
- "Specified app version must follow a numeric SemVer versioning scheme (e.g. 1.0.0)",
37
+ "App version must follow a numeric SemVer versioning scheme (e.g. 1.0.0) and be greater than prior version.",
39
38
  (forceVersion: string) => {
40
39
  return (
41
40
  isNumericSemver(forceVersion) &&