Skip to content

Latest commit

 

History

History
142 lines (82 loc) · 4.68 KB

CHANGELOG.md

File metadata and controls

142 lines (82 loc) · 4.68 KB

Release notes

1.0.22

New Features

  • add L.setattrs, inspired by Saul Pwanson (#117)
  • move Config from nbdev (#116)
  • add nested_attr and use it in L.attrgot (#115)

1.0.21

Deprecations (will be removed in future release)

  • patch_property: use patch(as_prop=True) instead

New Features

  • New param cast for store_attr and new decorator with_cast (#114)
  • add L.insert and exec_local (#113)
  • Patch decorator with optional argument (#110), thanks to @Salehbigdeli
  • Make typedispatch decorator more general (#106), thanks to @Salehbigdeli

Bugs Squashed

  • Fix default in oper (#112), thanks to @Salehbigdeli
  • Inconsistency with cmp_instance and typedispatch because of binary sort algorithm (#100)

1.0.20

New Features

  • add ignore_ex=False and as_bytes=False params to run (#108)
  • AttrDict: a dict subclass that also provides access to keys as attrs; and change dict2obj to create AttrDicts instead of SimpleNamespaces (#107)

1.0.19

New Features

  • run: flexibly run an external process and raise exception if it fails (#105)

1.0.16

New Features

  • add threadpool=False param to parallel to use threads instead of processes (#102)

1.0.15

New Features

  • add L.map_filter and L.map_first (#97)
    • These support some nice refactorings, like changing from this:
      d = []
      for c in cs:
        m = f(c)
        if not m:
          continue
        d.append(m.group(1))
      to this:
      d = cs.map_filter(f).map(Self.group(1))

1.0.14

Bugs Squashed

  • Reapply fix for #86 which was unintentionally reverted by the next commit (#91)

1.0.13

New Features

  • dict2obj: Convert (possibly nested) dicts (or lists of dicts) to SimpleNamespace (#90)

1.0.12

New Features

  • add function support to store_attr (#85)

Bugs Squashed

  • mp_context keyword for initialising concurrent.futures.ProcessPoolExecutor only supported in python 3.7+ (#86)

1.0.10

Breaking Changes

  • remove parallel_chunked, use chunksize arg to parallel instead (#81)

New Features

  • move fastscript to fastcore.script (#84)
  • add run_proc and do_request (#83)
  • added chunksize to parallel, which passes to ProcessPoolExecutor.map (#82)
  • move metaclasses and delegates et al to new meta module (#80)

1.0.4

New Features

  • Remove numpy prerequisite (#75)
    • NB: fastcore's L and other collection features still work with numpy arrays, but they do so internally using instance methods, so numpy is no longer a prerequisite, and numpy is not loaded if not used

1.0.2

Bugs Squashed

  • "has default params. These will be ignored" shown when not appropriate (#74)

1.0.1

Breaking Changes

  • Change arguments of store_attr() and remove store_attrs attribute (#71)
    • store_attr's API has changed. self is now the second parameter, and is optional. Previously, if no names were passed to store, names were taken from the store_attrs attribute; now, however, names are taken from the list of arguments to the current function.

New Features

  • Warn if defaults passed to typedispatch (#73)

  • Add urlread and urljson (#72)

Version 1.0.0

  • Initial release