Commit Graph
594 Commits
Author SHA1 Message Date
Jaco Greeff 477be907d8 Compact support for decoding and decoding (#256) 2018-11-21 15:41:19 +01:00
Travis CI e23cadc193 [CI Skip] 0.32.22 2018-11-21 11:31:24 +00:00
Jaco Greeff 3bc1b7541b LICENSE and README updates (#254)
* LICENSE and README updates

* Remove duplicated definition

* Remove duplicated file
2018-11-21 12:26:38 +01:00
Travis CI ad9b46a5b9 [CI Skip] 0.32.21 2018-11-14 13:21:46 +00:00
Jaco Greeff 75c09a9fcf Bump dependencies (#250)
* Bump dependencies

* Bump deps
2018-11-14 14:16:51 +01:00
Travis CI 523ed4cd74 [CI Skip] 0.32.20 2018-11-14 12:53:23 +00:00
Luke Schoen dc07e267eb docs: Fix example in readme since we use default imports (#243) 2018-11-14 13:48:44 +01:00
Travis CI 0a33c5742f [CI Skip] 0.32.19 2018-11-14 12:31:44 +00:00
Luke Schoen 48008e2cc8 refactor: Extension of #231. Destructuring to combine imports (#237)
* refactor: Destructure imports together from same source in example util-crypto 01

* refactor: Destructure imports together example util-crypto 02. Avoid using default import. Show data to user

* refactor: Destructure imports together example util-crypto 03. Show data to user

* refactor: Split import over two lines looks cleaner

* fix: Address review comments. Update dependencies in examples
2018-11-14 13:26:53 +01:00
Travis CI 5c1df7214e [CI Skip] 0.32.18 2018-11-14 10:01:01 +00:00
Jaco Greeff 67f66a3c7f Encode address as/when required (#249) 2018-11-14 10:56:32 +01:00
Travis CI 9f22883585 [CI Skip] 0.32.17 2018-11-13 11:47:30 +00:00
Jaco Greeff 8f6b01adc5 Manual bump 2018-11-13 12:42:39 +01:00
Jaco Greeff 11b334b13e Re-add encode/decode exports 2018-11-13 12:38:43 +01:00
Jaco Greeff 18982b0c2d Expose address decoding/encoding on keyring (#248) 2018-11-13 12:35:31 +01:00
Travis CI 57938d22d8 [CI Skip] 0.32.15 2018-11-12 16:59:27 +00:00
Jaco Greeff 22f8df1fd0 Explicit Array<any> (#246)
* Explicit Array<any>

* Ordering

* Bump dev
2018-11-12 17:54:41 +01:00
Travis CI a8e39297b5 [CI Skip] 0.32.14 2018-11-12 15:27:49 +00:00
Amaury Martiny 7a43354ece isString true for String object (#245)
* Fix isString

* value is

* Fix isHex too

* Fix isHex

* Add hex test with String
2018-11-12 16:23:18 +01:00
Travis CI 6c85979c3a [CI Skip] 0.32.13 2018-11-10 10:42:02 +00:00
Jaco Greeff a9878a2049 Remove warning, add TODO for future checks (#244) 2018-11-10 11:37:28 +01:00
Travis CI 1a9ea424c4 [CI Skip] 0.32.12 2018-11-01 13:43:47 +00:00
Jaco Greeff 0ddac0abe0 Merge branch 'master' of github.com:polkadot-js/util 2018-11-01 14:39:20 +01:00
Travis CI a0dcd4eaa9 [CI Skip] 0.32.11 2018-11-01 13:33:44 +00:00
Jaco Greeff 6e9071bb54 Bump node.js in engines 2018-11-01 14:33:31 +01:00
Jaco Greeff 02d415532c Bump @polkadot deps 2018-11-01 14:29:05 +01:00
Travis CI 4635f1afe8 [CI Skip] 0.32.10 2018-10-25 12:12:35 +00:00
Jaco Greeff d0291db45e Bump yarn, bump dev/ts (#242) 2018-10-25 14:07:03 +02:00
Travis CI 410c7470fc [CI Skip] 0.32.9 2018-10-24 14:43:00 +00:00
Jaco Greeff 7153110410 Bump 2018-10-24 16:33:55 +02:00
Jaco Greeff 5130f4c78a Remove debug logging (MemoryDb) 2018-10-24 16:27:58 +02:00
Travis CI 0bae9bbb23 [CI Skip] 0.32.8 2018-10-24 14:06:04 +00:00
Jaco Greeff 0cb6e6c746 Bump deps (#240)
* Decrease MemoryDb verbosity

* Bump deps

* Bump
2018-10-24 16:01:49 +02:00
Travis CI 661e6c8e1b [CI Skip] 0.32.7 2018-10-24 12:37:50 +00:00
Jaco Greeff 5ce8f9185f Decrease MemoryDb verbosity (#238) 2018-10-24 14:33:20 +02:00
Travis CI 3b6d911455 [CI Skip] 0.32.6 2018-10-22 18:34:54 +00:00
Jaco Greeff 40f3ceb219 Bump dev 2018-10-22 13:41:38 +02:00
Travis CI 0dfd038df0 [CI Skip] 0.32.5 2018-10-19 15:51:10 +00:00
Jaco Greeff b53a677f81 Add .nojekyll for docs/ 2018-10-19 17:46:24 +02:00
Travis CI d7b83e3d91 [CI Skip] 0.32.4 2018-10-19 15:38:45 +00:00
Luke Schoen 1fb1f9d743 docs: Fixes #157. Add Gitbook documentation for Polkadot-JS Common (#231)
* fix: Remove prior docs attempt files

* docs: Add Gitbook docs for common repo with examples. See detailed comments

* Remove old attempt at docs in docs/ folders

* Add Typedoc config typedoc.js

* Add .nvmrc for easily switching Node.js version with NVM

* Add ESLint config .eslintrc.json and .eslintignore

* Fix in tsconfig.json so is keyring not util-keyring

* Update package.json with dependencies and script same as in polkadot-js/api

* Update root README fixing CI icons, adding guide same as in polkadot-js/api, and fixing link to keyring, not util-keyring

* Update root .gitignore with Gitbook build files same as in polkadot-js/api

* Add Gitbook docs structure same as in polkadot-js/api

* Add Gitbook examples for keyring, trie-db, util-crypto

* Add Gitbook outer summary for the menu, Readme, logo and styles same as in polkadot-js/api

* Add Gitbook config book.json

* docs: Remove db and util-rlp from Gitbook summary menu since RLP not in PoC-3

* docs: Add Typedocs with examples for db MemoryDb and DiskDb

* docs: Update db/ Readme with CI icons fixed, and indicating that no methods exposed in Common Docs

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Fix keyring package.json info to refer to common, not client

* fix: Updates license in 4x files in keyring/address folder with keyring, not util-keyring

* docs: Add Typedocs to Keyring class, pair function, and testKeyring function

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Update package.json moving @polkadot/db from devDependencies to dependencies

* fix: Update test to iterate array not object with forEach

* fix: Use semicolon instead of comma in tests to fix linting errors. Fix typo

* docs: Add Typedoc to Trie class

* docs: Add Typedoc to is functions

* docs: Update keyring Readme with CI icons fixed and link to Common Docs

* fix: Add return type to encodeAux function

* docs: Add Typedoc to encode function

* fix: Fix formatting of Typedoc example for root

* docs: Add Typedoc for genRoot

* docs: Add Typedoc for pairsUniq

* docs: Add Typedoc for getSharedLength

* docs: Add Typedoc for sharedPrefixLength

* fix: Fix formatting of Typedoc example for rootOrdered, asNibbles, fromNibbles

* fix: Various fixes to util-crypto. See commit detail comments

* Update root Readme with class and function info
* Fix typos and Typedoc examples
* Expose mnemonic by exporting it in an index.ts
* Fix naming from naclKeypair to naclKeypairFromRandom
* Fix typos
* Fix randomAsU8s to be randomAsU8a
* Fix spelling of bitLength

* fix: Various fixes to util-rlp. See detailed commit comments

* Update keyring Readme with CI icons fixed and link to Common Docs mentioning since RLP not in PoC-3 nothing exposed in Common Docs
* Add Typedocs
* Move Typedocs to different file so they appear in Common Docs

* fix: Various fixes to util. See detailed commit comments

* Update root Readme to use Yarn and list and explain exposed Common Docs methods
* Fix typos and Typedoc examples

* fix: Restore tests back using variable they were iterating over before

* docs: Move nested part of Summary to individual package Readme. Add Usage to Readmes

* fix: Add missing semicolon to existing test

* fix: Remove docs/gitbook folder and files since generated by CI

* feat: Update Gitignore to ignore CI-generated files like .html and docs/gitbook/ folder

* docs: Remove CI-icons from all packages within polkadot-js/common, except its root Readme

* fix: Update to incorporate changes from PR #233 and #229

* fix: Ignore build directories in Jest tests using modulePathIgnorePatterns

* fix: Remove useless docs/html from .gitignore since there is no html subdirectory

* fix: Update util-crypto README with link to mnemonicToSeed instead of toSecret

* docs: Update keyring create account example to show result to user

* fix: Update dependencies in examples so the examples work again

* fix: Update keyring example 02 load accounts not to use addFromAddress

* fix: Update .gitignore so it is suitable for both polkadot-js common and api

* fix: Adjust .gitignore after testing changes that work with polkadot-js api too

* fix: Resolve .gitignore to overcome FileNotFoundError: No README file (or is ignored)

* fix: Remove from Git tracking docs/.nojekyll since generated

* fix: Add lerna to gitignore to match api repo

* Revert to original .gitignore. Does not work without Gitbooks files Git tracked

* docs: Hide trie-db Examples since have limited use
2018-10-19 17:33:58 +02:00
Travis CI 1cb7bfd9b4 [CI Skip] 0.32.3 2018-10-18 13:27:21 +00:00
Jaco Greeff 65b8468e5b Import util via {...} (#236)
* Import util via {...}

* Fix test failures
2018-10-18 15:24:13 +02:00
Travis CI 3bb5a3ea04 [CI Skip] 0.32.2 2018-10-18 12:24:17 +00:00
Jaco Greeff 4d98a66f3e Bump dev, ignore docs (CI force add) (#234) 2018-10-18 14:20:48 +02:00
Travis CI 1fbfb32514 [CI Skip] 0.32.1 2018-10-18 08:33:53 +00:00
Jaco Greeff 57eddba598 Remove from* variants, move fromString to stringTo (#233)
* Remove from* variants, move fromString to stringTo

* Bump
2018-10-18 10:30:14 +02:00
Travis CI 35579c4d70 [CI Skip] 0.31.7 2018-10-18 07:27:00 +00:00
Jaco Greeff fd06d9f3c4 Add mnemonicToSeed (#229)
* Add mnemonicToSeed

* Add index emports
2018-10-18 09:23:26 +02:00
Travis CI 56e6b9469e [CI Skip] 0.31.6 2018-10-15 13:35:15 +00:00