Releases: near/near-sdk-js
Releases · near/near-sdk-js
v2.0.0
What's Changed
- Migration example by @volovyks in #352
- Fix the returned type of the includeBytes function from string to Uin… by @nsejim in #355
- feat-issues-242: borsh support by @fospring in #361
- issue-358: add test for migration with new fileds example by @fospring in #363
- fix-issue-364: fix turbo run test faled somtimes by @fospring in #365
- feat: remove condition compile for host function by @fospring in #366
- chore: add investigate result fo Javascript Engines and tools to compile and execute wasm by @fospring in #368
- feat: added near-sdk-js typedoc by @matiasbenary in #371
- Feat deser class by schema collection by @fospring in #370
- fix: fix build dependency miss for turbo run without sequence by @fospring in #380
- chore: update workspace version to latest by @fospring in #381
- fix: PromiseIndex type by @matiasbenary in #378
- Feat deser class by schema collection userfriendlyapi by @fospring in #377
- Nujabes403develop by @fospring in #384
- remove nightly condition for alt_bn256 by @ailisp in #386
- use new arm64 build for linux and mac by @ailisp in #393
- Abi tests by @ailisp in #395
- add alt bn128 tests by @ailisp in #396
- Add build method in promise api to allow execute promise without return it by @ailisp in #397
- feat: major version 2.0.0 by @fospring in #399
- feat: add example for docs of migration by @fospring in #400
- chore: update doc by @fospring in #398
New Contributors
- @fospring made their first contribution in #361
- @matiasbenary made their first contribution in #371
Full Changelog: v1.0.0...v2.0.0
v1.0.0
Highlights
- Fungible Token Standard and Storage Management are added to near-contract-standards
- Tests to ensure arithmentic correctness of quickjs runtime are finished. Because of this, we move forward from alpha to release!
- Reference Doc is now available!
- Contribution guideline is added to the repo!
- A gas and storage benchmark is added
- Enumerate keys/elements in a pagination way is added in collections API.
- Several bug fixes in build tools.
What's Changed
- Fix typo in rollup command name by @idea404 in #336
- Enumerate keys/elements and pagination by @ailisp in #337
- Update README.md by @bucanero in #338
- Remove C warnings, when build with --verbose by @ailisp in #339
- Fix build script when there is space in project path by @ailisp in #340
- gas and storage benchmarks by @ailisp in #341
- CI linux tests were not run because of a wrong condition by @ailisp in #343
- FT by @volovyks in #331
- fix(docs): contrib guidelines by @maxhr in #342
- Add links to reference doc by @ailisp in #344
- Remove alpha warning by @ailisp in #345
- Error and stop build a contract that has method name confliction by @ailisp in #346
- Rust specific terminology replaced with JS one by @volovyks in #348
New Contributors
Full Changelog: v0.7.0...v1.0.0
v1.0.0-0
Highlights
- Fungible Token Standard and Storage Management are added to near-contract-standards
- Tests to ensure arithmentic correctness of quickjs runtime are finished. Because of this, we move forward from alpha to release!
- Reference Doc is now available!
- Contribution guideline is added to the repo!
- A gas and storage benchmark is added
- Enumerate keys/elements in a pagination way is added in collections API.
- Several bug fixes in build tools.
What's Changed
- Fix typo in rollup command name by @idea404 in #336
- Enumerate keys/elements and pagination by @ailisp in #337
- Update README.md by @bucanero in #338
- Remove C warnings, when build with --verbose by @ailisp in #339
- Fix build script when there is space in project path by @ailisp in #340
- gas and storage benchmarks by @ailisp in #341
- CI linux tests were not run because of a wrong condition by @ailisp in #343
- FT by @volovyks in #331
- fix(docs): contrib guidelines by @maxhr in #342
- Add links to reference doc by @ailisp in #344
- Remove alpha warning by @ailisp in #345
- Error and stop build a contract that has method name confliction by @ailisp in #346
New Contributors
Full Changelog: v0.7.0...v1.0.0-0
v0.7.0
Highlights
- Docstrings are now available on every public APIs.
- Support of WSL 2. You can now develop with near-sdk-js on Windows! Check README for recipes.
- ABI support is added on CLI!
- CLI enhancement: flexible build commands are added!
- Starting from this version, near-contract-standards is released together with near-sdk-js!
- UTF-8 support is added. You can now store and retrieve UTF-8 strings in storage and collections.
- The confusing Bytes types is dropped. It is replaced with string and Uint8Array.
- Storage/Input/ValueReturn API now comes with both raw version and string version. The raw version will help you efficiently handle raw bytes in Uint8Array.
- Refactor: starting from this version, near-sdk-js becomes a monorepo with a number of enhancement for contributors.
- Refactor: Optimized exports.
- An migration guide from v0.6.0 is added in README.
What's Changed
- v0.6.0 by @volovyks in #275
- deps dir management moved to post-install script by @volovyks in #276
- TSC error suppression for latest versions by @vunderkind in #272
- cli chmod hack deleted by @volovyks in #277
- patch(cli): fix typo by @waynenilsen in #282
- NFT standard by @ailisp in #177
- cli bash replaced with node by @volovyks in #285
- quick js v0.1.3 by @volovyks in #279
- ts-morph to deps by @idea404 in #292
- standarts import paths fixed by @volovyks in #293
- Test cross contract call failures and error handling by @ailisp in #294
- WSL2 instructions by @volovyks in #295
- Added a warning until we can get the runtime audited by @DavidM-D in #298
- Exports and import paths by @volovyks in #299
- feat(cli): new subcommands by @waynenilsen in #283
- NFT standard refund account storage based on actual size by @ailisp in #300
- [bugfix] display stderr on command failure by @DerekTBrown in #303
- Example of programmatic update of JS Smart Contract by @nsejim in #287
- add remaining doc strings by @ailisp in #305
- Include Example and Test for Promises Created in For Loops by @idea404 in #309
- fix: Fix logging by @petarvujovic98 in #311
- Use TS ? to replace option in nft standard interface by @ailisp in #304
- Exports refactored by @volovyks in #313
- ABI generation by @itegulov in #301
- pnpm by @volovyks in #317
- fix: ensure that NEAR functions have explicit types by @itegulov in #322
- Separate tests replased with one script in examples CI by @volovyks in #318
- Monorepo implemented with Turborepo by @volovyks in #323
- Use uint8array by @ailisp in #308
- move IntoStorageKey alike feature to lib by @ailisp in #329
- 0.7 release by @ailisp in #332
New Contributors
- @vunderkind made their first contribution in #272
- @waynenilsen made their first contribution in #282
- @DavidM-D made their first contribution in #298
- @DerekTBrown made their first contribution in #303
- @nsejim made their first contribution in #287
Full Changelog: v0.6.0...v0.7.0
v0.7.0-2
Highlights
- Docstrings are now available on every public APIs.
- Support of WSL 2. You can now develop with near-sdk-js on Windows! Check README for recipes.
- ABI support is added on CLI!
- CLI enhancement: flexible build commands are added!
- Starting from this version, near-contract-standards is released together with near-sdk-js!
- UTF-8 support is added. You can now store and retrieve UTF-8 strings in storage and collections.
- The confusing Bytes types is dropped. It is replaced with string and Uint8Array.
- Storage/Input/ValueReturn API now comes with both raw version and string version. The raw version will help you efficiently handle raw bytes in Uint8Array.
- Refactor: starting from this version, near-sdk-js becomes a monorepo with a number of enhancement for contributors.
- Refactor: Optimized exports.
What's Changed
- v0.6.0 by @volovyks in #275
- deps dir management moved to post-install script by @volovyks in #276
- TSC error suppression for latest versions by @vunderkind in #272
- cli chmod hack deleted by @volovyks in #277
- patch(cli): fix typo by @waynenilsen in #282
- NFT standard by @ailisp in #177
- cli bash replaced with node by @volovyks in #285
- quick js v0.1.3 by @volovyks in #279
- ts-morph to deps by @idea404 in #292
- standarts import paths fixed by @volovyks in #293
- Test cross contract call failures and error handling by @ailisp in #294
- WSL2 instructions by @volovyks in #295
- Added a warning until we can get the runtime audited by @DavidM-D in #298
- Exports and import paths by @volovyks in #299
- feat(cli): new subcommands by @waynenilsen in #283
- NFT standard refund account storage based on actual size by @ailisp in #300
- [bugfix] display stderr on command failure by @DerekTBrown in #303
- Example of programmatic update of JS Smart Contract by @nsejim in #287
- add remaining doc strings by @ailisp in #305
- Include Example and Test for Promises Created in For Loops by @idea404 in #309
- fix: Fix logging by @petarvujovic98 in #311
- Use TS ? to replace option in nft standard interface by @ailisp in #304
- Exports refactored by @volovyks in #313
- ABI generation by @itegulov in #301
- pnpm by @volovyks in #317
- fix: ensure that NEAR functions have explicit types by @itegulov in #322
- Separate tests replased with one script in examples CI by @volovyks in #318
- Monorepo implemented with Turborepo by @volovyks in #323
- Use uint8array by @ailisp in #308
- move IntoStorageKey alike feature to lib by @ailisp in #329
New Contributors
- @vunderkind made their first contribution in #272
- @waynenilsen made their first contribution in #282
- @DavidM-D made their first contribution in #298
- @DerekTBrown made their first contribution in #303
- @nsejim made their first contribution in #287
Full Changelog: v0.6.0...v0.7.0-2
v0.6.0
v0.6.0-0
Highlights:
- Collections are typed now
- High-level promises design improved
- BigInt serialization added
- Lots of minor fixes, simplifications, and improvements
Commits:
- cross platform post-install (#266) 02cfc38
- Merge pull request #263 from petarvujovic98/develop 04717e5
- feat: Improve CLI output further 3672a68
- Merge pull request #262 from petarvujovic98/develop fd6db41
- Merge branch 'develop' into develop d361888
- Merge pull request #253 from near/ft-example-improvement 56d31cc
- save numerical values as bigint 0adb4cc
- Merge branch 'develop' of https://github.com/near/near-sdk-js into ft-example-improvement dabae98
- implement constructor d295b6e
- feat: Change
Middleware
interface 79a9ecb - feat: Middlewares addition a860555
- feat: Improve CLI output (#261) 8f676ae
- chore: Rename build workflow job 1893d16
- feat(internal): Improve script running bf0c358
- Merge pull request #260 from near/promise-index-type dc6f07b
- Merge branch 'develop' of https://github.com/near/near-sdk-js into ft-example-improvement 44b77a1
- fix never type 63660ec
- format 32cf312
- Make PromiseIndex a nominal typing, require explicit construction c49abf5
- use dynamic storage on accountId length 0f05f83
- format code 972cb40
- lint ft contract 19fb884
- underscore FT helper class name 75cbb6a
- remove type from var names and add type to assertion params 7d27f50
- update to TS 5832324
- use high level promise API 5f21d33
- revert changes in yarn.lock 3f08b2a
- remove package-lock 1f78279
- abstract repeated assertions d4e443d
- remove internal send near same account as contr assert ba5f8d0
- add validation for accountId in init 9f6619a
- remove supply === 0 assertion from init 97842a0
- Merge pull request #257 from petarvujovic98/develop 0d9023c
- Merge pull request #251 from near/nested-example 24628dc
- Merge branch 'develop' into nested-example 200c1d1
- Merge pull request #255 from Olyno/fix/node16 513d8ab
- Merge branch 'develop' into nested-example 729edd9
- Merge branch 'develop' into fix/node16 5dc735e
- Improve build tools (#252) af2e5b8
- chore: Fix ESLint warnings 7e0e909
- feat: Add Babel config programmaticaly 20a65f6
- fix: node 16.6.0 issue 4fc29ce
- remove todo comment 5a4428d
- improve ft example e895c58
- Merge branch 'develop' into nested-example 68360d3
- Fix #247 (#249) 71f8b4f
- Add nested and nested nested collection example a725921
- Merge pull request #228 from petarvujovic98/develop e2776a5
- fix: Fix lints in utils c9bb9f1
- feat: Improve date serialization 74159a8
- feat: Add more generic serialization d843af6
- chore: Update examples b10bb1d
- fix: Fix ESLint errors 91684ae
- fix: Add affected build files e5824a7
- chore: Improve types and reformat exporter aab75a2
- chore: Add type definitions for @babel/traverse 3b82668
- chore: Fix ESLint warnings b6a3866
- chore: Add type definitions for lodash-es a9cb69d
- feat: Add generalized serialization a3859dc
- chore: Update tests f56233c
- fix: Add brand check on deserialization ee7e0f6
- feat: Add BigInt serialization 6afa6c1
- Merge pull request #213 from petarvujovic98/develop 06c9ed6
- chore: Fix linting and formatting 89678ea
- fix: Fix linting errors and ESLint config e0c4ceb
- chore: Add formatting checks to Lint workflow 58f0966
- chore: Add linting job to CI ca1d1d4
- fix: Add build for API refactor bfde857
- fix: Fix parameter types 1f2af4b
- chore: Fix formatting 16b3f4d
- feat: Refactor CLI tools 0a9c285
- feat: Refactor build tools dba601b
- feat: Refactor API internally 962335b
- feat: Refactor high level promises b769d5f
- feat: Refactor collections 95fb5ad
- feat: Update utils e2639a7
- chore: Update ESLint configuration cedd904
- chore: Add ESLint and Prettier e8093da
- Fix: maps, sets and vector types (#203) e8d1288
- set twise test added (#209) 0719fed
- Merge pull request #219 from near/check-build-included c77f842
- Merge branch 'develop' into check-build-included c386a5b
- run ci also on pull request for external contributors (#221) 84b833f
- Merge branch 'check-build-included' of github.com:near/near-sdk-js into check-build-included 4fb52fa
- build on pull request f0c2d89
- Merge branch 'develop' into check-build-included b3930e8
- rename plain object -> class instance operation to "reconstruct" (#218) 5bf76fb
- Merge branch 'develop' into check-build-included 8de8c59
- always kill sandbox process (#220) b827ceb
- update yarn.lock 8e2dd3d
- git status c0c5cea
- check in ci that yarn build generated files are included/updated f278033
v0.5.0
Highlights:
- get/set in unordered map more efficient (state breaking)
- prommiseResult() return Bytes instead of a complex type and can throw errors
- docs updated
Commits:
- prommiseResult throws an error commit
- update readme to include recently added features. correct some api ty… commit
- Merge pull request from near/serhii/promise-result commit #208
- (state breaking) make get set in unordered map more efficient commit
- Merge pull request from near/new-unordered-map Merge pull request #212
v0.5.0-1
Highlights:
- high-level promise API
- privateFunction parameter in @call decorator
- payableFunction parameter in @call decorator
- includeBytes that helps factory contract
Commits:
- Merge pull request #206 from near/include-bytes 6ec568c
- Merge branch 'develop' into include-bytes 40c502b
- add missing file c2d098c
- add includeBytes "macro" that helps factory contract feac209
private
andpayable
functionality (#204) 5667584- Merge pull request #201 from near/highlevel-promise 3d20fae
- add highlevel promise api tests d7c017f
- Add highlevel promise API 4116745
v0.5.0-0
Highlights:
Init()
is not required by default, now we have arequireInit
flag in NearBindgen- No need in
default()
function in each contract - No need to
extends NearContract
. Class is deleted, and logic is moved toNearBindgen
- Added @initialize decorator for
init
functions. Function panics if called more then once - Now constructor is expected to be simplistic. No parameters, no side effects, only variable declarations
- It expected to declare all variables you want to serialize/deserialize in constructor
- added all rust sdk non-deprecated types
near.panic()
API is deleted, usethrow Error()
instead
Commits:
- Merge pull request #200 from near/near-contract-deletion ca8c480
- near-bingen tests added a6e4341
- counter low level fixed b449518
- /tests fixed 714f783
- counter examples fixed, init deleted 5d60320
- cross-contract-call example fixed 07f29e2
- nft example refactored 201ebc3
- status-message-collections refactored 4c77582
- parking-lot example refactored 579f7ca
- ft example refactored 3d8ac7c
- funcgible-toke-lockable example fixed 589f789
- ft lockable refactored f4499e5
- counter, status message, and cross-contract examples refactored cc96720
- requireInit works 49b2a46
- NearBindgen refactored to factory decorator b37222e
- counter-ts refactored d6bb14f
- Babel calls use NearBindgen static methods ab89e65
- babel plugin logic fixed 4a1fd14
- NearContract base class deleted 8d6affb
- fix: README add reference to create-near-app (#197) 422b34b
- Merge branch 'master' into develop 2fb1555
- ignore /lib in git diff (#192) 94f39b8
- add promise_batch_action_function_call_weight (#186) 2e6bfad
- uint64 and uint128 overflow tests (#190) 6b7624c
- near-workspaces 3.2.1 (#187) a89f4fc
- Idiomatic js length for collections (#180) f30c813
- add all rust sdk non-deprecated types (#181) 663354e
- drop jsvm (aka enclave) (#183) bb02965
- Update CODEOWNERS 9f865cb
- make UnorderedMap and Set helper methods private (#179) d09554b
- es2020 target in tsc to allow bigint literal (#176) 2e9e197
- near.panic() deleted (#171) 1db2e87