Releases: LIT-Protocol/js-sdk
Releases · LIT-Protocol/js-sdk
v6.2.0
Notable change
- 🌶️ Added
datil-test
support
What's Changed
- Feature/lit 2591 js sdk remove all redundantunused build processes and by @Ansonhkg in #485
- Feature/lit 2952 walletconnect optional namespaces by @FedericoAmura in #508
- Fetch
gasPrice
and estimate gas in Wrapped Keys LA if not provided by @spacesailor24 in #501 - Add
signMessage
andsignTransaction
Lit Action exports for Wrapped Keys by @spacesailor24 in #504 - Dev/test common updates by @joshLong145 in #511
- Wrapped Keys by @MaximusHaximus in #513
- Feature/lit 3125 sdk for wrapping up walletx 2 by @Ansonhkg in #487
- check timestamps of BLS session sigs by @glitch003 in #512
- fix sig validation by @glitch003 in #518
- feat: add custom gas limit by @Ansonhkg in #519
- LIT-3404 - Add Wrapped Keys support for datil-dev by @MaximusHaximus in #520
- Feature/lit 3140 make pkp base a private instance variable in pkp by @FedericoAmura in #509
- Feature/3404 datil dev support by @Ansonhkg in #515
- Bump versions to v6.1.0 pre-publish to NPM by @MaximusHaximus in #524
- manually release private key in tests by @glitch003 in #516
- fix: if the user omits "uses" it gets default set to "1". instead, i… by @Ansonhkg in #514
- Feature/lit 2591 js sdk remove all redundantunused build processes & refactor: delete
cypress
directory by @Ansonhkg in #496 - fix(tslib): standarised to use private _ over # to prevent: by @Ansonhkg in #526
- Feature/lit 3593 js sdk add a map of network names to rpc url by @Ansonhkg in #527
- fix: match version before building by @Ansonhkg in #529
- fix: wrong rpc in pkp ethers by @Ansonhkg in #531
- V6.1.1 publish by @Ansonhkg in #532
- Feature/lit 3549 js sdk add datiltest support by @Ansonhkg in #523
- feat: add
TEST_TIMEOUT
for tests by @Ansonhkg in #533 - Feat: Update Wrapped keys Export to use Lit Actions by @DashKash54 in #534
- Published version 6.2.0 by @Ansonhkg in #536
New Contributors
- @spacesailor24 made their first contribution in #501
Full Changelog: v6.0.3...v6.2.0
⚠️ Deprecation - Will be removed in version 7.x.
In the, @lit-protocol/constants
package:
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.LIT_CHAIN_RPC_URL.html
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.RELAY_URL_DATIL_TEST.html
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.RELAY_URL_CAYENNE.html
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.RELAY_URL_HABANERO.html
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.RELAY_URL_DATIL_DEV.html
- https://v6-api-doc-lit-js-sdk.vercel.app/variables/constants_src.RELAY_URL_MANZANO.html
v6.0.3
What's Changed
- use eth blockhash as webauthn challenge by @glitch003 in #507
- Fix/get session sigs base provider block hash url by @joshLong145 in #506
Full Changelog: v6.0.2...v6.0.3
v6.0.2
What's Changed
- feat: add multiple doc projects support when generating JsDocs by @Ansonhkg in #468
- test(la-sign-combine): add test cases by @joshLong145 in #493
- Fix/epoch param name by @glitch003 in #491
- Wip/testnet manager by @joshLong145 in #489
- Ref/remove execute with retry by @joshLong145 in #497
- Feat/suport localchain network context from shiva by @joshLong145 in #498
- always return the request id in the error by @glitch003 in #490
- LIT-3394 - Improve connect() performance by @MaximusHaximus in #502
- fix(core): contract context by @joshLong145 in #505
- Feature/lit 3379 investigate bls signed session bug by @joshLong145 in #500
Full Changelog: v6.0.1...v6.0.2
v6.0.1
⛰️ Features
- Added compose lit action resource string helper function
- Add support on additional parameters in authNeededCallbacks, and a higher level "getPkpSessionSigs" function.
- Add helper function to combine bls sigs
- Introduce siweMessage creation/authSig crafter helper functions, and fix circular dependencies inside auth-helpers.
- Add ResourceAbilityRequestBuilder for
Resource Ability Rrequest
generation forSession Signatures
- Add
getLitActionSessionSigs
function, better interfaces, and add custom test to CI - Add global checks in env loader for defined wasm globals
- Remove implicit loading of wasm to connect invocation
- Add pkpSessionSigs and litActionSessionSigs tests
- Most common least common support for Lit Action responses
- Add tests for Solana & Cosmos (cosmos is failing)
- Introduce
LIT_CHAIN_RPC_URL
so we don't need to go throughLIT_CHAINS
- Remove AuthValidator for client-side encrypt
- Add authSig back to encrypt helper functions
- Remove auth for encryption because it's completely client side
- Make
authNeededCallback
a required parameter, but we need to create a common interface, because GetPkpSessionSigs uses it too - Lit action custom authentication support with
Session Signatures
getSessionSigs
getLitActionSessionSigs
- Add
litActionIpfsId
togetSessionSigs
params - Add removeHexPrefix helper
- Refactor siwe message creation, (Breaking) renaming
SIG_TYPE
toLIT_CURVE
, and a util for sanitise - Remove
authSig
support onpkpSign
, andexecuteJs
- Remove multiformat package and make into peer dependency
- Endpoint
/web/signing/signConditionEcdsa
doesn't exist. Removed all related functionalities - Move
getExpiration
as helper - Remove fetch polyfill from
LItNodeClient
- PkpEthers to adapt new getSession change
- Remove authMethod from executeJs
- Update to use replica over sequencer rpc
- Move from
SIG_TYPE
toLIT_CURVE
for signature type checks
🐛 Bug Fixes
CapacityDelegation
uses
should be optional- Ensure provided provider and signer instances are used
- JsParam is optional for
getSessionSigs
- Add getPkpSessionSigs to LitClientSessionManager
- Fixes Signed session key mismatch with the one being signed due to storage provider not found.
- Params are not passed to authNeededCallback when resign with session key is needed
DAppOwnerWallet
is actually the only required param to create the delegation auth sig- Fix not being aware of local network context
- Custom auth jsParams should accept any params as key
- Move
"ipfs-unixfs-importer": "12.0.1",
to dev dependency due to bundling issues inLitNodeCient
- Change
authId
toauthMethodId
and improve interface - AuthContext litNodeClient
- PkpEthers to adapt new getSession change
- Remove authMethod from executeJs
- Remove
LIT_BLS
as an option - Browser global undefined see #416 #452
- Add
tslib
peer dependency, forsiwe-recap
package requirments - Remove
authSig
requirment fromencryption
functionality - Let
createSiweMessage
default arguments which are not provided. - Move staking event from locked to active
🚜 Refactor
- Remove
getClaimKeyExecutionShares
and add type for request - Remove
getSigningShareForDecryption
and addEncryptionSignRequest
type of request - Remove
getSigningShareForToken
and addSigningAccessControlConditionRequest
type - Remove
getSignSessionKeyShares
as it was unused - Remove
getLitResourceForEncryption
as it's unused
📚 Documentation
- Better jsDoc comments for capacityCredit delegations
- Improve
getJWTParams
jsDoc - Add JsDocs to
checkAndSignAuthMessage
- Update comments
- Update test commands
- Update error message for CID
- Update
getBytes32FromMultihash
jsDoc comments for devDepedency migration formultiformats
package
5.0.1
All notable changes to this project will be documented in this file.
[unreleased]
🚀 Features
- Allow certt caching if local storage is defined
🐛 Bug Fixes
- Improve readability
- Pass-in session key in base provider
- https://github.com/LIT-Protocol/js-sdk/pull/446#discussion_r1583307218
- Pass sessionKey to getSessionSigs
- Add undefined check to property check
- Session key signature default expiration always used
- Comment header for default expiration
- ToIsoString on exp in getSessionSigs
⚙️ Miscellaneous Tasks
- Fmt
- Add filter to e2e runner
Add
- (chain) Add 'lit' to supported chains in constant.ts file
Fat
- Update relay interface
Ref
- Add spruceid siwe-parser as explicit dep
- Change siwe import to no longer load entire module
- Remove enviorment specific properties of amd url in test
- Remove vcek/ portion of url
- Remove test case
- Refactor arg check to throw an error if not present
- Fix url resolving in LitAuthClient constructor
5.0.0
Breaking Changes
-
Removes
ipfs-http-client
: resolves build issues when running in nextjs -
Now using
cross-fetch
instead of directly injectingnode-fetch
as a polyfill solution for fetch
22293a2 -
Changes
getLatestBlockhash()
on the LitNodeClient to be anasync
method. This was previously a synchronous call.
83a070b
Bug Fixes
Cayenne
v3.0.26 Publish 3.0.26 (#287)
Serrano
SDK version compatible with Serrano
network