Skip to content

Commit

Permalink
8.6.2 (#4876)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed May 30, 2022
1 parent 06cb4aa commit bd0b642
Show file tree
Hide file tree
Showing 20 changed files with 191 additions and 187 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# CHANGELOG

## master
## 8.6.2 May 30, 2022

Changes:

- Don't apply default to `Option<bool>` opt-in
- Lower default historic LRU cache size (128 entries, 192MB est)
- Cater for updates required by TS 4.7.2


## 8.6.1 May 29, 2022
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"sideEffects": false,
"type": "commonjs",
"version": "8.6.2-1",
"version": "8.6.2",
"workspaces": [
"packages/*"
],
Expand All @@ -34,7 +34,7 @@
"@babel/core": "^7.18.2",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.18.3",
"@polkadot/dev": "^0.66.31",
"@polkadot/dev": "^0.66.32",
"@polkadot/typegen": "workspace:packages/typegen",
"@types/jest": "^27.5.1",
"copyfiles": "^2.4.1"
Expand Down
14 changes: 7 additions & 7 deletions packages/api-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/api-base": "8.6.2-1",
"@polkadot/rpc-augment": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-augment": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/api-base": "8.6.2",
"@polkadot/rpc-augment": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-augment": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/util": "^9.3.1"
},
"devDependencies": {
"@polkadot/types-support": "8.6.2-1"
"@polkadot/types-support": "8.6.2"
}
}
6 changes: 3 additions & 3 deletions packages/api-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/rpc-core": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/rpc-core": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/util": "^9.3.1",
"rxjs": "^7.5.5"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/api-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/api": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-create": "8.6.2-1",
"@polkadot/api": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/types-create": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/util-crypto": "^9.3.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/api-augment": "8.6.2",
"@polkadot/keyring": "^9.3.1"
}
}
24 changes: 12 additions & 12 deletions packages/api-derive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,25 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/api": "8.6.2-1",
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/api-base": "8.6.2-1",
"@polkadot/rpc-core": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/api": "8.6.2",
"@polkadot/api-augment": "8.6.2",
"@polkadot/api-base": "8.6.2",
"@polkadot/rpc-core": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/util-crypto": "^9.3.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api": "8.6.2-1",
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/rpc-augment": "8.6.2-1",
"@polkadot/rpc-provider": "8.6.2-1",
"@polkadot/types-support": "8.6.2-1"
"@polkadot/api": "8.6.2",
"@polkadot/api-augment": "8.6.2",
"@polkadot/rpc-augment": "8.6.2",
"@polkadot/rpc-provider": "8.6.2",
"@polkadot/types-support": "8.6.2"
}
}
28 changes: 14 additions & 14 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,29 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/api-base": "8.6.2-1",
"@polkadot/api-derive": "8.6.2-1",
"@polkadot/api-augment": "8.6.2",
"@polkadot/api-base": "8.6.2",
"@polkadot/api-derive": "8.6.2",
"@polkadot/keyring": "^9.3.1",
"@polkadot/rpc-augment": "8.6.2-1",
"@polkadot/rpc-core": "8.6.2-1",
"@polkadot/rpc-provider": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-augment": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-create": "8.6.2-1",
"@polkadot/types-known": "8.6.2-1",
"@polkadot/rpc-augment": "8.6.2",
"@polkadot/rpc-core": "8.6.2",
"@polkadot/rpc-provider": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-augment": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/types-create": "8.6.2",
"@polkadot/types-known": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/util-crypto": "^9.3.1",
"eventemitter3": "^4.0.7",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/types-support": "8.6.2-1"
"@polkadot/api-augment": "8.6.2",
"@polkadot/types-support": "8.6.2"
}
}
8 changes: 4 additions & 4 deletions packages/rpc-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/rpc-core": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/rpc-core": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/util": "^9.3.1"
}
}
10 changes: 5 additions & 5 deletions packages/rpc-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/rpc-augment": "8.6.2-1",
"@polkadot/rpc-provider": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/rpc-augment": "8.6.2",
"@polkadot/rpc-provider": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/util": "^9.3.1",
"rxjs": "^7.5.5"
},
"devDependencies": {
"@polkadot/keyring": "^9.3.1",
"@polkadot/rpc-augment": "8.6.2-1"
"@polkadot/rpc-augment": "8.6.2"
}
}
6 changes: 3 additions & 3 deletions packages/rpc-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/keyring": "^9.3.1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-support": "8.6.2-1",
"@polkadot/types": "8.6.2",
"@polkadot/types-support": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/util-crypto": "^9.3.1",
"@polkadot/x-fetch": "^9.3.1",
Expand Down
20 changes: 10 additions & 10 deletions packages/typegen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"bin": {
"polkadot-types-chain-info": "./scripts/polkadot-types-chain-info.cjs",
Expand All @@ -33,15 +33,15 @@
"@babel/core": "^7.18.2",
"@babel/register": "^7.17.7",
"@babel/runtime": "^7.18.3",
"@polkadot/api": "8.6.2-1",
"@polkadot/api-augment": "8.6.2-1",
"@polkadot/rpc-augment": "8.6.2-1",
"@polkadot/rpc-provider": "8.6.2-1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-augment": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-create": "8.6.2-1",
"@polkadot/types-support": "8.6.2-1",
"@polkadot/api": "8.6.2",
"@polkadot/api-augment": "8.6.2",
"@polkadot/rpc-augment": "8.6.2",
"@polkadot/rpc-provider": "8.6.2",
"@polkadot/types": "8.6.2",
"@polkadot/types-augment": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/types-create": "8.6.2",
"@polkadot/types-support": "8.6.2",
"@polkadot/util": "^9.3.1",
"@polkadot/x-ws": "^9.3.1",
"handlebars": "^4.7.7",
Expand Down
6 changes: 3 additions & 3 deletions packages/types-augment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/util": "^9.3.1"
}
}
8 changes: 4 additions & 4 deletions packages/types-codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/util": "^9.3.1"
},
"devDependencies": {
"@polkadot/types": "8.6.2-1",
"@polkadot/types-augment": "8.6.2-1",
"@polkadot/types-support": "8.6.2-1",
"@polkadot/types": "8.6.2",
"@polkadot/types-augment": "8.6.2",
"@polkadot/types-support": "8.6.2",
"@polkadot/util-crypto": "^9.3.1"
}
}
6 changes: 3 additions & 3 deletions packages/types-create/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-codec": "8.6.2",
"@polkadot/util": "^9.3.1"
},
"devDependencies": {
"@polkadot/types": "8.6.2-1"
"@polkadot/types": "8.6.2"
}
}
13 changes: 7 additions & 6 deletions packages/types-create/src/create/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import type { Codec, CodecClass, Registry, U8aBitLength, UIntBitLength } from '@polkadot/types-codec/types';
import type { TypeDef } from '../types';

import { BTreeMap, BTreeSet, Bytes, CodecSet, Compact, DoNotConstruct, Enum, HashMap, Int, Null, Option, OptionBool, Range, RangeInclusive, Result, Struct, Tuple, U8aFixed, UInt, Vec, VecFixed, WrapperKeepOpaque, WrapperOpaque } from '@polkadot/types-codec';
import { BTreeMap, BTreeSet, Bytes, CodecSet, Compact, DoNotConstruct, Enum, HashMap, Int, Null, Option, Range, RangeInclusive, Result, Struct, Tuple, U8aFixed, UInt, Vec, VecFixed, WrapperKeepOpaque, WrapperOpaque } from '@polkadot/types-codec';
import { assert, isNumber, stringify } from '@polkadot/util';

import { TypeDefInfo } from '../types';
Expand Down Expand Up @@ -118,11 +118,12 @@ const infoMapping: Record<TypeDefInfo, (registry: Registry, value: TypeDef) => C
[TypeDefInfo.Option]: (registry: Registry, value: TypeDef): CodecClass<Codec> => {
assert(value.sub && !Array.isArray(value.sub), 'Expected type information for Option');

return (
value.sub.type === 'bool'
? OptionBool
: createWithSub(Option, value)
);
// NOTE This is opt-in (unhandled), not by default
// if (value.sub.type === 'bool') {
// return OptionBool;
// }

return createWithSub(Option, value);
},

[TypeDefInfo.Plain]: (registry: Registry, value: TypeDef): CodecClass<Codec> =>
Expand Down
8 changes: 4 additions & 4 deletions packages/types-known/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
"@polkadot/networks": "^9.3.1",
"@polkadot/types": "8.6.2-1",
"@polkadot/types-codec": "8.6.2-1",
"@polkadot/types-create": "8.6.2-1",
"@polkadot/types": "8.6.2",
"@polkadot/types-codec": "8.6.2",
"@polkadot/types-create": "8.6.2",
"@polkadot/util": "^9.3.1"
}
}
2 changes: 1 addition & 1 deletion packages/types-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"./detectPackage.cjs"
],
"type": "module",
"version": "8.6.2-1",
"version": "8.6.2",
"main": "index.js",
"dependencies": {
"@babel/runtime": "^7.18.3",
Expand Down
Loading

0 comments on commit bd0b642

Please sign in to comment.