summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Fix 16722 (#16730)cooldome2021-01-154-4/+49
| | | | | | | * fix #16722 * fix spacing * spacing
* followup for #16717: minimized example + improved comment (#16721)Timothee Cour2021-01-152-33/+47
|
* conservative approach to fix #15184 (#16723)Andrey Makarov2021-01-157-11/+61
|
* Add js BigInts (#16409)Juan Carlos2021-01-144-1/+237
| | | | | | | | | | | | | | | | | | | | | | | | | * 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-142-3/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* IC: next steps (#16705)Andreas Rumpf2021-01-1414-277/+289
| | | | | | | | | | | * code cleanups * refactorings for IC * more refactorings for IC * IC: attach the 'nil' type to its module * IC: refactorings and improvements * IC: progress * IC: more serialization fixes * IC: embarrassing omission * code cleanups
* fix #16706 (#16717) [backport:1.4]flywind2021-01-142-1/+40
|
* enable tests/stdlib/thttpclient.nim (#16710)Timothee Cour2021-01-141-5/+6
| | | | | * enable tests/stdlib/thttpclient.nim * disable windows, openbsd
* disable hint:processing in tests (#16713)Timothee Cour2021-01-142-0/+4
| | | | | * disable hint:processing in tests * fix test
* Fixes #16436 (#16695)Yuriy Glukhov2021-01-143-4/+50
| | | | | * Fixes #16436 * Comments addressed
* improve formatting of error message when runnableExamples fails (#16677)Timothee Cour2021-01-131-1/+6
|
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-133-50/+32
|
* 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-122-20/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-124-27/+38
| | | | | | | | | | | | | | | | | 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.
* fixes nim-lang/nimsuggest#103 con dot exprs (#16657)Saem Ghani2021-01-122-2/+33
| | | | - con calls for dot exprs now returns results - discovered an issue with dot expr results -- documented
* Compile sqlite3 with -O3 flag (#16697)Yuriy Glukhov2021-01-121-1/+1
|
* close #10734 add testcase (#16692)flywind2021-01-121-0/+19
| | | | | | | * close #10734 add testcase * fix * fix
* IC: next steps (#16632)Andreas Rumpf2021-01-1218-771/+475
| | | | | | | | | | | | | * removed dead code * beginnings of a rodfile reader * IC: record global VM state changes and pragma state changes * IC: replay pragmas and VM state changes * implemented rod load file simuation for easier, extensive testing * critical bugfix * IC: stress test logic; should also help with recursive module dependencies; WIP * IC: loading from .rod files begins to work reliably * removed ugly hacks * yet another silly mistake
* Remove longestMatch in _WithPrefix iterators (#16689)konsumlamm2021-01-122-28/+19
|
* fix docs typo (#16637)flywind2021-01-122-2/+2
| | | | | | | * fix typo * fix typo * Update doc/astspec.txt
* RST: implement internal targets (#16614)Andrey Makarov2021-01-116-101/+379
|
* close #9901 add testcase (#16662)flywind2021-01-111-0/+18
| | | | | * close #9901 add testcase * follow advice
* remove deprecated specs (#16684)flywind2021-01-112-10/+0
|
* close #9655 add testcase (#16683)flywind2021-01-111-0/+30
|
* close #7097 add testcase (#16682)flywind2021-01-111-0/+38
|
* fix #13517 (#16681)flywind2021-01-112-3/+17
|
* fix negative nan (#16628)flywind2021-01-113-5/+29
|
* Improve documentation of strmisc (#16665)konsumlamm2021-01-111-30/+30
| | | Simplify examples
* fixed nim-lang/nimsuggest#82 pure enum field sug (#16676)Saem Ghani2021-01-112-10/+29
| | | | - previous code wasn't account for tyEnum being wrapped in tyTypeDesc - now pure enum fields are suggested
* fix #16555, fixes #16405: len, high honors '\0' for cstring in vm (#16610)Timothee Cour2021-01-116-15/+74
|
* fix #16651 (#16658)cooldome2021-01-112-0/+31
| | | | * fix #16651
* add error messages (#16679)flywind2021-01-101-1/+1
|
* fix #16650 (#16660)flywind2021-01-102-8/+18
|
* fix broken CI (#16663)flywind2021-01-101-1/+1
|
* Httpclient improvements (#15919)Antonis Geralis2021-01-104-112/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* close #4834 add testcase (#16649)flywind2021-01-091-0/+17
|
* Use func in lenientops (#16641)konsumlamm2021-01-091-15/+15
|
* skip docs for `lib/fusion` (docs already run in fusion repo) (#16645)Timothee Cour2021-01-082-5/+4
| | | | | * run CI docs on koch.nim changes to avoid future regressions * kochdocs: skip lib/fusion
* kochdocs: fusion needs the js backend too (#16644)alaviss2021-01-081-1/+3
|
* 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
* close #1550 add testcase (#16640)flywind2021-01-081-0/+20
|
* compiler: minor refactoring (#16633)Andreas Rumpf2021-01-081-12/+11
|
* happy new year 2021 again (#16638)Andrew2021-01-081-1/+1
|
* Improve documentation for the md5 module (#16631)konsumlamm2021-01-071-14/+15
|
* IC: next steps (#16550)Andreas Rumpf2021-01-0736-401/+654
| | | | | | | | | | | | | | | | | | * cleanups * ast.nim: cleanups * IC: no more sym.tab field, stored externally in the module graph * nimble compiles again * rodfiles: store bitwidth of integers and the endianness in the cookie because we serialize 'int' directly * rodfiles: added compilerproc and export sections * rodfiles: added all the missing sections * rodfiles: track the missing information * IC: architecture for lazy loading of proc bodies * make tests green again * completed the lazy loading of proc bodies * symbol lookup integration, part 1 * symbol lookup integration, part 2 * symbol lookup integration, part 3 * make tcompilerapi work again * rodfiles: fixed config change handling
* minor fix (#16624)rockcavera2021-01-071-1/+1
|
* [FIX] Update fusion master commit hash (#16630)haxscramper2021-01-071-1/+1
|