New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@onflow/cadence-parser

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@onflow/cadence-parser - npm Package Versions

2

1.0.0-preview.50

Diff

Changelog

Source

v1.0.0-preview.50 - 23 Aug 2024

<!-- Release notes generated using configuration in .github/release.yml at v1.0.0-preview.50 -->

What's Changed

🐞 Bug Fixes

  • Fix program recovery by @turbolent in https://github.com/onflow/cadence/pull/3548

📖 Documentation

  • Add mainnet migration report for Aug 21 by @j1010001 in https://github.com/onflow/cadence/pull/3547

Other Changes

  • Merge release/v1.0.0-preview.49 to master by @github-actions in https://github.com/onflow/cadence/pull/3545

Full Changelog: https://github.com/onflow/cadence/compare/v1.0.0-preview.49...v1.0.0-preview.50

[Changes][v1.0.0-preview.50]

<a name="v1.0.0-preview.49"></a>

turbolent_flow
published 0.42.1 •

Changelog

Source

v0.42.1 - 23 Oct 2023

<!-- Release notes generated using configuration in .github/release.yml at v0.42.1 -->

What's Changed

⭐ Features

  • Allow native functions to have type parameters by @turbolent in https://github.com/onflow/cadence/pull/2850
  • Allow specifying a mapping with source paths for locations in coverage reports by @m-Peter in https://github.com/onflow/cadence/pull/2859

🛠 Improvements

  • mjs build for cadence-parser by @nialexsan in https://github.com/onflow/cadence/pull/2851

💥 Go API Breaking Chance

  • Allow different base activations per location in checker and interpreter by @turbolent in https://github.com/onflow/cadence/pull/2887

Other Changes

  • Add computation metering to the new stdlib functions by @SupunS in https://github.com/onflow/cadence/pull/2880
  • Use ComputationKindLoop for internal array-value iterations by @SupunS in https://github.com/onflow/cadence/pull/2891

Full Changelog: https://github.com/onflow/cadence/compare/v0.42.0...v0.42.1

[Changes][v0.42.1]

<a name="v0.42.0"></a>

jeffreydoyle
published 0.26.0 •

Changelog

Source

v0.26.0 - 23 Aug 2022

<!-- Release notes generated using configuration in .github/release.yml at v0.26.0 -->

What's Changed

⭐ Features

  • Interface default implementation support by @bluesign in https://github.com/onflow/cadence/pull/1076
  • Add path fields to AuthAccount and PublicAccount by @dsainati1 in https://github.com/onflow/cadence/pull/1845
  • Storage Iteration functions for accounts by @dsainati1 in https://github.com/onflow/cadence/pull/1851
  • Add panic after continuing storage iteration after a storage mutation by @dsainati1 in https://github.com/onflow/cadence/pull/1892

🛠 Improvements

  • [LS] Enable argument init for add contract by @sukantoraymond in https://github.com/onflow/cadence/pull/1855
  • Optimize standard library enums by @turbolent in https://github.com/onflow/cadence/pull/1813
  • Optimize elaboration by @turbolent in https://github.com/onflow/cadence/pull/1844
  • Ignore Go workspace files by @sideninja in https://github.com/onflow/cadence/pull/1880
  • Optimize predeclared values, refactor runtime into reusable part by @turbolent in https://github.com/onflow/cadence/pull/1825
  • [LS] Contract deploy test fix by @sideninja in https://github.com/onflow/cadence/pull/1890
  • Optimize interpreter configuration, reuse it in runtime environment by @turbolent in https://github.com/onflow/cadence/pull/1831
  • Preallocate ordered maps by @turbolent in https://github.com/onflow/cadence/pull/1878
  • Optimize import of crypto enum cases by @turbolent in https://github.com/onflow/cadence/pull/1888
  • Append special prefix to all internal error string messages by @SupunS in https://github.com/onflow/cadence/pull/1901
  • Improve hex decoding errors by @turbolent in https://github.com/onflow/cadence/pull/1904
  • Move resource variables to shared state by @turbolent in https://github.com/onflow/cadence/pull/1902
  • Reduce allocations by refactoring simple composite computed fields from map to function by @turbolent in https://github.com/onflow/cadence/pull/1899
  • Refactor checker config and position info by @turbolent in https://github.com/onflow/cadence/pull/1898
  • update BLS ciphersuite by @tarakby in https://github.com/onflow/cadence/pull/1848
  • [LS] Flow client encapsulation and integration refactor by @sideninja in https://github.com/onflow/cadence/pull/1752

📖 Documentation

  • Add meeting notes for July 22, 2022 by @turbolent in https://github.com/onflow/cadence/pull/1843
  • Improve documentation for storage iteration by @dsainati1 in https://github.com/onflow/cadence/pull/1882
  • Fix minor typo: language docs - consts & vars by @sisyphusSmiling in https://github.com/onflow/cadence/pull/1865

Other Changes

  • Fix batch script tool by @SupunS in https://github.com/onflow/cadence/pull/1861
  • Parse version file and use max version by @turbolent in https://github.com/onflow/cadence/pull/1906
  • Merging V0.25 branch back to master by @SupunS in https://github.com/onflow/cadence/pull/1879

New Contributors

  • @sukantoraymond made their first contribution in https://github.com/onflow/cadence/pull/1855
  • @sisyphusSmiling made their first contribution in https://github.com/onflow/cadence/pull/1865
  • @bluesign made their first contribution in https://github.com/onflow/cadence/pull/1076

Full Changelog: https://github.com/onflow/cadence/compare/v0.25.0...v0.26.0

[Changes][v0.26.0]

<a name="languageserver/v0.26.0"></a>

turbolent_flow
published 0.20.2 •

turbolent_flow
published 0.18.0 •

Changelog

Source

v0.18.0 - 15 Jun 2021

💥 Breaking Changes

⭐ Features

🛠 Improvements

🐞 Bug Fixes

📖 Documentation

  • Add documentation for the Cadence documentation generator (#1003) @SupunS

[Changes][v0.18.0]

<a name="v0.17.0"></a>

turbolent_flow
published 0.17.0 •

Changelog

Source

v0.17.0 - 09 Jun 2021

⭐ Features

🛠 Improvements

  • Add deferred decoding support for dictionary values (#925) @SupunS
  • Improve type inference for binary expressions (#957) @turbolent
  • Update language server to Cadence v0.16.0 (#926) @turbolent
  • [Doc-Gen Tool] Add documentation generation support for event declarations (#985) @SupunS
  • [Doc-Gen Tool] Group declarations based on their kind (#984) @SupunS
  • Check 'importability' instead of 'storability' for transaction arguments (#983) @SupunS
  • Allow native composite types to be passed as script arguments (#973) @SupunS
  • Validate UTF-8 compatibility in string value constructor (#972) @SupunS
  • Cache type ID for composite types (#950) @SupunS
  • [Optimization] Make dynamic types singleton for simple types (#963) @SupunS
  • Include docstrings in value and type variables, improve hover markup (#945) @turbolent
  • Always check arguments and record the argument types in the elaboration (#951) @turbolent
  • Optimize qualified identifier creation (#948) @SupunS
  • Optimize Type function declaration (#949) @turbolent
  • [Optimization] Re-use converter functions across interpreters (#947) @SupunS
  • Update and extend the source compatibility suite (#977) @turbolent
  • Update to Go 1.16.3's libexec/misc/wasm/wasm_exec.js (#929) @turbolent

🐞 Bug Fixes

🧪 Tests

📖 Documentation

🏗 Chore

[Changes][v0.17.0]

<a name="v0.16.1"></a>

turbolent_flow
published 0.16.0 •

Changelog

Source

v0.16.0 - 18 May 2021

💥 Breaking Changes

  • Add new crypto features (#852) @SupunS

    Renamed the ECDSA_Secp256k1 signature algorithm to ECDSA_secp256k1.

    Please update existing contracts, transactions, and scripts to use the new name.

  • Remove the high-level storage API (#877) @turbolent

    The internal interface's SetCadenceValue function was removed.

    This change does not affect Cadence programs (contracts, transactions, scripts).

⭐ Features

  • Add non-local type inference for expressions (#875) @SupunS

    The type of most declarations and expressions is now inferred in a uni-directional way, instead of only locally.

    For example, this allows the following declarations to type-check without having to add static casts:

    let numbers: [Int8] = [1, 2, 3]
    let nestedNumbers: [[Int8]] = [[1, 2], [3, 4]]
    let numberNames: {Int64: String} = {0: "zero", 1: "one"}
    let sum: Int8 = 1 + 2
    
  • Add new crypto features (#852) @SupunS

    Hash Algorithms

    Signature Algorithms

    PublicKey Type

    • Added the field let isValid: Bool. For example:

      let publicKey = PublicKey(publicKey: [], signatureAlgorithm: SignatureAlgorithm.ECDSA_P256)
      
      let valid = publicKey.isValid
      
    • Added the function verify, which allows validating signatures:

      pub fun verify(
          signature: [UInt8],
          signedData: [UInt8],
          domainSeparationTag: String,
          hashAlgorithm: HashAlgorithm
      ): Bool
      

      For example:

      let valid = publicKey.verify(
          signature: [],
          signedData: [],
          domainSeparationTag: "something",
          hashAlgorithm: HashAlgorithm.SHA2_256
      )
      
    • Added the function hashWithTag, which allows hashing with a tag:

      pub fun hashWithTag(
          _ data: [UInt8],
          tag: string,
          algorithm: HashAlgorithm
      ): [UInt8]
      
  • Direct contract function invoke (#878) @janezpodhostnik

    Cadence now supports an additional function to allow the host environment to call contract functions directly.

  • Language Server: Add support for access check mode (#868) @turbolent

  • Record variable declaration ranges (#880) @turbolent

⚡️ Performance

The performance of decoding and encoding values was significantly improved by @fxamacker and @SupunS:

  • Optimize encoding by using CBOR lib's StreamEncoder (#830) @fxamacker
  • Optimize decoding by using CBOR StreamDecoder (#885) @fxamacker
  • Add deferred decoding for array values (#871) @SupunS
  • Add deferred decoding support for composite values (#896) @SupunS
  • Pre-allocate and reuse value-path for encoding (#858) @fxamacker
  • Pre-allocate and reuse value-path for decoding (#869) @turbolent
  • Optimize Address.Bytes() to inline fast path (#848) @fxamacker
  • Remove call to Valid() during encoding to boost speed by about 13-18% (#857) @fxamacker
  • Directly create int subtype value at interpreter (#913) @SupunS

🛠 Improvements

🔒 Security

This release contains major security fixes:

  • Declare post-condition result variable as reference if return type is a resource (#905) @turbolent

    We would like to thank Deniz Mert Edincik for finding and reporting this critical issue responsibly through our Responsible Disclosure Policy.

    See https://forum.onflow.org/t/fixed-cadence-vulnerability-2021-04-13

  • Fix dynamic subtype test for reference values (#914) @turbolent

    We would like to thank Deniz Mert Edincik for finding and reporting this critical issue responsibly through our Responsible Disclosure Policy.

    We would also like to thank Mikey Lemmon for finding this issue independently and reporting it responsibly, too.

    See https://forum.onflow.org/t/fixed-cadence-vulnerability-2021-04-20

  • Check storability when value is written (before it is encoded) (#915) @turbolent

    We would like to thank Deniz Mert Edincik for finding and reporting this medium issue responsibly through our Responsible Disclosure Policy.

    See https://forum.onflow.org/t/fixed-cadence-vulnerability-2021-04-20

  • Check the index bounds for arrays (#917) @turbolent

    We would like to thank Mário Silva for finding and reporting this medium issue responsibly through our Responsible Disclosure Policy.

🐞 Bug Fixes

🧪 Tests

📖 Documentation

🏗 Chores

[Changes][v0.16.0]

<a name="v0.15.1"></a>

turbolent_flow
published 0.13.8 •

Changelog

Source

v0.13.8 - 18 Mar 2021

🐞 Bug Fixes

  • Properly handle recursive types when checking validity of event parameter types (#708) @turbolent

[Changes][v0.13.8]

<a name="v0.14.1"></a>

turbolent_flow
published 0.13.7 •

turbolent_flow
published 0.12.6 •

Changelog

Source

v0.12.6 - 02 Feb 2021

🛠 Improvements

  • Optimize activations (#571)
  • Make occurrences and origins optional (#570)
  • Update to hamt 37930cf9f7d8, which contains ForEach, optimize activations (#569)
  • Move global values, global types, and transaction types to elaboration (#558)
  • Improve AST indices (#556)
  • Cache programs before checking succeeded, properly wrap returned error (#557)

Performance of checking and interpretation has been improved, e.g. for BenchmarkCheckContractInterfaceFungibleTokenConformance:

| Commit | Description | Ops | Time | |----------|------------------------------------------------|------:|--------------:| | 21764d89 | Baseline, v0.12.5 | 595 | 2018162 ns/op | | df2ba05d | Update hamt, use ForEach everywhere | 1821 | 658515 ns/op | | 6088ce01 | Optional occurrences and origins recording | 2258 | 530121 ns/op | | 429a7796 | Optimize activations, replace use of HAMT map | 3667 | 327368 ns/op |

⭐ Features

  • Optionally run checker tests concurrently (#554)

🐞 Bug Fixes

  • Fix runtime type of Block.timestamp (#575)
  • Use correct CommandSubmitTransaction command in entrypoint code lens (#568)
  • Revert "always find the declared variable (#408)" (#561)
  • Make parameter list thread-safe (#555)

📖 Documentation

  • More developer documentation (#535)
  • Update the roadmap (#553)
  • Document how to inject value declarations (#547)

[Changes][v0.12.6]

<a name="v0.10.6"></a>

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc