typescript: 5.8.2 -> 5.8.3

Diff: https://github.com/microsoft/TypeScript/compare/v5.8.2...v5.8.3

authored by Kenichi Kamiya and committed by Masum Reza 1ef2f007 6262669c

+80 -3
+28 -3
pkgs/by-name/ty/typescript/package.nix
··· 2 2 lib, 3 3 buildNpmPackage, 4 4 fetchFromGitHub, 5 + replaceVars, 5 6 versionCheckHook, 6 7 nix-update-script, 7 8 }: 8 9 9 10 buildNpmPackage (finalAttrs: { 10 11 pname = "typescript"; 11 - version = "5.8.2"; 12 + version = "5.8.3"; 12 13 13 14 src = fetchFromGitHub { 14 15 owner = "microsoft"; 15 16 repo = "TypeScript"; 16 17 tag = "v${finalAttrs.version}"; 17 - hash = "sha256-fOA5IblxUd+C9ST3oI8IUmTTRL3exC63MPqW5hoWN0M="; 18 + hash = "sha256-/XxjZO/pJLLAvsP7x4TOC+XDbOOR+HHmdpn+8qP77L8="; 18 19 }; 19 20 20 21 patches = [ 21 22 ./disable-dprint-dstBundler.patch 23 + 24 + # Should be removed in next 5.9.X TypeScript update: https://github.com/microsoft/TypeScript/pull/61218#issuecomment-2911264050 25 + (replaceVars ./revert-bump-to-v5.9.patch { 26 + inherit (finalAttrs) version; 27 + }) 22 28 ]; 23 29 24 - npmDepsHash = "sha256-ytdkxIjAd3UsU90o9IFZa5lGEv39zblBmgTTseVRGKQ="; 30 + postPatch = '' 31 + # The test run in the build script is redundant with checkPhase 32 + substituteInPlace package.json \ 33 + --replace-fail ' && npm run build:tests' "" 34 + 35 + # Should be removed in next 5.9.X TypeScript update 36 + substituteInPlace src/compiler/corePublic.ts \ 37 + --replace-fail 'versionMajorMinor = "5.9"' 'versionMajorMinor = "5.8"' 38 + substituteInPlace tests/baselines/reference/api/typescript.d.ts \ 39 + --replace-fail 'versionMajorMinor = "5.9"' 'versionMajorMinor = "5.8"' 40 + 41 + # Imported from https://github.com/microsoft/TypeScript/blob/b504a1eed45e35b5f54694a1e0a09f35d0a5663c/.github/workflows/set-version.yaml#L75 42 + sed -i -e 's/const version\(: string\)\{0,1\} = .*;/const version = "${finalAttrs.version}" as string;/g' src/compiler/corePublic.ts 43 + ''; 44 + 45 + npmDepsHash = "sha256-BHJGezzZensC/WFsUumJSk6TYAqbS50Inuvw2nV5vUk="; 46 + 47 + postBuild = '' 48 + npx hereby lkg 49 + ''; 25 50 26 51 nativeInstallCheckInputs = [ 27 52 versionCheckHook
+52
pkgs/by-name/ty/typescript/revert-bump-to-v5.9.patch
··· 1 + From fb5da5ae2622c4f7bb421f4d9ac6881b07ee220c Mon Sep 17 00:00:00 2001 2 + From: Kenichi Kamiya <kachick1@gmail.com> 3 + Date: Tue, 27 May 2025 16:09:56 +0900 4 + Subject: [PATCH] Revert 1fdf78aee644afd2702d69c148754a7fc1aff910 5 + 6 + This was an unintended slipped commit into v5.8.n 7 + Should be removed until actually release 5.9 8 + 9 + See https://github.com/microsoft/TypeScript/pull/61218#issuecomment-2911264050 for detail 10 + 11 + Intentionally omitted to patch corePublic.ts and the d.ts 12 + Including CRLF causes patching error in nixpkgs 13 + --- 14 + package-lock.json | 4 ++-- 15 + package.json | 2 +- 16 + 2 files changed, 3 insertions(+), 3 deletions(-) 17 + 18 + diff --git a/package-lock.json b/package-lock.json 19 + index d4d2c055cc..63a0b372d2 100644 20 + --- a/package-lock.json 21 + +++ b/package-lock.json 22 + @@ -1,12 +1,12 @@ 23 + { 24 + "name": "typescript", 25 + - "version": "5.9.0", 26 + + "version": "@version@", 27 + "lockfileVersion": 2, 28 + "requires": true, 29 + "packages": { 30 + "": { 31 + "name": "typescript", 32 + - "version": "5.9.0", 33 + + "version": "@version@", 34 + "license": "Apache-2.0", 35 + "bin": { 36 + "tsc": "bin/tsc", 37 + diff --git a/package.json b/package.json 38 + index ef2c80f8b9..0972bb4648 100644 39 + --- a/package.json 40 + +++ b/package.json 41 + @@ -2,7 +2,7 @@ 42 + "name": "typescript", 43 + "author": "Microsoft Corp.", 44 + "homepage": "https://www.typescriptlang.org/", 45 + - "version": "5.9.0", 46 + + "version": "@version@", 47 + "license": "Apache-2.0", 48 + "description": "TypeScript is a language for application scale JavaScript development", 49 + "keywords": [ 50 + -- 51 + 2.49.0 52 +