Jake Leahy
8fa2c0b532
Pass headers and body correctly to FetchOptions ( #19884 ) [backport]
...
* Pass headers to FetchOptions
Don't pass body if method is HttpGet or HttpHead
* Syntax fixes
* Restart CI
2022-06-13 08:03:40 +02:00
Carlo Capocasa
e2e663a143
Friendlier error message with solution ( #19880 )
...
* Add helpful suggestion, should always apply
* mention var param limitation in async docs
* Update compiler/lambdalifting.nim
whoops thanks
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2022-06-11 18:23:31 +02:00
flywind
1e5dd9022b
[js] add testcase for array indexDefect and remove todo ( #19838 )
...
* remove unused opcSubstr
* [js] add testcase for array indexDefect
* Revert "remove unused opcSubstr"
This reverts commit cb461f2545 .
2022-06-10 20:33:44 +02:00
flywind
8cde6ba6bc
remove noop option gc:v2 ( #19810 )
...
* remove noop option gc:v2
* changelog
2022-06-10 20:32:27 +02:00
flywind
1972005439
fix #19862 ; make widestrs consistent between refc and orc ( #19874 ) [backport]
...
fix #19862 ; make widestrs consistent in refc and orc
2022-06-09 16:51:17 +02:00
Antonis Geralis
836b95c896
Deprecate std/sums ( #18439 )
...
* Deprecate sums
* Update changelog.md
* Update lib/std/sums.nim
* log
* format
* remove
* Update changelog.md
Co-authored-by: sandytypical <43030857+xflywind@users.noreply.github.com >
2022-06-09 08:27:31 +02:00
Juan Carlos
f2b16c490d
Add Microtasks docs ( #19870 )
...
* Add Microtasks
* Add Microtasks
* Workaround to build js docs in older NodeJS versions
2022-06-08 16:10:52 +02:00
Zoom
b024a45163
Fix find routines' api to default to last=-1 ( #19761 )
...
This changes the default for the `last` parameter of various `find`
routines from `0` to `-1`. Previous default prevents limiting the search
to the first character. This is a logic error, as full text search was
performed for 2 *valid* values of `last`: `0` and `last.high()`.
Adds an overload for `initSkipTable` which returns a newly initialized
table. This encapsulates every single usage of a `var`-acting original
func in this module.
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-06-07 10:35:06 +02:00
Juan Carlos
d0232f0e5b
Add Microtasks ( #19860 )
...
* Add Microtasks
* Add Microtasks
2022-06-04 07:03:25 +02:00
Andrey Makarov
4341b06f65
RST: improve simple tables ( #19859 )
...
* RST: improve simple tables
* nim 1.0 gotchas
* Still allow legacy boundaries like `----`
2022-06-04 07:03:03 +02:00
flywind
68aeb4c1a6
change the type of mangleJsName; fixes CStringConv warnings ( #19852 )
...
change the type of mangleJsName
since mangleJsName is used in macros, there is no need to use cstring. Using cstring may increase conversions and cause warnings.
2022-06-01 15:01:17 +02:00
flywind
4e3eb7414c
[Minor] remove unused and unnecessary local variable ( #19853 )
2022-06-01 14:44:26 +02:00
Alfred Morgan
15f0b48676
Zectbumo fixes 19824 ( #19825 )
...
* borrowed `$` to make Time string friendly
* added sep character parameter
* Revert "added sep character parameter"
This reverts commit 45f4b019a4 .
* added sep character parameter
* Revert "borrowed `$` to make Time string friendly"
This reverts commit 10e2e44c9a .
* added uri tests and made changelong entry
* Update lib/pure/uri.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update lib/pure/uri.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update tests/stdlib/turi.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
* Update tests/stdlib/turi.nim
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com >
2022-05-30 12:09:18 +02:00
tandy1000
ec0cec3170
Add document.hidden and document.visibilityState properties ( #19817 )
2022-05-24 17:37:39 +02:00
Juan Carlos
b1b5e3ab10
Add Array.shift ( #19811 )
...
* Add Array.shift for JavaScript targets
* Add Array.shift for JavaScript targets
2022-05-24 17:37:19 +02:00
Anthony Dario
19001c070b
Fix typo in sequtils documentation ( #19789 )
...
Found another small typo.
2022-05-13 11:19:42 +08:00
Alfred Morgan
b9f243eb2a
string is missing formatting when calling fmt ( #19780 )
...
it appears the documentation intends to compare & with .fmt but there is no formatting in the string. even though the assert is true it doesn't quite prove that .fmt is an equivalent formatter.
2022-05-10 17:45:57 +02:00
Juan Carlos
b2b878f4d6
Remove deprecated posix proc ( #19774 )
...
* Remove deprecated posix proc that takes wrong argument types
* Remove deprecated posix proc that takes wrong argument types
2022-05-08 11:56:46 +02:00
huantian
61c1142667
Update nimscript withDir doc example ( #19776 )
2022-05-08 11:54:25 +02:00
Zoom
0455d24d55
Fix questionable suggestion in strutils docs ( #19765 )
...
* Fix questionable suggestion in `stutils` docs
- Removes the recommendation to pass a string slice for getting a relative
index for `find` and `rfind` functions, as this currently makes a string
copy, while a simple subtraction is enough.
- Docstring for `SkipTable` type.
* Doc layout fixup
2022-05-06 11:19:27 +02:00
Anthony Dario
a4401054cc
Fix broken link in sets documentation. ( #19769 )
2022-05-06 17:16:00 +08:00
huantian
927978345b
Rework discarding futures documentation in asyncdispatch ( #19738 )
...
* Rework discarding futures docs in asyncdispatch
* Fix typos
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
* Use rst note::
Co-authored-by: flywind <xzsflywind@gmail.com >
* Split discarding and handling futures.
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
* Update lib/pure/asyncdispatch.nim
Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com >
Co-authored-by: flywind <xzsflywind@gmail.com >
Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com >
2022-05-02 17:06:57 +01:00
flywind
8bfc396a4d
fixes #18612 ; apply cache and memcmp for methods in arc/orc ( #19749 )
...
* try using endsWith
* use memcmp
* add cache
* cleanup
* better
* minor
* fix
* improve test coverage for methods with ARC
2022-04-26 20:14:39 +02:00
ehmry
82680a12a7
macros: make hasCustomPragma more permissive ( #19747 )
...
Make hasCustomPragma return false rather than fail for invalid
parameters.
2022-04-25 22:16:11 +02:00
Andreas Rumpf
ee0a470294
Revert "fix db_sqlite.tryInsertID does raise exceptions in 1.6.0 #19743 ( #19744 )" ( #19745 )
...
This reverts commit b10f0e7bca .
2022-04-25 11:59:37 +02:00
Danil Yarantsev
2f32b450d3
Really fix StringStream with ARC at compile-time, improve streams test ( #19739 )
...
* Fix compile-time StringStream with ARC
* make readDataStr work with ARC, improve test
2022-04-25 11:15:03 +02:00
flywind
b10f0e7bca
fix db_sqlite.tryInsertID does raise exceptions in 1.6.0 #19743 ( #19744 )
2022-04-24 14:20:18 -04:00
huantian
02e8aa9660
Fix doc: list of async backends ( #19741 )
2022-04-24 10:47:39 +01:00
Jason Beetham
dc4cc2dca5
Fix string stream crashing when created on nimscript due to last fix ( #19717 )
2022-04-14 11:30:59 +02:00
huantian
ef7d7f2459
Better error message and tests for bad await ( #19622 )
...
* Better error message and tests for bad await
* Use compiles to check if await is valid
* temp: disable windows noasync test
* Better error report, simplify test
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-13 23:03:46 +02:00
flywind
98cebad7de
enable style:usages for stdlib tests [backport: 1.6] ( #19715 )
...
* enable style:usages for stdlib tests
* freeAddrInfo
* more tests
* importc
* bufSize
* fix more
* => parseSql and renderSql
2022-04-13 11:53:02 +02:00
Jason Beetham
26acc97864
StringStreams no longer errors when intialized with literals on arc/orc ( #19708 )
2022-04-11 14:27:12 +02:00
Timothee Cour
e78ef57c93
typetraits: add toSigned, toUnsigned ( #18445 )
...
* typetraits: add toSigned, toUnsigned
* improve and add tests
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-07 17:38:01 -04:00
flywind
c8aeea9d62
improve the error messages for std/tasks [backport: 1.6] ( #19695 )
2022-04-07 20:56:34 +02:00
flywind
0978276ed9
use two spaces indentation ( #19696 )
2022-04-07 13:07:39 +08:00
Nan Xiao
065f568470
No need to export pos from OptParser ( #19688 )
...
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-06 20:28:58 +02:00
Jacek Sieka
cb6ce80cb8
std/tasks: fix spelling ( #19691 ) [backport]
...
why aren't these not being caught by style check options?
--styleCheck:usages finds it.
Co-authored-by: flywind <xzsflywind@gmail.com >
2022-04-06 20:28:37 +02:00
flywind
c3f03cfa5d
add somes links to docs ( #19668 )
2022-04-01 13:30:02 -04:00
Nan Xiao
a7024f49af
fix 19655 - fixing more url fragments ( #19669 )
2022-04-01 13:29:15 -04:00
rockcavera
1275763284
fix 19655 - fixing url fragment ( #19667 )
2022-04-01 08:01:51 +02:00
Juan Carlos
49844415ce
Deprecate selfExe ( #19660 )
...
* Deprecate selfExe Nimscript
* Deprecate selfExe Nimscript
2022-03-31 21:06:13 +02:00
Jaremy Creechley
eae29e8eaf
Embedded Network patches - eventfd & socket getters ( #19632 )
2022-03-28 12:37:59 +02:00
John Titor
8cdd8867c0
Fix dial ignoring buffered parameter ( #19650 ) [backport]
2022-03-26 11:43:26 +01:00
tandy1000
4dfe420c2f
Add support for Window.matchMedia ( #19648 )
2022-03-26 06:57:39 +01:00
flywind
afbcba909b
remove unnecessary framePtr code ( #19645 )
2022-03-25 10:46:42 +01:00
Juan Carlos
b0bd4320a0
Remove deprecated typo poDemon ( #19631 )
...
* Remove Deprecated poDemon
* Remove Deprecated poDemon
2022-03-23 20:43:58 +01:00
Juan Carlos
d7a966c4eb
Remove Deprecated domextension ( #19630 )
...
* Remove Deprecated domextension
* Remove Deprecated domextension
2022-03-23 20:43:28 +01:00
Juan Carlos
d14e8e8dcc
Remove Deprecated Nimscript proc ( #19629 )
2022-03-23 20:42:54 +01:00
flywind
7f6e800caf
move assertions out of system ( #19599 )
2022-03-23 20:34:53 +01:00
Dominic Ward
a8b5ad845c
Fix process lines iterator ( #19605 )
...
* Ensure lines when process done
* eliminate post-EOF exit test
* Recommend fixes for execCmdEx/execProcess
2022-03-23 07:50:36 +01:00