summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* fix code-block test bugs: fix #17183, fix ↵Timothee Cour2021-02-263-2/+21
| | | | | | | https://github.com/timotheecour/Nim/issues/620 (#17184) * fix code-block test bugs: fix #17183, fix https://github.com/timotheecour/Nim/issues/620 * cleanup
* Fix unicode.split with seperators examples (#17176)zetashift2021-02-261-58/+25
| | | | | | | | | | | | | | | | | | | | | | * Fix unicode.split with seperators examples https://nim-lang.org/docs/unicode.html#split.i%2Cstring%2CRune%2Cint didn't work with the set constructor `{}` so replaced it with a string that's converted to an openArray compatible type containing `Rune`s. * Add runnableExamples to unicode.split * Add runnableExamples to split with single separator too * Simplify runnableExamples unicode.split * Improve the rest of the runnableExamples with the simplified code * Simplify runnableExamples of unicode.split even more * Formatted unicode.split example * Update lib/pure/unicode.nim Co-authored-by: zetashift <rishi2@laptop.localdomain> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* hashes: support object default hash (#17175)Timothee Cour2021-02-263-18/+62
|
* improve docs for sugar.collect (#17188)Timothee Cour2021-02-261-24/+29
|
* make jsconsole.assertion errors less confusing in logs (#17179)Timothee Cour2021-02-251-1/+1
| | | | | | | * make jsconsole.assertion errors less confusing in logs * address comments * fixup
* clarify the docs of existsOrCreateDir a bit (#17182)flywind2021-02-251-4/+3
| | | | | | | * remove unnecessary when statement * remove outdated codes * clarify the docs a bit
* clean up wrapnilsflywind2021-02-251-1/+0
|
* refs #17114: workaround for arm64 which should segfault but does not (#17178)Timothee Cour2021-02-252-1/+2
| | | | | | | * refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* mark inline (#17180)flywind2021-02-241-2/+2
|
* use single backtick (#17181)flywind2021-02-2410-381/+381
|
* `std/options`: `$some(3)` is now `"some(3)"`, etc. (#17147)Timothee Cour2021-02-246-20/+29
| | | | | | | * std/options: $some(3) is now "some(3)", not "Some(3)", `$none(int)` is now `"none(int)"` instead of `"None[int]"` * fix tests * disable optionsutils
* asyncjs: add `then`, `catch` for promise pipelining (#16871)Timothee Cour2021-02-247-24/+166
| | | | | | * asyncjs: add then * improve tests, changelog, API * fix cryptic windows error: The parameter is incorrect * address comments
* remove deprecated stuff in unittest module (#17156)flywind2021-02-242-43/+48
| | | | | | | | | * remove unnecessary when statement * remove outdated codes * remove deprecated stuff in testament * fix
* compiler/installer.ini: package cacert.pem on Windows [backport:1.2] (#17172)alaviss2021-02-241-0/+1
| | | | | | | | | Follow up of https://github.com/nim-lang/nightlies/commit/5dc544e1f521e94874c22ee5209d38460b968243 After updating windeps.zip, it appears that Windows' build was unchanged. As it turns out, cacert.pem is not set for packaging by the compiler package manifest. This commit add cacert.pem to the Windows package.
* fixes #17170 (#17171)Andreas Rumpf2021-02-243-1/+37
|
* wrapnils: add `??.` which returns an `Option` (#16931)Timothee Cour2021-02-243-67/+73
| | | | | | | * wrapnils: add option-like API with ??., isSome, get * fix test after rebase * cleanups * fix changelog * address comments regarding get vs unsafeGet
* fix #17159 items(cstring) works in VM (#17160)Timothee Cour2021-02-244-44/+156
| | | | | | | | | * fix #17159 items(cstring) works in VM * improve test coverage tests/stdlib/tcstring.nim; add helpers: whenRuntimeJs, whenVMorJs * document items(cstring) * address comments
* close #14581 add testcase (#17169)flywind2021-02-241-0/+25
| | | | | | | * remove unnecessary when statement * remove outdated codes * close #14581
* cleanup tests/stdlib/tstring.nim (#17158)Timothee Cour2021-02-241-98/+82
| | | | | | | * cleanup tests/stdlib/tstring.nim * cleanup tests/stdlib/tstring.nim * cleanup rest of test
* close #15563 add testcase (#17168)flywind2021-02-241-0/+18
| | | | | | | | | | | | | | | | | * remove unnecessary when statement * remove outdated codes * close #15563 * Update tests/typerel/t15563.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * address comments * tiny Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* new-style concepts implementation, WIP (#15251)Andreas Rumpf2021-02-2419-59/+528
| | | | | | | | | | | | | * fixes #15210 [backport:1.2] * make tests green * make ordinal work * makes Swapable test compile * make Indexable example work * concepts: 'self' is now 'Self' * concepts: make Dictionary example compile * document the new concept implementation * concepts: make typeDesc work properly * concepts: allow documentation comments (d'oh)
* add strbasics.strip (#16280)flywind2021-02-244-0/+226
|
* [stdlib] make cookies module modern (#17116)flywind2021-02-242-14/+34
| | | | | | * update cookies module * introduce sameSite.Default Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
* fixes yet another SSL problem on Windows [backport:1.2] (#17167)Andreas Rumpf2021-02-241-1/+1
|
* use single backtick (#17166)flywind2021-02-2312-305/+305
|
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-236-6/+58
| | | | | | | * add enumutils.items for enum with holes * changelog * ref in lib.rst * use `type SomeSparseEnum* = (not Ordinal) and enum` instead of concept * address comment: rename back to enum with holes
* document type bound operators (#17063)Timothee Cour2021-02-232-2/+45
| | | | | | | * document type bound rountines * address comments * Update doc/manual.rst Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* remove tests/deps/ (#17132)Timothee Cour2021-02-2349-27270/+26
| | | | | | | | | * remove tests/deps/ * fix tests * fix tests/manyloc/keineschweine/lib/zlib_helpers.nim * fixup
* fix `UnusedImport` for `nim c compiler/nim` (#17152)Timothee Cour2021-02-231-3/+4
|
* Fixes #17039 - ldObj checks node/nodeAddr access (#17123)Saem Ghani2021-02-232-1/+11
| | | | | | Checked field expressions, such as an object variant field access results in occasionally broken address analysis crashing the VM. This guard added here mimics guarded access in ldObjAddr as well. This is to prevent a crash, while a fix is devised.
* A few rst doc fixes (#17151)Danil Yarantsev2021-02-232-2/+2
| | | | | * Fix a couple of rst formatting issues * no need for the extra space
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-225-6/+50
| | | | | | | | | | * add simpler to use readChars overload * use new readChars overload * Update lib/wrappers/openssl.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <xzsflywind@gmail.com>
* Improve the ropes module (#17145)konsumlamm2021-02-222-117/+130
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-222-5/+34
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* when statements branches exit early (#17143)Saem Ghani2021-02-223-0/+72
| | | | | When statement branches exit early outside of nimvm. In nimvm it seems that all sides of the branches must be evaluated as the code gen happens at a later stage, this remains intact.
* Add example for pattern matching on options (#17120)konsumlamm2021-02-221-21/+49
| | | | | | | | | | | * Add example for pattern matching on options * Use code-block * Apply suggestions * Use block comments * Fix example
* fix prelude regression refs #16238: `include prelude` doesn't interfere with ↵Timothee Cour2021-02-223-42/+16
| | | | | | | | | `nim doc` (#17111) * fix bug1 from #16238 nim doc now works with include prelude * fix for windows * fixup
* [JS + docs] improve std/monotimes module (#17103)flywind2021-02-222-43/+49
|
* testament: support disabled:osx as alias to disabled:macosx (#17124)Timothee Cour2021-02-223-4/+4
|
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-225-132/+159
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* remove outdated codes (#17140)flywind2021-02-222-2/+0
| | | | | * remove unnecessary when statement * remove outdated codes
* fix #17118 (#17119) [backport:1.2]flywind2021-02-222-19/+30
| | | | | * fix js unsigned integer * Use `std` prefix for standard library modules * fix #17118
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-223-44/+48
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* important_packages: document that packages tested should ideally have recent ↵Timothee Cour2021-02-221-1/+15
| | | | release tags (#17134)
* use single backtick (#17141)flywind2021-02-2111-68/+68
|
* followup #17077: also use assert instead of doAssert for `code-block` rst ↵Timothee Cour2021-02-211-1/+2
| | | | blocks intended to be used as `runnableExamples` (#17122)
* Split last read and first write analysis (#17137)Clyybber2021-02-211-20/+42
| | | | | | | | * Split last read and first write analysis This improves performance by 10% for some cases. * Remove outdated comments
* remove unnecessary when statement (#17135)flywind2021-02-212-13/+17
|
* use single backtick (#17133)flywind2021-02-2110-103/+103
|
* promote std prefix in docs (#17128)flywind2021-02-209-41/+41
|