From 2330e452587b339f78acedb7434f75659ed923fa Mon Sep 17 00:00:00 2001 From: Mikkel Gravgaard Date: Wed, 12 Feb 2025 15:20:33 +0100 Subject: [PATCH 1/4] Check LOGGING env-var for "true" (#78) LOGGING env var should be exlicitly set to "true", in order to log requests. Currently it just needs to be truethy, which doesn't correspond with the the current default value in the example .env.local file (where it's "false"). Explicit "true" is also how other env-vars are checked, eg https://github.com/microsoft/code-push-server/blob/08e97d751620ad7867bb0c9b94633e94f2c01c68/api/script/default-server.ts#L110 --- api/script/default-server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/script/default-server.ts b/api/script/default-server.ts index 1c9234584..d6b0e6f0d 100644 --- a/api/script/default-server.ts +++ b/api/script/default-server.ts @@ -90,7 +90,7 @@ export function start(done: (err?: any, server?: express.Express, storage?: Stor next(); }); - if (process.env.LOGGING) { + if (process.env.LOGGING === "true") { app.use((req: express.Request, res: express.Response, next: (err?: any) => void): any => { console.log(); // Newline to mark new request console.log(`[REST] Received ${req.method} request at ${req.originalUrl}`); From b4f6dc11223ec20949f25fdcd414b627eb4d4c63 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 13 Feb 2025 11:44:37 +0100 Subject: [PATCH 2/4] Bump parse-duration from 1.1.0 to 2.1.3 in /cli (#95) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bumps [parse-duration](https://github.com/jkroso/parse-duration) from 1.1.0 to 2.1.3.
Release notes

Sourced from parse-duration's releases.

v2.1.3

What's Changed

  • Better performance / memory #61
  • Safer RE #61
  • Customizable placeholders
  • Type declaraion for rewriting units #62

Full Changelog: https://github.com/jkroso/parse-duration/compare/v2.1.2...v2.1.3

v2.1.2

What's Changed

  • Fixed type definitions
  • Added abbrs mo, mth, microsec, nanosec
  • Removed b abbr
  • Removed μ as greek mu in favor of &micro; left in default set

Full Changelog: https://github.com/jkroso/parse-duration/compare/v2.1.1...v2.1.2

v2.0.0

  • Introduces locales
  • Moves units into parse.unit object #56
  • Abandons CJS format in favour of ESM
  • Adds locale-dependent group/decimal separator #35

v1.1.2

What's Changed

New Contributors

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=parse-duration&package-manager=npm_and_yarn&previous-version=1.1.0&new-version=2.1.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/microsoft/code-push-server/network/alerts).
Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- cli/package-lock.json | 9 +++++---- cli/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/cli/package-lock.json b/cli/package-lock.json index be476f1bf..684735f53 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -16,7 +16,7 @@ "jsonwebtoken": "^9.0.2", "moment": "^2.29.4", "opener": "^1.5.2", - "parse-duration": "1.1.0", + "parse-duration": "2.1.3", "plist": "^3.0.6", "progress": "^2.0.3", "prompt": "^1.3.0", @@ -2945,9 +2945,10 @@ } }, "node_modules/parse-duration": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-1.1.0.tgz", - "integrity": "sha512-z6t9dvSJYaPoQq7quMzdEagSFtpGu+utzHqqxmpVWNNZRIXnvqyCvn9XsTdh7c/w0Bqmdz3RB3YnRaKtpRtEXQ==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-2.1.3.tgz", + "integrity": "sha512-MtbharL7Bets65qDBXuDOHHWyY1BxTJZmJ/xGmS90iEbKE0gZ6yZpZtCda7O79GeOi/f0NwBaplIuReExIoVsw==", + "license": "MIT" }, "node_modules/parseurl": { "version": "1.3.3", diff --git a/cli/package.json b/cli/package.json index ef15ad5e3..1c9539fae 100644 --- a/cli/package.json +++ b/cli/package.json @@ -27,7 +27,7 @@ "jsonwebtoken": "^9.0.2", "moment": "^2.29.4", "opener": "^1.5.2", - "parse-duration": "1.1.0", + "parse-duration": "2.1.3", "plist": "^3.0.6", "progress": "^2.0.3", "prompt": "^1.3.0", From 5b42222e0349d5b822e8dbbee7dc8f41ccc6ad50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Priit=20L=C3=A4tt?= Date: Fri, 14 Feb 2025 15:54:25 +0200 Subject: [PATCH 3/4] Add upper bound for parse-duration package version (#97) NPM package [parse-duration](https://www.npmjs.com/package/parse-duration) version was bumped from `1.1.0` to `2.1.3` In PR #95 for CodePush CLI. This caused the build to fail with the following error: ```shell % npm run build > code-push-cli@0.0.1 build > tsc script/command-parser.ts:1321:21 - error TS2349: This expression is not callable. Type 'typeof import("/private/tmp/ms-code-push-server/cli/node_modules/parse-duration/index")' has no call signatures. 1321 return Math.floor(parseDuration(durationString)); ~~~~~~~~~~~~~ Found 1 error in script/command-parser.ts:1321 ``` As current code-base is not compatible with `parse-duration` versions `2.0.0+`, restrict `parse-duration` to use version `1.x.y`. --- cli/package-lock.json | 8 ++++---- cli/package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cli/package-lock.json b/cli/package-lock.json index 684735f53..7dcf49a0d 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -16,7 +16,7 @@ "jsonwebtoken": "^9.0.2", "moment": "^2.29.4", "opener": "^1.5.2", - "parse-duration": "2.1.3", + "parse-duration": "^1.1.0", "plist": "^3.0.6", "progress": "^2.0.3", "prompt": "^1.3.0", @@ -2945,9 +2945,9 @@ } }, "node_modules/parse-duration": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-2.1.3.tgz", - "integrity": "sha512-MtbharL7Bets65qDBXuDOHHWyY1BxTJZmJ/xGmS90iEbKE0gZ6yZpZtCda7O79GeOi/f0NwBaplIuReExIoVsw==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/parse-duration/-/parse-duration-1.1.2.tgz", + "integrity": "sha512-p8EIONG8L0u7f8GFgfVlL4n8rnChTt8O5FSxgxMz2tjc9FMP199wxVKVB6IbKx11uTbKHACSvaLVIKNnoeNR/A==", "license": "MIT" }, "node_modules/parseurl": { diff --git a/cli/package.json b/cli/package.json index 1c9539fae..2c0acd2c7 100644 --- a/cli/package.json +++ b/cli/package.json @@ -27,7 +27,7 @@ "jsonwebtoken": "^9.0.2", "moment": "^2.29.4", "opener": "^1.5.2", - "parse-duration": "2.1.3", + "parse-duration": "^1.1.0", "plist": "^3.0.6", "progress": "^2.0.3", "prompt": "^1.3.0", From ff1d84cde0e18e5760df7b9622c46d5cad236016 Mon Sep 17 00:00:00 2001 From: Lukas Cenovsky <79307699+lucen-ms@users.noreply.github.com> Date: Tue, 20 May 2025 13:27:22 +0200 Subject: [PATCH 4/4] Update README.md (#134) --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cdbda97d6..484e3b18a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,10 @@ -# Visual Studio App Center CodePush Standalone Version +# Archiving this repository + +Visual Studio App Center was retired on March 31, 2025, except for its Analytics and Diagnostics features. You can learn more about the retirement and the Analytics and Diagnostics extension [here](https://aka.ms/appcenter/retire). CodePush, along with other App Center features, was also retired on March 31, 2025. Consequently, we are archiving this repository. + +--- + +## Visual Studio App Center CodePush Standalone Version [CodePush](https://learn.microsoft.com/en-us/appcenter/distribution/codepush/) is an App Center feature that enables React Native developers to deploy mobile app updates directly to their users’ devices. It consists of two parts: CodePush Server where developers can publish app updates to (e.g. JS, HTML, CSS or image changes), and [CodePush React Native Client SDK](https://github.com/Microsoft/react-native-code-push) that enables querying for updates from within an app.