diff --git a/package.json b/package.json index 4e334e4..6e0dff7 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,14 @@ "lint": "next lint" }, "dependencies": { - "@cashscript/utils": "^0.13.1", + "@cashscript/utils": "^0.14.0-next.3", "@emotion/react": "^11.14.0", "@emotion/styled": "^11.14.0", "@monaco-editor/react": "^4.7.0", "bootstrap": "^5.3.7", - "cashc": "^0.13.1", + "cashc": "^0.14.0-next.3", "cashc-v0.12": "npm:cashc@^0.12.2", - "cashscript": "^0.13.1", + "cashscript": "^0.14.0-next.3", "next": "15.5.9", "react": "18.2.0", "react-bootstrap": "^2.10.10", diff --git a/src/components/Editor.tsx b/src/components/Editor.tsx index 1dc1cb6..d5b31e9 100644 --- a/src/components/Editor.tsx +++ b/src/components/Editor.tsx @@ -94,7 +94,7 @@ const Editor: React.FC = ({ code, setCode, compile, compilerVersion, setC onChange={(e) => setCompilerVersion(e.target.value as CashScriptVersion)} style={{ width: '170px', borderRadius: '30px' }} > - + diff --git a/src/editor/cashscript/diagnostics.ts b/src/editor/cashscript/diagnostics.ts index 4a407a5..29e79cb 100644 --- a/src/editor/cashscript/diagnostics.ts +++ b/src/editor/cashscript/diagnostics.ts @@ -62,7 +62,7 @@ export interface CashScriptDiagnostic { } const compileStringByVersion: Record = { - '0.13': compileString, + '0.14': compileString, '0.12': compileStringV012, }; diff --git a/src/editor/cashscript/version.ts b/src/editor/cashscript/version.ts index 22c23b4..e5a1085 100644 --- a/src/editor/cashscript/version.ts +++ b/src/editor/cashscript/version.ts @@ -7,9 +7,9 @@ // versions, which avoids re-registering providers (Monaco can't cleanly // unregister them) while still gating version-specific language features. -export type CashScriptVersion = '0.12' | '0.13'; +export type CashScriptVersion = '0.12' | '0.14'; -let currentVersion: CashScriptVersion = '0.13'; +let currentVersion: CashScriptVersion = '0.14'; // Listeners notified when the selected version changes. Used by the highlighting // layer, which (unlike completions/hover) is registered statically and must be diff --git a/yarn.lock b/yarn.lock index 1c01f3c..240b649 100644 --- a/yarn.lock +++ b/yarn.lock @@ -77,10 +77,10 @@ dependencies: "@bitauth/libauth" "^3.1.0-next.8" -"@cashscript/utils@^0.13.1": - version "0.13.1" - resolved "https://registry.yarnpkg.com/@cashscript/utils/-/utils-0.13.1.tgz#cfcfcf7c6a8edb41f4c3887b908592147c9a3736" - integrity sha512-MAZ0SK+wvgQbTKHHgTDocfOI+Yrmw5c8bv4FyKUuCtjw/+JE/HJEEKyL/0ppEFbOzv5Jy4JQIV6n7GPNWm/wbQ== +"@cashscript/utils@^0.14.0-next.3": + version "0.14.0-next.3" + resolved "https://registry.yarnpkg.com/@cashscript/utils/-/utils-0.14.0-next.3.tgz#ab4bed5c687a39783590bcf8988cd30a9bf95628" + integrity sha512-0ayJDnjwCydqsFFQDLIMgBkLtj/1YWjClhT6gPwElAaTitdH9ckNKAkdQQ3vPXZp+9kWMV6gVgXw02m5BPRS9A== dependencies: "@bitauth/libauth" "^3.1.0-next.8" @@ -1200,24 +1200,24 @@ caniuse-lite@^1.0.30001579: commander "^14.0.0" semver "^7.7.2" -cashc@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/cashc/-/cashc-0.13.1.tgz#9b246f2997eda2fbe5c358fdedbb36bdc57b5a96" - integrity sha512-u0tcMNyK29FOLhVzoQsynmd51QtAGxPIpy8pScLu18RV1MMI0WD1YJY1DBtRNaQlOupeBeO24O6lTNoJ621d2w== +cashc@^0.14.0-next.3: + version "0.14.0-next.3" + resolved "https://registry.yarnpkg.com/cashc/-/cashc-0.14.0-next.3.tgz#263408253939c7c3d63a467bf3332d57a28f2c3e" + integrity sha512-phsDT0IO1VG+r6V9ycy1al2QkCdKM9L4aDQlnoFcCaU1HsNL7TFdeoKknTd3X08cRXvRlpAPr2fYqCc+XhKYaQ== dependencies: "@bitauth/libauth" "^3.1.0-next.8" - "@cashscript/utils" "^0.13.1" + "@cashscript/utils" "^0.14.0-next.3" antlr4 "^4.13.2" commander "^14.0.0" semver "^7.7.2" -cashscript@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/cashscript/-/cashscript-0.13.1.tgz#06059881922c35064347e13d97eeb0eb057eea3f" - integrity sha512-BrPFO4TYFTFc41Ft4Hpsky9UNct2SEv6QdC89utu4B/9+8kl4uJLy4SjUv9ZJciGSigQOg4McKYzuYCc/oYl2g== +cashscript@^0.14.0-next.3: + version "0.14.0-next.3" + resolved "https://registry.yarnpkg.com/cashscript/-/cashscript-0.14.0-next.3.tgz#c81b052824d040d918a3260717f9ed5ae2841111" + integrity sha512-0RYc6LncqDAKINy4xtjH9hH2ANobk8XByWkXGs+W3x1TOU9eWyO6NJnPiIv742Vefd24JFrE6PqkF1ZWvEGeMw== dependencies: "@bitauth/libauth" "^3.1.0-next.8" - "@cashscript/utils" "^0.13.1" + "@cashscript/utils" "^0.14.0-next.3" "@electrum-cash/network" "^4.1.3" fflate "^0.8.2" semver "^7.7.2"