summary refs log tree commit diff stats
path: root/changelog.md
Commit message (Collapse)AuthorAgeFilesLines
* hashes: support object default hash (#17175)Timothee Cour2021-02-261-1/+3
|
* `std/options`: `$some(3)` is now `"some(3)"`, etc. (#17147)Timothee Cour2021-02-241-0/+3
| | | | | | | * 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-241-0/+2
| | | | | | * asyncjs: add then * improve tests, changelog, API * fix cryptic windows error: The parameter is incorrect * address comments
* wrapnils: add `??.` which returns an `Option` (#16931)Timothee Cour2021-02-241-0/+4
| | | | | | | * wrapnils: add option-like API with ??., isSome, get * fix test after rebase * cleanups * fix changelog * address comments regarding get vs unsafeGet
* add strbasics.strip (#16280)flywind2021-02-241-0/+2
|
* add enumutils.items for sparse enums, typetraits.SomeSparseEnum (#17080)Timothee Cour2021-02-231-2/+4
| | | | | | | * 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
* add io.readChars overload (simpler, less error prone) (#16044)Timothee Cour2021-02-221-0/+3
| | | | | | | | | | * 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>
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-201-2/+2
| | | | | * move prelude so that `include std/prelude` also works * add test
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-191-0/+8
|
* Add setutils.complement, setutils.fullSet (#17066)Jason Beetham2021-02-181-1/+4
|
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-171-0/+2
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* fix math.frexp function signature (#16725)flywind2021-02-171-2/+3
|
* array literals uses typed arrays; fix a jsgen bug (#16850)flywind2021-02-151-0/+2
| | | | | | | * array litterals uses typed arrays * Update compiler/jsgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* rst: single backticks now render correctly in both rst2html and github (#17028)Timothee Cour2021-02-131-0/+5
| | | | | | * rst: `` => ` * support default-role in rst2html * update docstyle regarding single vs double backticks
* Make parseopt available on all backends (#17009)hlaaftana2021-02-131-0/+8
| | | | | | | | | * Make parseopt available on all backends * fix spaces * fix getopt and update prelude * no crazy unnecessary version checks, use doAssert
* compilesettings: add libpath (#16997)Timothee Cour2021-02-121-0/+1
| | | | | | | | | | | * compilesettings: add libpath * add test * changelog * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* typeToString: type float => typedesc[float] (#17011)Timothee Cour2021-02-121-0/+2
| | | | | | | * typeToString: type float => typedesc[float] * fixup * fix tests
* add system random to stdlib: std/sysrand (#16459)flywind2021-02-111-0/+2
|
* unbundle fusion (#16925)Timothee Cour2021-02-111-0/+3
| | | | | | * unbundle fusion * changelog * address comment: `./koch fusion` calls nimble install fusion (at a fixed hash)
* std/wrapnils does not use experimental:dotOperators anymore (#16996)Timothee Cour2021-02-101-0/+4
|
* add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) (#16977)Timothee Cour2021-02-091-0/+2
| | | | | * add linenoise.readLineStatus to get status (eg: ctrl-D or ctrl-C) * changelog
* final SSL changes [backport:1.2] (#16983)Andreas Rumpf2021-02-091-0/+7
|
* Deprecate any (#16920)Juan Carlos2021-02-081-0/+2
|
* std/lists: Various changes to `lists` (RFC #303) (#16536)Peter Salvi2021-02-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Various changes to `lists` (RFC #303) * Removing a non-element is no-op; better tests * Remove preserves cycles; add appendMove alias; tests. * Return value for (singly linked) `lists.remove` * More test for lists.remove * Moved `lists.append` to the end of the file to see all `add` definitions * Disable testing js for now * Use workaround for swap js bug * Smaller diff * Undo "silent" deprecation of append * Correct typo in changelog Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Remove `appendMoved` Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Don't remove appendMoved Co-authored-by: Clyybber <darkmine956@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* rename case statement macro from match to `case` (#16923)hlaaftana2021-02-081-0/+2
| | | | | * rename case statement macro from match to `case` * fix test
* Add initRand() with seed based on time (#16953)hlaaftana2021-02-071-0/+2
|
* stdlib/os: handle symlinks in copy/move functions (#16709)Roman Inflianskas2021-02-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: handle symlinks in copy/move functions - Added optional `options` argument to `copyFile`, `copyFileToDir`, and `copyFileWithPermissions`. By default, symlinks are followed (copy files symlinks point to). - `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of skipping them as it was before). - `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them sometimes as it was before). - Added optional `followSymlinks` argument to `setFilePermissions`. See also: https://github.com/nim-lang/RFCs/issues/319 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 (second iteration) Skip symlinks on Windows. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* `dumpToString`: improves on `sugar.dump` (#16841)Timothee Cour2021-02-021-0/+1
| | | | | | | * dumpToString * _ * fixup * changelog * address comment: removed the word "Deprecated"
* 2.5x- 3x faster copyFile on osx (#16883)Timothee Cour2021-02-011-0/+4
|
* distinctBase now is identity instead of error for non distinct types (#16891)Timothee Cour2021-02-011-0/+1
|
* fix #16752: threadvar now works with importcpp types; osx now uses native ↵Timothee Cour2021-01-271-0/+3
| | | | | | | | | | | TLS (`--tlsEmulation:off`), which can be orders of magnitude faster (#16750) * osx now uses native TLS, which can be orders of magnitude faster * add {.cppNonPod.} * improve test * changelog, docs, disable part of windows test
* `--hintAsError` (#16763)Timothee Cour2021-01-201-0/+1
| | | | | | | * --hintAsError * add test, changelog * condsyms
* jsonutils.jsonTo: support opt (#16739)Timothee Cour2021-01-171-2/+4
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-151-0/+2
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Add js BigInts (#16409)Juan Carlos2021-01-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* fix #16703; revert most of #16480; add tests/stdlib/tmimetypes.nim (#16711)Timothee Cour2021-01-131-3/+0
|
* Improve uri.parseQuery to never raise an error (#16647)Mildred Ki'Lya2021-01-121-0/+10
| | | | | | | | | | | | | | | | | 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.
* Remove longestMatch in _WithPrefix iterators (#16689)konsumlamm2021-01-121-5/+4
|
* Httpclient improvements (#15919)Antonis Geralis2021-01-101-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* Implements streams for sockets (#15729)PMunch2021-01-071-0/+2
|
* add math.signbit (#16592)flywind2021-01-071-0/+3
|
* fix #9125 (#16582)flywind2021-01-051-2/+3
| | | | | | | | | | | | * fix #9125 * Update tests/stdlib/tmath.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * back Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Add backwards index overload for `[]` for JsonNode (#16501)Neelesh Chandola2021-01-041-0/+2
| | | | | | | | | | | * Add backwards index overload for `[]` for JsonNode * Add since Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add docs, example, and changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Add posix_utils.osReleaseFile (#16452)Juan Carlos2021-01-041-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add posix_utils.osReleaseFile * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update lib/posix/posix_utils.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * Add a basic sanity test * https://github.com/nim-lang/Nim/pull/16452#issuecomment-753364096 * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update lib/posix/posix_utils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> * Update changelog.md Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add mimetypes.mimesLongest (#16480)Juan Carlos2021-01-021-0/+3
| | | | | | | | | | | | | | | | | | | * Allow single alloc mimetypes ops * Allow single alloc mimetypes ops * Update lib/pure/mimetypes.nim Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-752630190 * https://github.com/nim-lang/Nim/pull/16480#issuecomment-753349661 * update changelog Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com>
* Add assertions for jsconsole (#16460)Juan Carlos2020-12-301-0/+1
|
* Add math.copySign (#16406)flywind2020-12-301-0/+1
| | | | | * add math.copySign * fix + tests
* Added cmpMem export (#16484)Antonis Geralis2020-12-291-2/+4
| | | | | | | | | | | | | * added cmpMem export * updates * fix test * Tiny changelog change * Add a dot. Co-authored-by: Clyybber <darkmine956@gmail.com>
* follow #15357 and move decodeQuery (#15860)flywind2020-12-271-0/+1
| | | | | | | | | * follow #15357 and move decodeQuery * solve problem one * minor * deprecate decodeData * add changelog and since * add testcase for decodeQuery
* Add missing HTTP codes (#16454)Juan Carlos2020-12-231-0/+2
|