summary refs log tree commit diff stats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Sugar improvements (#16802)konsumlamm2021-01-251-66/+63
| | | | | | | | | | | | | | | * Use runnableExamples in sugar Remove unnecessary import * Add trailing newline * Address nits * Remove unneccessary convolution * Change wording Co-authored-by: Clyybber <darkmine956@gmail.com>
* Small changes to std/sums (#16797)konsumlamm2021-01-251-13/+29
|
* make oids module better (#16704)flywind2021-01-252-26/+45
| | | | | | | * make oids modules better * Update lib/pure/oids.nim * fix
* remove unused warning (#16809)flywind2021-01-241-2/+2
|
* Fix an RST issues introduced in #16777 (#16798)konsumlamm2021-01-221-3/+3
|
* remove private checkSymlink (redundant with symlinkExists) (#16785)Timothee Cour2021-01-221-16/+12
|
* Improve the marshal module (#16777)konsumlamm2021-01-221-106/+28
| | | | | | | | | | * Improve marshal Use runnableExamples Refactor tests * Readd {.inheritable.} test Apply suggestions
* addQuitProc => addExitProc (#16765)Timothee Cour2021-01-224-9/+10
|
* typetraits: make genericHead docs reflect reality; use runnableExamples ↵Timothee Cour2021-01-221-17/+19
| | | | (#16776) [backport:1.4]
* Fix SIGSEGV in httpclient response body (#16766)Daehee2021-01-221-4/+6
| | | | | | | | | * initialize httpclient response bodyStream; prevent SIGSEGV when getBody is false * Update lib/pure/httpclient.nim * Update lib/pure/httpclient.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add std/setutils to lib.rst (#16791)konsumlamm2021-01-221-5/+10
| | | | | | | | | * Add std/setutils to lib.rst Improve doc comments for setutils * Adhere to the RST spec Use no UFCS in toSet
* Fix #16741 (#16783)Roman Inflianskas2021-01-221-22/+22
| | | | | | Move `downloadFileEx` out of `downloadFile` (solution, proposed by @Yardanico). Tested manually.
* fix #15628 (#16387)flywind2021-01-211-8/+17
| | | | | | | | | * done * Apply suggestions from code review * fixup Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* perpare for more compact bit operations in JS (#16728)flywind2021-01-192-7/+20
|
* intsets are here to stay (#16751)Andreas Rumpf2021-01-191-3/+1
|
* Improve documentation for stats (#16742)konsumlamm2021-01-191-87/+79
| | | | | | | | | * Improve documentation for stats * Address nits * Update lib/pure/stats.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* jsonutils.jsonTo: support opt (#16739)Timothee Cour2021-01-171-2/+2
|
* Improve documentation for packedsets (#16715)konsumlamm2021-01-162-140/+139
| | | | | | | | | * Improve documentation for packedsets Add more runnableExamples Add deprecated pragma to intsets Replace intsets with packedsets in lib.rst * Apply suggested changes
* minor improvement on math.nim (#16733)flywind2021-01-161-2/+2
|
* js: improve tests + some docs (#16727)Timothee Cour2021-01-162-2/+13
| | | | | | | | | | | * js: improve tests * _ * _ * _ * fixup
* promote math.isNaN (#16734)flywind2021-01-151-1/+1
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-1518-171/+148
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Improve documentation for the hashes module (#16720)konsumlamm2021-01-151-51/+73
| | | | | | | * Improve documentation for hashes * Fix runnableExamples * Apply suggestions
* followup for #16717: minimized example + improved comment (#16721)Timothee Cour2021-01-151-1/+3
|
* Add js BigInts (#16409)Juan Carlos2021-01-141-0/+193
| | | | | | | | | | | | | | | | | | | | | | | | | * Add BigInts * Renames tos plurals * Improve Stringifications * Update changelog.md Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * RunnableExamplerize * discard the discardable pragma * Several improvements from peer reviews, more docs * More doc, more test * More doc, more test * Better error message 'Error: usage of low is an {.error.} defined at jsbigints.nim' instead of just 'type mismatch JsBigInt' * is an overload, rename * proc to scare kids away * Update lib/js/jsbigints.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * https://github.com/nim-lang/Nim/pull/16409#discussion_r554365041 Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Transfer-Encoding:chunked tests (#16678)vabresto2021-01-141-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests and fix extra newlines in body * Fixes per comments * Slight rephrase per comments * Improvements per comments * Add getSocket to reduce test flakiness per comment * Remove unused lines from header * Add doc comment to getSocket per comment * Apply witchcraft to replace `discard Future` * Return HTTP 400 on bad encoding in request * Fix runnable example for getSocket * Fix import to fix runnable examples * Even more imports for the example * Better self documenting runnable example * Add missing import * Import from module with correct signature * Resolve port type mismatch
* fix #16706 (#16717) [backport:1.4]flywind2021-01-141-1/+3
|
* Fixes #16436 (#16695)Yuriy Glukhov2021-01-142-4/+27
| | | | | * Fixes #16436 * Comments addressed
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-131-47/+19
|
* Check for errors after sendPendingSslData (#16696)Yuriy Glukhov2021-01-131-6/+2
| | | | | * Check for errors after sendPendingSslData * Leftover comment removed
* refactor cmpNimIdentifier (#16611)flywind2021-01-133-9/+7
| | | | | | | | | * refactor cmpNimIdentifier * Apply suggestions from code review Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Clyybber <darkmine956@gmail.com>
* revive PR #16320 (CRLF fix); fix #16308; Update openssl.nim (#16648)Timothee Cour2021-01-121-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update openssl.nim Fix issue # 16308 * Update openssl.nim These are also related to Issues [#16308](https://github.com/nim-lang/Nim/issues/16308) * Update openssl.nim * Add files via upload SSL PEM_read_RSAPUBKEY check * Delete topenssl_rsa_private_key.pem * Delete topenssl_rsa_public_key.pem * Delete topenssl.nim * Add files via upload * Update topenssl.nim This test makes me dizzy. Variables such as' PRSA 'must be declared in advance, otherwise they will run incorrectly. The argument uses a cString, and string also makes an error. * Update topenssl.nim ``` lhf@lhf-pc:/media/lhf/D$ cat -e ./topenssl.nim import std/wordwrap$ import openssl$ ``` * Update topenssl.nim * dos2unix tests/stdlib/topenssl.nim Co-authored-by: lihaifeng <lihaifeng@wxm.com>
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-122-25/+27
| | | | | | | | | | | | | | | | | In case of malformed query string where there is `=` on the value, handle this character as part of the value instead of throwing an error. The following query string should no longer crash a program: key=value&key2=x=1 It will be interpreted as [("key", "value"), ("key2", "x=1")] This is correct according to latest WhatWG's HTML5 specification recarding the urlencoded parser: https://url.spec.whatwg.org/#concept-urlencoded-parser Older behavior can be restored using the -d:nimLegacyParseQueryStrict flag.
* Compile sqlite3 with -O3 flag (#16697)Yuriy Glukhov2021-01-121-1/+1
|
* Remove longestMatch in _WithPrefix iterators (#16689)konsumlamm2021-01-121-23/+15
|
* RST: implement internal targets (#16614)Andrey Makarov2021-01-113-99/+218
|
* Improve documentation of strmisc (#16665)konsumlamm2021-01-111-30/+30
| | | Simplify examples
* fix #16555, fixes #16405: len, high honors '\0' for cstring in vm (#16610)Timothee Cour2021-01-111-7/+13
|
* fix broken CI (#16663)flywind2021-01-101-1/+1
|
* Httpclient improvements (#15919)Antonis Geralis2021-01-102-108/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow passing Uri instead of strings * Teach httpclient about 308 * Deprecate request proc where httpMethod is string * More use of HttpMethod enum Also fix handling of 308, I forgot to add the hunk to the previous commit. * Well behaved redirect handler * Also remove Transfer-Encoding * Removed unused proc * Secure redirection rules Strip sensitive headers for cross-domain redirects. * Allow httpMethod to be a string again This way unknown http verbs can be used without any problem. * Respect user-specified Host header * Missed multipart argument. * Try another method * add changelog * Fix hidden deprecation warning, parseEnum failing * This is wrong * Have to do it manually, parseEnum is not suitable * Review comments * update Co-authored-by: LemonBoy <thatlemon@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Add support for Transfer-Encoding: chunked (#16636)vabresto2021-01-101-0/+44
| | | | | | | | | * Add support for Transfer-Encoding: chunked * Minor whitespace fixes * Use recv instead of recvLineInto * Undo changes to httpcore, inline changes
* Use func in lenientops (#16641)konsumlamm2021-01-091-15/+15
|
* DELETE requests should always have a content-length header (#16618)Joey2021-01-081-2/+5
| | | | | | | | | | * DELETE requests should always have a content-length header Not having DELETE in this list is causing hanging when trying to close webdriver sessions in [halonium](https://github.com/halonium/halonium/issues/10) and likely any other implementation of the webdriver protocol. Both at least chromedriver and geckodriver are affected by this issue. * Change the content length calculation to match the http spec For reference: https://www.w3.org/Protocols/HTTP/1.0/draft-ietf-http-spec.html#Entity-Body
* Improve documentation for the md5 module (#16631)konsumlamm2021-01-071-14/+15
|
* Implements streams for sockets (#15729)PMunch2021-01-071-0/+181
|
* oids: switch from PRNG to random module (#16203)flywind2021-01-071-20/+19
| | | | | | | * switch from PRNG to random module * fix the regression * comments + tests * runnableExamples * make oids better
* add math.signbit (#16592)flywind2021-01-071-1/+26
|
* Fixes the asynchttpserver example some more (#16599)Dominik Picheta2021-01-071-8/+7
| | | | | I dislike this example a lot (busy looping for FDs to be closed is a very poor waste of resources) but at least with these changes it's a little bit better.
* Jsonutils: pass opt for object in object (#16615)inv20042021-01-071-1/+1
| | | | | * jsonutils: fromJson forward opt param fix * jsonutils: object in object test + fix: opt pass
* Minor docs/format changes (cpuinfo, volatile) (#16602)konsumlamm2021-01-062-12/+11
|