summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* merge BuildMode into SuccessX, remove code duplication w drnim, add useful ↵Timothee Cour2021-06-141-0/+1
| | | | | | | | | | | info to successx, add gc to compilesettings (#18252) * merge BuildMode into SuccessX, add more info * refactor duplicated with drnim * fixup * address comment
* Improve httpClient docs on SSL cert verification (#15201)Federico Ceratto2021-06-131-3/+16
| | | | | | | | | * Improve httpClient docs on SSL cert verification Cert verification is enabled by default after CVE-2021-29495 * Update httpclient.nim Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* fix #7717 roundtrip float to string; fix `parseFloat` for js (#18248)Timothee Cour2021-06-131-48/+41
| | | | | | | * refs #7717 roundtrip float to string * make parseFloat more correct * improve float tests * improve float tests * cleanup
* use more meaningful name than "workaround14447" (#18237)Miran2021-06-111-1/+1
|
* fix #9437(fix `re.replace` wrong behaviour) (#17546)flywind2021-06-101-2/+18
| | | | | * fix nim js cmp fails at CT * fix
* #18216 make moveDir work across partitions on windows (#18223)Fröhlich A2021-06-101-19/+25
| | | | | | | * return false if AccessDeniedError in tryMoveFSObject - fixes #18216 * add moveDir & moveFile tests * rename `isMoveDir` parameter to `isDir`
* fixes #18220 (#18227)Andreas Rumpf2021-06-101-1/+1
|
* avoid re-exporting options from std/wrapnils (#18222)Timothee Cour2021-06-101-1/+1
|
* fixes #18088 (#18209)Andreas Rumpf2021-06-071-1/+1
|
* alternative to #18185 (#18206)flywind2021-06-071-1/+4
|
* change mimedb stroe stringtable to orderedtable (#18065)Bung2021-06-071-3/+4
| | | | | | | * change mimedb stroe stringtable to orderedtable * Update lib/pure/mimetypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix 18186 with adding importc _umul128 (#18200)slangmgh2021-06-072-1/+3
|
* up to 20x faster jsonutils deserialization (#18183)Timothee Cour2021-06-051-6/+6
| | | | | * up to 20x faster jsonutils deserialization * noinline
* rst: remove `roSkipPounds` option (#18175)Andrey Makarov2021-06-051-24/+4
|
* add `dom.scrollIntoView` with options; refs #18093 (#18181)Rainbow Asteroids2021-06-051-0/+6
|
* macros.treeRepr + friends: collapse SymChoice (#18072)Timothee Cour2021-06-051-22/+41
| | | | | | | * macros.treeRepr + friends: collapse SymChoice * make repr+friends work with invalid symchoice nodes * address comment
* Ref #18177 - lbgc.so.5.0 on OpenBSD 6.9 (#18180)Euan2021-06-041-1/+1
|
* fix #7295: use move(result) inside template to avoid copy with --gc:refc ↵Timothee Cour2021-06-041-10/+10
| | | | (#18168)
* workaround bug in sharedtables.withValue to unblock frozen CI on OSX (#18172)flywind2021-06-041-0/+4
|
* simplify extccomp.nim json logic via jsonutils; fix #18084 (#18100)Timothee Cour2021-06-031-1/+17
| | | | | | * simplify extccomp.nim json logic via jsonutils * fix #18084 * simplify further * workaround for bootstrap that can be removed after updating csources_v1 >= 1.2
* Revert "add missing import to asynchttpserver's example" (#18164)flywind2021-06-031-1/+1
| | | This reverts commit 7ef364a402d3d827f10c893280f8dc7b9ef056f5.
* clarify what a 'monotonic' timestamp is (#18163)Andreas Rumpf2021-06-031-3/+2
|
* add missing import to asynchttpserver's examplenarimiran2021-06-031-1/+1
|
* Improve db_postgres iterators (#18144)Artem Klevtsov2021-06-031-62/+117
| | | | | | | | | | | | | | | * Fix pqSetSingleRowMode case. Add links to the docs * Add missing PGContextVisibility enum * Remove unused PGContextVisibility enum * Improve db_postgres iterators * Fix instantRows with DbColumns. Cosmetics. * Reduce copy&paste in db_postgres * Move pqclear inside loop
* reuse algorithm.fill while building SkipTable (#18138)n5m2021-06-031-12/+2
| | | | | | | | | * reuse algorithm.fill while building SkipTable * Update lib/pure/strutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* added lib/deps.txtAraq2021-06-031-0/+14
|
* added float32 schubfach algorithm; wip (#18155)Andreas Rumpf2021-06-033-0/+468
| | | | | * added float32 schubfach algorithm; wip * fixes #18418
* Ref #17697 improve withValue docs (#18154)flywind2021-06-031-31/+50
| | | | | * Ref #17697 improve withValue docs * address comments
* [std/tables] remove unnecessary `do: ` (#18160)flywind2021-06-021-10/+16
|
* [std/hashcommon]improve docs a bit (#18153)flywind2021-06-021-3/+3
| | | | * reduce duplicated deprecated messages
* fix #16993, #18054, #17835 runnableExamples now works with templates and ↵Timothee Cour2021-06-021-29/+18
| | | | nested templates (#18082)
* use dragonbox algorithm; alternative to #18008 (#18139)Andreas Rumpf2021-06-012-46/+1398
| | | | | * use dragonbox algorithm; alternative to #18008 * removed unsafe code
* docs: Latex generation improvements (#18141)Andrey Makarov2021-06-012-62/+96
| | | | | | | * docs: improve Latex generation * make it work on Windows + fix ] escaping * minor fixes with escapes and style
* close #18129 Add setCurrentException for JS backend (#18145)flywind2021-06-011-0/+3
| | | | | | | | | | | * [std/re] make interface consistent * tiny * revert * close #18129 add setCurrentException * changelog entry
* [std/re] fix findBounds and find procs (#18028)flywind2021-05-311-2/+2
| | | | | | | * [std/re] make interface consistent * tiny * revert
* jsonutils.toJson now serializes JsonNode as is by default (#18097)Timothee Cour2021-05-311-4/+16
| | | | | * jsonutils.toJson now serializes JsonNode as is (without deep copy nor treating it as a regular ref object) * JsonNodeMode
* add `os.getCacheDir` (#18126)Timothee Cour2021-05-311-6/+38
| | | | | | | * add `os.getCacheDir` * fixup * address comments
* improve fast returns of find and rfind (#18127)n5m2021-05-311-1/+3
|
* document macros.unpackVarargs (#18106)Timothee Cour2021-05-311-0/+15
| | | | | | | * deprecate macros.unpackVarargs * un-deprecate unpackVarargs and add docs+runnableExamples * update examples + tests with varargs[typed]
* dont silence hints in system.nim (#18034)Timothee Cour2021-05-301-2/+2
|
* hashes for refs should be an opt-in feature (#18098)Miran2021-05-301-1/+1
|
* close #16569: deprecated `reversed(a, start, last)` overload, use ↵Timothee Cour2021-05-301-30/+11
| | | | | | | | | toOpenArray instead (#18047) * close #16569: deprecated reversed overload, use toOpenArray instead * [skip ci] change wording in changelog per review * fixup
* Move async example to asynchronous version of proc (#18078)xioren2021-05-241-7/+14
| | | | | | | | | | * improve runnableExamples in std/httpclient * Add synchronous example. * Update lib/pure/httpclient.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* close #18009 parseJson JInt vs JFloat; preserve -0.0 as JFloat to ↵Timothee Cour2021-05-231-1/+1
| | | | distinguish from 0.0 (#18067)
* docs: make inline markup more compatible with Markdown (#18053)Andrey Makarov2021-05-213-50/+99
| | | fixes https://github.com/timotheecour/Nim/issues/739
* asyncdispatch+stackTraceOverride: fix premature collection (#18039) ↵Ștefan Talpalaru2021-05-192-15/+33
| | | | | | | | | | | | | | | | | | | | | | [backport:1.2] Copying StackTraceEntry instances when nimStackTraceOverride is defined breaks the link between a cstring field that's supposed to point at another string field in the same object. Sometimes, the original object is garbage collected, that memory region reused for storing other strings, so when the StackTraceEntry copy tries to use its cstring pointer to construct a traceback message, it accesses unrelated strings. This only happens for async tracebacks and this patch prevents that by making sure we only use the string fields when nimStackTraceOverride is defined. Async tracebacks also beautified slightly by getting rid of an extra line that was supposed to be commented out, along with the corresponding debugging output. There's also a micro-optimisation to avoid concatenating two strings just to get their combined length.
* make strformat part of the prelude (#18046)Andreas Rumpf2021-05-191-1/+1
|
* ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] (#18040)Andreas Rumpf2021-05-181-0/+4
| | | | * ARC: fixes memory leaks with newSeq used in a loop [backport:1.4] * Update tests/arc/tnewseq_legacy.nim
* jsonutils: add customization for toJson via `ToJsonOptions`; generalize ↵Timothee Cour2021-05-182-13/+95
| | | | | | | | | | | | | | | | | | | symbolName; add symbolRank (#18029) * jsonutils: add customization for toJson via `ToJsonOptions` * add enumutils.symbolRank * lookup table implementation for HoleyEnum * cleanup * changelog * fixup * Update lib/std/jsonutils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* add sink and lent annotations for xmltree and streams (#18037)Antonis Geralis2021-05-182-16/+16
|