## Description Upgrade Typescript from 4.9.5 to 5.4 Upgrading to 5.5 is not possible until we upgrade colors.js lib. It will be done in separate PR More details here https://github.com/color-js/color.js/issues/560#issuecomment-2182819685 ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10163124159> > Commit: 8d2e93f2e2913e715686ccb058d3efddd55aabc9 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10163124159&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Tue, 30 Jul 2024 14:11:42 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Summary by CodeRabbit - **New Features** - Updated TypeScript dependency to the latest version (5.4), enhancing overall functionality with potential new features and improvements. - **Improvements** - Enhanced type safety by refining the `isString` function, allowing better type inference and preventing runtime errors. - Improved comments and annotations in the `indirectEval` function for better clarity on its usage and intent. - Corrected typographical errors in error handling logic across multiple controllers, improving reliability in error messaging. - Updated export style for `IconNames` to clarify its purpose as a type, enhancing developer experience. - **Configuration Changes** - Updated Jest configurations to better support ECMAScript Modules (ESM), improving compatibility and allowing for more flexible module handling. - Adjusted TypeScript configuration to enhance module handling and compatibility. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"name": "@shared/ast",
|
|
"private": true,
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "./index.ts",
|
|
"scripts": {
|
|
"test:unit": "jest -b --colors --no-cache --silent --coverage --collectCoverage=true --coverageDirectory='./' --coverageReporters='json-summary'",
|
|
"test:jest": "jest --watch",
|
|
"lint": "yarn g:lint",
|
|
"prettier": "yarn g:prettier",
|
|
"start": "rollup -c",
|
|
"build": "rollup -c"
|
|
},
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.21.0",
|
|
"@rollup/plugin-commonjs": "^22.0.0",
|
|
"@types/escodegen": "^0.0.7",
|
|
"@types/lodash": "^4.14.120",
|
|
"acorn": "^8.8.0",
|
|
"acorn-walk": "^8.2.0",
|
|
"astravel": "^0.6.1",
|
|
"astring": "^1.7.5",
|
|
"escodegen": "^2.0.0",
|
|
"klona": "^2.0.5",
|
|
"lodash": "^4.17.21",
|
|
"rollup": "^2.77.0",
|
|
"rollup-plugin-generate-package-json": "^3.2.0",
|
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
"rollup-plugin-typescript2": "^0.32.0",
|
|
"typescript": "5.4",
|
|
"unescape-js": "^1.1.4"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-typescript": "^7.17.12",
|
|
"@types/jest": "29.0.3",
|
|
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
"@typescript-eslint/parser": "^5.25.0",
|
|
"jest": "29.0.3",
|
|
"ts-jest": "29.1.0"
|
|
}
|
|
}
|