diff --git a/package.json b/package.json index 4e334e4..01b1c0e 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.2", "@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.2", "cashc-v0.12": "npm:cashc@^0.12.2", - "cashscript": "^0.13.1", + "cashscript": "^0.14.0-next.2", "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..bb9af46 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.2": + version "0.14.0-next.2" + resolved "https://registry.yarnpkg.com/@cashscript/utils/-/utils-0.14.0-next.2.tgz#c171949efc01e5641da60698884fd3275c3eac84" + integrity sha512-IHQbosIAh+9bMHdWRYI+b2UD8l/bCF5USv3fQdGCPWXhoPSq/I6lNSihNq5QuwlxsdyCNiKNqPr5YH+dnveiuA== 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.2: + version "0.14.0-next.2" + resolved "https://registry.yarnpkg.com/cashc/-/cashc-0.14.0-next.2.tgz#b54aa0733712be09dfac069490d341e58d974c22" + integrity sha512-IVLtLA8D464Okk0ybfx+lYHS5afKJSc7BaCnHswBwJIO9LZ92hG/o01kLFCTjzgUMwWzitjIv4BDAhgF1qMFYA== dependencies: "@bitauth/libauth" "^3.1.0-next.8" - "@cashscript/utils" "^0.13.1" + "@cashscript/utils" "^0.14.0-next.2" 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.2: + version "0.14.0-next.2" + resolved "https://registry.yarnpkg.com/cashscript/-/cashscript-0.14.0-next.2.tgz#531c1c5785ef8ed5ae50fafeb7a9af87c699177e" + integrity sha512-pYuOnQIrThAmD0Berx080ldnrZ0nqHUsphhl+HWzN7ZhaUpvShEyZoY2kL+H6AQlxxZJSw+Mp4dSf39urC/Pmg== dependencies: "@bitauth/libauth" "^3.1.0-next.8" - "@cashscript/utils" "^0.13.1" + "@cashscript/utils" "^0.14.0-next.2" "@electrum-cash/network" "^4.1.3" fflate "^0.8.2" semver "^7.7.2"