Skip to content

Commit

Permalink
Revision 0.33.17 (#1042)
Browse files Browse the repository at this point in the history
* Use Constant Initializer on Hash Size

* Version

* ChangeLog
  • Loading branch information
sinclairzx81 authored Oct 17, 2024
1 parent 295f8d9 commit ac90038
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions changelog/0.33.0.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
### 0.33.0
- [Revision 0.33.17](https://github.com/sinclairzx81/typebox/pull/1042)
- [1041](https://github.com/sinclairzx81/typebox/issues/1041) Avoid Exponentiation operator on Value.Hash
- [Revision 0.33.16](https://github.com/sinclairzx81/typebox/pull/1015)
- [1015](https://github.com/sinclairzx81/typebox/issues/1015) Add sub error iterators to ValueError
- [Revision 0.33.15](https://github.com/sinclairzx81/typebox/pull/1025)
- [1024](https://github.com/sinclairzx81/typebox/issues/1024) Fix to correctly resolve default Dates
- [Revision 0.33.14](https://github.com/sinclairzx81/typebox/pull/1019)
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sinclair/typebox",
"version": "0.33.16",
"version": "0.33.17",
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript",
"keywords": [
"typescript",
Expand Down
2 changes: 1 addition & 1 deletion src/value/hash/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ enum ByteMarker {
// State
// ------------------------------------------------------------------
let Accumulator = BigInt('14695981039346656037')
const [Prime, Size] = [BigInt('1099511628211'), BigInt('2') ** BigInt('64')]
const [Prime, Size] = [BigInt('1099511628211'), BigInt('18446744073709551616' /* 2 ^ 64 */)]
const Bytes = Array.from({ length: 256 }).map((_, i) => BigInt(i))
const F64 = new Float64Array(1)
const F64In = new DataView(F64.buffer)
Expand Down

0 comments on commit ac90038

Please sign in to comment.