summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* disable chronos (#17131)flywind2021-02-201-2/+3
|
* refs #17107 use 2 instead of 3 parallel jobs for openbsd (#17108)Timothee Cour2021-02-204-37/+4
|
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-207-11/+28
| | | | | * move prelude so that `include std/prelude` also works * add test
* Improve the strformat module (#17106)konsumlamm2021-02-202-692/+657
| | | | | | | | | | | | | | | | | | | | | | * Improve the strformat module Improve documentation Use runnableExamples * Fix overflow error for low(int64) Add test * Use assert in runnableExamples * Improve tstrformat Put tests in proc & test VM Put tests in blocks Add c, js targets * Use doAssert in tests * Disable JS & VM tests
* enable bsd for tsetutils; improve setutils API (#17098)Timothee Cour2021-02-202-7/+12
|
* important_packages: add fusion (#17094)Timothee Cour2021-02-201-0/+3
|
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-209-17/+72
|
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-202-9/+32
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* use single backtick (#17115)flywind2021-02-2010-174/+174
|
* [nep1] Use `std` prefix for standard library modules (#17105)flywind2021-02-191-1/+4
|
* [backport:1.2] update nimble commit hash (#17109)Miran2021-02-192-4/+4
|