Skip to content

Commit d878d06

Browse files
authored
Create v0.11.4 release (#336)
1 parent e42192b commit d878d06

File tree

12 files changed

+26
-18
lines changed

12 files changed

+26
-18
lines changed

examples/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "cashscript-examples",
33
"private": true,
4-
"version": "0.11.3",
4+
"version": "0.11.4",
55
"description": "Usage examples of the CashScript SDK",
66
"main": "p2pkh.js",
77
"type": "module",
@@ -13,8 +13,8 @@
1313
"dependencies": {
1414
"@bitauth/libauth": "^3.1.0-next.2",
1515
"@types/node": "^22.17.0",
16-
"cashc": "^0.11.3",
17-
"cashscript": "^0.11.3",
16+
"cashc": "^0.11.4",
17+
"cashscript": "^0.11.4",
1818
"eslint": "^8.56.0",
1919
"typescript": "^5.9.2"
2020
}

examples/testing-suite/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "testing-suite",
3-
"version": "0.11.3",
3+
"version": "0.11.4",
44
"description": "Example project to develop and test CashScript contracts",
55
"main": "index.js",
66
"type": "module",
@@ -26,8 +26,8 @@
2626
},
2727
"dependencies": {
2828
"@bitauth/libauth": "^3.1.0-next.2",
29-
"cashc": "^0.11.3",
30-
"cashscript": "^0.11.3",
29+
"cashc": "^0.11.4",
30+
"cashscript": "^0.11.4",
3131
"url-join": "^5.0.0"
3232
},
3333
"devDependencies": {

packages/cashc/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cashc",
3-
"version": "0.11.3",
3+
"version": "0.11.4",
44
"description": "Compile Bitcoin Cash contracts to Bitcoin Cash Script or artifacts",
55
"keywords": [
66
"bitcoin",
@@ -52,7 +52,7 @@
5252
},
5353
"dependencies": {
5454
"@bitauth/libauth": "^3.1.0-next.2",
55-
"@cashscript/utils": "^0.11.3",
55+
"@cashscript/utils": "^0.11.4",
5656
"antlr4": "^4.13.2",
5757
"commander": "^14.0.0",
5858
"semver": "^7.7.2"

packages/cashc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ export * from './Errors.js';
22
export * as utils from '@cashscript/utils';
33
export { compileFile, compileString } from './compiler.js';
44

5-
export const version = '0.11.3';
5+
export const version = '0.11.4';

packages/cashscript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cashscript",
3-
"version": "0.11.3",
3+
"version": "0.11.4",
44
"description": "Easily write and interact with Bitcoin Cash contracts",
55
"keywords": [
66
"bitcoin cash",
@@ -46,7 +46,7 @@
4646
},
4747
"dependencies": {
4848
"@bitauth/libauth": "^3.1.0-next.2",
49-
"@cashscript/utils": "^0.11.3",
49+
"@cashscript/utils": "^0.11.4",
5050
"@electrum-cash/network": "^4.1.3",
5151
"@mr-zwets/bchn-api-wrapper": "^1.0.1",
5252
"@types/node": "^22.17.0",

packages/cashscript/src/advanced/LibauthTemplate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ export const getLibauthTemplates = (
534534
export const debugLibauthTemplate = (template: WalletTemplate, transaction: TransactionBuilder): DebugResults => {
535535
const allArtifacts = transaction.inputs
536536
.map(input => 'contract' in input.unlocker ? input.unlocker.contract : undefined)
537-
.filter((contract): contract is Contract => !!contract)
537+
.filter((contract): contract is Contract => Boolean(contract))
538538
.map(contract => contract.artifact);
539539

540540
return debugTemplate(template, allArtifacts);

packages/cashscript/test/e2e/P2PKH.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('P2PKH-no-tokens', () => {
9797

9898
// TODO: this fails on mocknet, because mocknet doesn't check inputs vs outputs,
9999
// we should add a sanity check in our own code
100-
itOrSkip(!!process.env.TESTS_USE_CHIPNET, 'should fail when not enough satoshis are provided in utxos', async () => {
100+
itOrSkip(Boolean(process.env.TESTS_USE_CHIPNET), 'should fail when not enough satoshis are provided in utxos', async () => {
101101
// given
102102
const to = p2pkhContract.address;
103103
const amount = 1000n;

packages/utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cashscript/utils",
3-
"version": "0.11.3",
3+
"version": "0.11.4",
44
"description": "CashScript utilities and types",
55
"keywords": [
66
"bitcoin cash",

packages/utils/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export function parseType(str: string): Type {
190190
}
191191

192192
export function isPrimitive(type: Type): type is PrimitiveType {
193-
return !!PrimitiveType[type.toString().toUpperCase() as keyof typeof PrimitiveType];
193+
return Boolean(PrimitiveType[type.toString().toUpperCase() as keyof typeof PrimitiveType]);
194194
}
195195

196196
export interface LocationI {

website/docs/releases/release-notes.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
title: Release Notes
33
---
44

5+
## v0.11.4
6+
7+
### CashScript SDK
8+
- :sparkles: Add `updateUtxoSet` option to `MockNetworkProvider` to allow for updating the UTXO set after a transaction is sent.
9+
- :bug: Fix bug where sending P2PKH-only transactions would throw `No placeholder scenario ID or script ID found`.
10+
511
## v0.11.3
612

713
#### cashc compiler

0 commit comments

Comments
 (0)