- No changes from release candidates
- Added
update_tagstoAction. - Added support for dynamically addressing different API hosts for individual ledgers. Internal APIs only, works automatically.
- Added transaction tags. More info
- Updated
User-Agentheader to besequence-sdk-ruby/#{VERSION}. - Updated copyright year in LICENSE to be 2018.
- Removed development dependency Bundler Audit.
- Removed deprecated
.[list|sum].allcode.
- Paginating objects using
.[list|sum].allhas been deprecated; the new interface is Ruby'sEnumerableon the result of.[list|sum}e.g..[list|sum].to_aand.[list|sum].each. This gives the calling code control to break out of the loop if needed, without blocking until all pages are requested from the API.
- Removed assets, balances, contracts, and all other deprecated code.
- Added
Stats#ledger_type. - Upgraded minimum required Ruby version to 2.3. Ruby 2.2 is now EOL and has received its final security patch.
- Switched from options hash parameter method signatures to named parameters.
- The
asset_countattribute onStatshas been deprecated; the new field isflavor_count. - The
contractsattribute onTransactionhas been deprecated. UseToken::ClientModule#listinstead.
For full details on the 1.5 release and how to migrate your code, visit the Sequence changelog.
- Added
Feeds. More info - The
keysfield onAccountandFlavorhas been deprecated; the new field iskey_ids, containing key ID strings. - Optimize Ruby garbarge collection with
# frozen_string_literal: true"magic comments". Transaction#reference_datahas been deprecated; UseAction#tagsinstead.action.snapshot.*_tagscan now be accessed with dot syntax.
For full details on the 1.4 release and how to migrate your code, visit the Sequence changelog.
- Added
tagstoAction. - Added
action_tagsonTransactionbuilder's actions. - Added timestamp inequalities in filters.
reference_dataonTransactionbuilder's actions has been deprecated. You can now useaction_tagsinstead.
For full details on the 1.3 release and how to migrate your code, visit the Sequence changelog.
- Added
Tokens. More info. - Added
token_tagsonTransactionbuilder'sissue/transferactions. - Added
filteronTransactionbuilder'stransfer/retireactions. - Updated pagination interfaces:
.[list|sum].page(size: size)to retrieve one page..[list|sum].page(cursor: cursor)to retrieve another page..[list|sum].allto iterate over all items.page_sizehas been deprecated; you can now use.page(size: size). - Querying balances has been deprecated; you can now use
tokens.sumto query balances in an account. - Querying contracts has been deprecated; you can now use
tokens.listto list tokens in an account.
For full details on the 1.2 release and how to migrate your code, visit the Sequence changelog.
Assethas been renamed toFlavor; all references to assets have been deprecated.- The
codefield on API errors has been deprecated; the new field isseq_code, containingSEQXXXerror codes. - The
source_account_tags,destination_account_tags, andasset_tagson action objects have been deprecated; All tags on actions are now available within a newAction#snapshotobject.
For full details on the 1.1 release and how to migrate your code, visit the Sequence changelog.
- Added support for setting a user-provided id on key and account objects.
- The
aliasfield on key and account objects has been deprecated. - The
ledgerfield when creating an API client has been deprecated; the new field is namedledger_name. - Added full support for listing and summing actions.
- Ruby >= 2.2 is required. We recommend upgrading to Ruby >= 2.3.
- New interface
ledger.actions.listandledger.actions.sumavailable. More info. - Invalid parameters raise
ArgumentErrors when creating or querying objects. - Improved retry logic for network errors.
Sequence::Clientinstances now use persistent TLS connections.- Set lower HTTP timeouts. This can be configured. See below.
- Private interfaces more comprehensively annotated as YARD
@private. - Rubocop linting applied to source code.
Sequence::Client.new(
ledger: 'development',
credential: '...'
open_timeout: 1,
read_timeout: 1,
ssl_timeout: 1,
)-
Added support for new access control permissions. When creating a client, you now provide
ledgerandcredentialoptions to connect to a specific ledger.Authentication with the previous style of access tokens has been removed.
See https://dashboard.seq.com/docs/5-minute-guide#instantiate-sdk-client for more information.
- Updated YARD doc strings
- Removed the
ttlandbase_transactionattributes fromSequence::Transaction::Builder.