Skip to content

v0.9.9: patches for v0.9.8, prepare for next release

Compare
Choose a tag to compare
@litlighilit litlighilit released this 20 Apr 23:21
· 62 commits to master since this release

Full Changelog: v0.9.8...v0.9.9

break

  • oserr: unexport pathsAsOne, new tryOsOp accepts 2 or 0 paths (3f1f114)
  • slice: toNimSlice is no longer a cvt; cvt toPySlice from PySlice1. (c9518e8)

Bug Fixes

  • Lib/sys:
    • float_repr_style not export (21b7f79)
  • sugar:
    • @a.b, @a.b(1) not compile (0fb9426, 1927cef)
    • generic class rewrite was wrong; class O(a.c)/O(a[t]) not compile. (f6c2824)
  • list:
    • slice used in get,setitem with negative value causes RangeDefect. (4d33844)
    • fix setitem discarded longer values. (cd9ed64)
  • builtins.slice: toNimSlice's assert not work. (903c1cd)
  • initVal_with_handle_signal:
  • fixup! refact(os_impl): Py_get_osfhandle_noraise to util/get_osfhandle. (0f51997)

JS

  • pyerrors.oserr: new catchJsErrAndSetErrno; add defval for raiseErrno,raiseErrnoWithPath (6534a35)
  • importDenoOrNodeMod;2-arg importDenoOrProcess. (8f22a68)
  • os.utime not work: "fs is not defined". (47eca90)
  • fixup(d7541b8): catchJsErrAsCode (used error which is cstring). (694eae8)

Fixes for inconsistence with Python

  • Lib/os
    • readlink raises not just FileNotFoundEror,OSError... (c7976a5)
    • makedirs: if existsts_ok, exception might be raised. (90c9610)
  • n_tempfile:
    • js: mktemp raised OSError over FileNotFoundError. (f576b68)

inner

Feature additions

builtins

Lib

  • stat (4c8e84e)
  • unittest:
    • TestCase: addCleanup,tearDown,setUp,run. (3314d92)

inner

  • test: support.os_helper.TESTFN (2c8406a)
  • pyconfig: util.from_c_int_expr,AC_CHECK_FUNC[S] (6534a35, be5332b)
  • js:
    • jsutils/consts from_js_const (ae1671e)

doc

CI

  • testC,testJs: run iff src/,tests/,./.nimble, !feat- branch. (2788f60)

impr

  • js: os.{open,close}: use importNode over "require...". (f361005)

refine

refactor

  • refact: mv os_impl/private/platform_util root's private (1d5e2a8)
  • Lib/unittest: split to unittest/case_py (4853b49)
  • Lib/sys: split into sys_impl/; add n_sys (34f0cb9)
  • Lib/os_impl: dedup MS_WINDOWS, InJs (6534a35)

Purge warning