Juan Carlos
9465b5db44
Clean up macros ( #14959 )
2020-07-14 16:44:56 +02:00
Bung
f999f916f3
add missing props,procs ( #14978 )
2020-07-14 13:53:41 +02:00
Hendrik
9ed0dbfa6e
fix index error ( #14974 )
...
Co-authored-by: Hendrik Albers <mail@hendrik.dev >
2020-07-14 13:15:22 +02:00
Timothee Cour
e07d661d16
fix #14475 ; unittest.require now works with nim c; require and check now works with -d:nodejs ( #14676 )
...
* fix #14475 ; make unittest work with -d:nodejs
* fixup
* fixup
* disable inim, delaunay which failed after unittest.require got fixed
* re-enable tests that have been fixed
2020-07-14 13:14:32 +02:00
Miran
f4f21c89e5
asyncftpclient.nim - don't assume a sufficiend line length ( #14973 )
2020-07-14 02:18:02 -04:00
Andreas Rumpf
6cc0061a72
optimize the new nimPrepareStrMutationV2 with inlining ( #14969 )
2020-07-12 16:50:56 +02:00
flywind
9ec9a31f46
Fix #12759 ( #14967 )
...
* add testcase for #5926
* fix #12759
2020-07-12 03:31:03 -04:00
Clyybber
4a1128d16c
Move wasMoved out of =destroy
2020-07-10 13:36:02 +02:00
treeform
399b2e3134
Add missing dom.nim things ( #14944 )
2020-07-09 09:18:27 +02:00
flywind
3db6d9ea0c
add docs and more tests for debug format strings ( #14861 )
...
* add debug format string
* remove try except
* add changelog
* add docs and more tests
* Update lib/pure/strformat.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
* minor
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com >
2020-07-08 22:21:30 +02:00
Miran
3de5296337
remove a condition that table size must be passed as power of 2 ( #14926 )
...
* remove a condition that table size must be passed as power of 2
* remove power-of-2 condition from sets and sharedtables
* remove power-of-2 condition from deques
* use 'correctSize' for both branches
* prettify changelog.md and fix typos
* add a changelog entry
* fix double-call of 'right-size'
* fix the same thing in sets.nim
* introduce a new internal proc `slotsNeeded`
Deprecate the public proc `rightSize`, which is not needed anymore.
Now it is an identity function, allowing the old code to work
correctly and without extra allocations.
2020-07-08 15:01:47 +02:00
Andreas Rumpf
87f6a9592c
fixes #14402 ( #14908 )
...
* fixes #14402
* added a test case
2020-07-08 08:21:55 +02:00
narimiran
e82a14b273
fix mistake in times.nim docs
2020-07-07 22:57:06 +02:00
Dominik Picheta
25ceacbe4f
Revert commit 3e843ab335. Closes #14930 .
2020-07-07 19:18:02 +01:00
ee7
a754160d65
tables.nim: Add named fields in smallest and largest ( #14919 )
...
The `smallest` and `largest` procs for `CountTable` returned a tuple
with named fields, but the same procs for `CountTableRef` returned an
anonymous tuple.
This commit makes those `CountTableRef` procs more consistent, and adds
a test.
Fixes : #14918
2020-07-06 14:02:03 +02:00
Araq
6f962a4b36
fixes #14830
2020-07-06 13:41:56 +02:00
narimiran
46aacf917f
Fix style inconsistencies due to the previous commit
2020-07-06 11:24:43 +02:00
narimiran
ebaf603c84
revert 0944b0f4
2020-07-06 10:55:51 +02:00
Juan Carlos
21b3ca636f
Fix logging tiny bug ( #14910 )
...
* Fix logging tiny bug
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Update changelog.md
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* https://github.com/nim-lang/Nim/pull/14910#discussion_r450012032
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
2020-07-06 04:00:25 -04:00
Timothee Cour
695154970d
deprecate existsDir; use dirExists instead ( #14884 )
2020-07-03 23:04:23 +02:00
Juan Carlos
4f6acf24ff
Add jsre ( #14870 )
2020-07-03 20:13:10 +02:00
Timothee Cour
dc5a40f3f3
{.deprecated: [existsFile: fileExists].} ( #14735 )
...
* {.deprecated: [existsFile: fileExists].}
* s/existsFile/fileExists/ except under deps
* workaround pending #14819
* fix test
2020-07-02 16:19:13 +02:00
Juan Carlos
d590611fc5
Clean out sharedlists ( #14857 )
2020-07-02 08:40:58 +02:00
Juan Carlos
cbcaf2bbc4
Clean out strutils ( #14859 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-07-01 23:16:50 +02:00
Timothee Cour
2867a33ebc
fix #14846 ; add macros.extractDocCommentsAndRunnables ( #14849 )
...
* fix #14846 ; add macros.extractDocCommentsAndRunnables
* fixup
* update tests
* address comment
2020-07-01 09:26:23 +02:00
Juan Carlos
05384efec5
Clean out sharedtables ( #14858 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-30 19:09:13 +02:00
Juan Carlos
a519f3b038
Removed asyncdispatch.newAsyncNativeSocket, was deprecated since 0.18 ( #14854 )
...
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-06-30 16:29:53 +02:00
alaviss
56b3d422b0
typetraits: features and fixes ( #14791 )
...
* typetraits: add support for nnkTypeOfExpr
* typetraits: don't wrap typedesc symbols in StaticParam
* typetraits: add nested generics support to genericParams
* typetraits: make genericParams understand array[I, T] whackiness
Also moved tests to ttypetraits
* typetraits: clarify comment on genericParams
2020-06-30 15:25:53 +02:00
Ray Imber
36fa79a524
Fix asyncdispatch drain behavior ( #14820 ) ( #14838 )
...
* Fix asyncdispatch drain behavior (#14820 )
* Changed test to use asyncCheck instead of discard after code review (#14820 )
* Added some debug statements to help understand what is happening in Azure.
* Removed debug statements and increased timeouts by 1 order of magnitude to account for slow Azure VMs
Co-authored-by: Ray Imber <ray@crankuptheamps.com >
2020-06-30 15:23:53 +02:00
flywind
8be54b8fa7
add debug fmt string like python's ( #14808 )
...
* add debug format string
* remove try except
* add changelog
2020-06-30 15:21:37 +02:00
Juan Carlos
04deb6c942
Clean out dom ( #14855 )
...
* Clean out dom
* Clean out dom
2020-06-30 10:08:16 +02:00
Timothee Cour
1b41c3122b
fix #13432 typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[] ( #14799 )
...
* typetraits.$: $(int,) is now (int,); $tuple[] is now tuple[]
* changelog
2020-06-29 09:34:05 +02:00
Juan Carlos
5d5df4a394
Clean out Deprecated proc ( #14797 )
...
* Remove and/or clean out Deprecated 'add' proc for floats
* Update a test
2020-06-29 09:33:07 +02:00
aguspiza
d968163cd1
SSL_CTX_load_verify_locations parameters are reversed ( #14815 ) [backport]
2020-06-29 08:50:37 +02:00
lqdev
5d5271b789
fixed #14839 ( #14840 )
2020-06-28 13:38:57 +02:00
rockcavera
252f668829
add a second asyncnet.recvFrom ( #14237 )
...
* add a second asyncnet.recvFrom
* fixes
* pre-allocating address
* add a new nativesockets.getAddrString()
2020-06-27 22:59:08 +01:00
Manuel Bojato
bc66788b3f
docs: Make ..<, .. ^ more discoverable ( #14835 )
2020-06-27 23:42:58 +02:00
Timothee Cour
90808877c5
testament: generic N-fold batching: windows CI 37mn=>16m ( #14823 )
...
* testament: run CI faster thanks to batching
* move ta_in, tstdin into existing tosproc
* move ta_out,tafalse,texitcode,tstderr into existing tosproc
* joinable osproc
* move tstdout into existing tosproc
* spec: batchable; fix tests
* fixup
2020-06-27 16:51:17 +02:00
treeform
f926dc53f1
Add all missing css properties to dom.nim. ( #14825 )
...
* Add all missing css properties
* remove extra space
2020-06-26 19:15:21 +01:00
treeform
baa80ca9d4
Add hasAttribute method to dom.nim. ( #14814 )
...
See: https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute
2020-06-25 14:45:37 -07:00
narimiran
13193b2964
turn 'runnableExample' into 'code-block' to make nightlies green
...
This example doesn't work on our nightlies CI.
Other procs in this module already use 'code-block'.
2020-06-25 16:55:11 +02:00
Timothee Cour
3e5743d6f7
add typetraits.elementType ( #14780 )
...
* add typetraits.elementType
* add a test for 0-sized seq
2020-06-24 22:31:07 +02:00
Timothee Cour
37081e2945
fromJson: support object variants ( #14694 )
2020-06-24 18:03:01 +02:00
Clyybber
302e3b7f44
CI: Install the pkg we cloned ( #14770 )
2020-06-24 17:27:46 +02:00
Miran
881d1ee57b
fix #14750 , don't allocate too much in newWideCString ( #14773 )
2020-06-23 16:15:37 +02:00
Andreas Rumpf
16bdc547b7
fixes #14760 ( #14769 )
2020-06-23 15:17:17 +02:00
Andreas Rumpf
da29222f86
init checks and 'out' parameters ( #14521 )
...
* I don't care about observable stores
* enforce explicit initializations
* cleaner code for the stdlib
* stdlib: use explicit initializations
* make tests green
* algorithm.nim: set result explicitly
* remove out parameters and bring the PR into a mergable state
* updated the changelog
2020-06-23 10:53:57 +02:00
Juan Carlos
8e54bc5b0c
Deprecate and/or remove ospaths ( #14767 )
2020-06-23 10:51:33 +02:00
Clyybber
03c8bbcc6e
Remove outdated comment and copy of length ( #14759 )
2020-06-22 22:05:18 +02:00
b3liever
59ba4d8c03
added normal variate function ( #14725 )
...
* added normal variate function
* change method only slightly faster
* changelog + since
Co-authored-by: b3liever <b3liever@yandex.com >
2020-06-22 20:48:33 +02:00