| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
distinguish from 0.0 (#18067)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
invalid json (#18026)
* fix #18007: std/json now serializes nan,inf,-inf as raw strings instead of invalid json
* fix roundtrip
* fix tests
* fix changelog
* simplify
* add runnableExamples
* fix typo [skip ci]
|
|
|
|
|
|
|
|
| |
* CIs: attempt to use csources_v1
* also updated the BSDs
* also updated azure pipelines
* std modules should not itself use the 'std/' import dir...
* compiler has to be careful with std/ for v1 booting
|
| |
|
| |
|
|
|
|
| |
tfTriggersCompileTime (#17463)
|
| |
|
|
|
| |
Co-authored-by: flywind <xzsflywind@gmail.com>
|
|
|
|
|
|
|
| |
uint|uint64 (#17389) [backport:1.2]
* fix #17383: json.%,to and jsonutils.formJson,toJson now works with uint|uint64
* fixup
* fix for js
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
* remove unnecessary when statement
* remove outdated codes
* reuse jsffi
* move js json coverage
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
* added enum indexed array support to json
* Added json test
* Removed when statement for enum indexed arrays
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
|
|
|
|
|
|
|
|
| |
(#15900)
* original docs are wrong
* fix pathnorm
* Update lib/pure/pathnorm.nim
Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
|
|
|
|
|
| |
* fix #15835
* add tests
|
| |
|
|
|
|
|
|
|
| |
* fixes #15413
* better hide it properly
* see if this makes our list of important packages happy
|
|
|
|
| |
There was a recent `rightSize` change in tables.nim, so the existing
value (4) was creating too large tables.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
dependency on strtabs thanks to a hooking mechanism (#14563)
* json custom serialization; application for strtabs
* serialize using nesting
* make toJson more feature complete
* add since
* Revert "Improve JSON serialisation of strtabs (#14549)"
This reverts commit 7cb4ef26addb3bb5ce2405d8396df6fd41664dae.
* better approach via mixin
* toJson, jsonTo
* fix test
* address comments
* move to jsonutils
* doc
* cleanups
* also test for js
* also test for vm
|
|
|
|
|
| |
* move json.isMainModule => tjson
* move isMainModule => tos,tsequtils
|
|
|
|
| |
This creates a more compact serialisation of strtabs that is more in
line with the normal tables.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Error -> Defect for defects
The distinction between Error and Defect is subjective,
context-dependent and somewhat arbitrary, so when looking at an
exception, it's hard to guess what it is - this happens often when
looking at a `raises` list _without_ opening the corresponding
definition and digging through layers of inheritance.
With the help of a little consistency in naming, it's at least possible
to start disentangling the two error types and the standard lib can set
a good example here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* base `parseEnum` on a case statement, fixes #14030
* apply simplifactions / clean up, remove `norm` node, use strVal
* export `normalize` in json.nim
* cmp using nimIdentNormalize, error at CT if ambiguous enum found
`nimIdentNormalize` provided by @cooldome.
We track all names of the branches we have created so far and error if
a duplicate is found.
Dummy change to make github react...
* fix docstring of `nimIdentNormalize`
* make `typ` arg `typedesc`, add lineinfo, call norm. only once
|
| |
|
| |
|
|
|
|
| |
kinds (#13389)
|
|
|
| |
'\v' is not injected in JSON anymore
|
|
|
|
|
| |
(#13363)
This reverts commit b2c6db97f9f477f6999fa9c7aae5e32f10b6b3fe.
|
|
|
|
| |
* printing float values will have one more digit. Fixes #13196
|
| |
|
|
|
|
|
|
| |
* Fix #12832
* nimVm -> nimvm in json.nim
* Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
|
| |
|
| |
|
|
|
| |
fixes #12479
|
|
|
|
|
|
|
|
| |
* closes #12316
* make tjsonmacro work at js target
* closes #12289
* closes #11988
* also fixed gdb related stuff
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
* fixes #12152
* makes test green
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* fixes #12015 by also checking kind of `typeNode`
If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)
* fix test case due to #12017 and add more realistic test case
Adds an additional test case, which includes generics and is closer to
the real failure I encountered
* remove previous fix and fix differently after all
The previous fix was incomplete, because it failed for generics.
Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.
* update comment about global `%` proc in json test
|
| |
|
|
|
|
| |
--styleCheck:error
|
| |
|
|
|
|
|
|
|
|
|
| |
* Render deprecated pragmas
* fix the expected html
* clean up the documentation regarding deprecations
* fix typo
* fix system.nim
* fix random
|
| |
|
| |
|