Skip to content

Commit

Permalink
refactor(api): major pkg restructure
Browse files Browse the repository at this point in the history
BREAKING CHANGE: major pkg restructure, migrations

- migrate logging related types/classes to new thi.ng/logger pkg
  - see e0399a8 for details
- migrate `exposeGlobal()` to new thi.ng/expose pkg
  - see 323995f for details
- lift /api source files to main /src folder for easier import
- this pkg now only contains type defs, constants, decorators and mixins
  all other functionality migrated to other packages...
  • Loading branch information
postspectacular committed Sep 20, 2021
1 parent e0399a8 commit 98e286d
Show file tree
Hide file tree
Showing 47 changed files with 125 additions and 243 deletions.
165 changes: 78 additions & 87 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,125 +65,122 @@
".": {
"import": "./index.js"
},
"./api/assoc": {
"import": "./api/assoc.js"
"./assoc": {
"import": "./assoc.js"
},
"./api/bind": {
"import": "./api/bind.js"
"./bind": {
"import": "./bind.js"
},
"./api/buffered": {
"import": "./api/buffered.js"
"./buffered": {
"import": "./buffered.js"
},
"./api/clear": {
"import": "./api/clear.js"
"./clear": {
"import": "./clear.js"
},
"./api/compare": {
"import": "./api/compare.js"
"./compare": {
"import": "./compare.js"
},
"./api/contains": {
"import": "./api/contains.js"
"./contains": {
"import": "./contains.js"
},
"./api/copy": {
"import": "./api/copy.js"
"./copy": {
"import": "./copy.js"
},
"./api/deref": {
"import": "./api/deref.js"
"./deref": {
"import": "./deref.js"
},
"./api/dissoc": {
"import": "./api/dissoc.js"
"./dissoc": {
"import": "./dissoc.js"
},
"./api/empty": {
"import": "./api/empty.js"
"./empty": {
"import": "./empty.js"
},
"./api/enable": {
"import": "./api/enable.js"
"./enable": {
"import": "./enable.js"
},
"./api/equiv": {
"import": "./api/equiv.js"
"./equiv": {
"import": "./equiv.js"
},
"./api/event": {
"import": "./api/event.js"
"./event": {
"import": "./event.js"
},
"./api/fn": {
"import": "./api/fn.js"
"./fn": {
"import": "./fn.js"
},
"./api/get": {
"import": "./api/get.js"
"./get": {
"import": "./get.js"
},
"./api/hash": {
"import": "./api/hash.js"
"./hash": {
"import": "./hash.js"
},
"./api/hiccup": {
"import": "./api/hiccup.js"
"./hiccup": {
"import": "./hiccup.js"
},
"./api/id": {
"import": "./api/id.js"
"./id": {
"import": "./id.js"
},
"./api/indexed": {
"import": "./api/indexed.js"
"./indexed": {
"import": "./indexed.js"
},
"./api/into": {
"import": "./api/into.js"
"./into": {
"import": "./into.js"
},
"./api/keyval": {
"import": "./api/keyval.js"
"./keyval": {
"import": "./keyval.js"
},
"./api/length": {
"import": "./api/length.js"
"./length": {
"import": "./length.js"
},
"./api/logger": {
"import": "./api/logger.js"
"./meta": {
"import": "./meta.js"
},
"./api/meta": {
"import": "./api/meta.js"
"./null": {
"import": "./null.js"
},
"./api/null": {
"import": "./api/null.js"
"./object": {
"import": "./object.js"
},
"./api/object": {
"import": "./api/object.js"
"./path": {
"import": "./path.js"
},
"./api/path": {
"import": "./api/path.js"
"./predicate": {
"import": "./predicate.js"
},
"./api/predicate": {
"import": "./api/predicate.js"
"./prim": {
"import": "./prim.js"
},
"./api/prim": {
"import": "./api/prim.js"
"./range": {
"import": "./range.js"
},
"./api/range": {
"import": "./api/range.js"
"./release": {
"import": "./release.js"
},
"./api/release": {
"import": "./api/release.js"
"./reset": {
"import": "./reset.js"
},
"./api/reset": {
"import": "./api/reset.js"
"./select": {
"import": "./select.js"
},
"./api/select": {
"import": "./api/select.js"
"./seq": {
"import": "./seq.js"
},
"./api/seq": {
"import": "./api/seq.js"
"./set": {
"import": "./set.js"
},
"./api/set": {
"import": "./api/set.js"
"./stack": {
"import": "./stack.js"
},
"./api/stack": {
"import": "./api/stack.js"
"./tuple": {
"import": "./tuple.js"
},
"./api/tuple": {
"import": "./api/tuple.js"
"./typedarray": {
"import": "./typedarray.js"
},
"./api/typedarray": {
"import": "./api/typedarray.js"
"./watch": {
"import": "./watch.js"
},
"./api/watch": {
"import": "./api/watch.js"
},
"./constants": {
"import": "./constants.js"
"./api": {
"import": "./api.js"
},
"./decorators/configurable": {
"import": "./decorators/configurable.js"
Expand All @@ -197,12 +194,6 @@
"./decorators/sealed": {
"import": "./decorators/sealed.js"
},
"./expose": {
"import": "./expose.js"
},
"./logger": {
"import": "./logger.js"
},
"./mixin": {
"import": "./mixin.js"
},
Expand Down
File renamed without changes.
29 changes: 0 additions & 29 deletions packages/api/src/api/logger.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 0 additions & 32 deletions packages/api/src/expose.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
81 changes: 39 additions & 42 deletions packages/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,43 @@
export * from "./api/assoc";
export * from "./api/bind";
export * from "./api/buffered";
export * from "./api/clear";
export * from "./api/compare";
export * from "./api/contains";
export * from "./api/copy";
export * from "./api/deref";
export * from "./api/dissoc";
export * from "./api/empty";
export * from "./api/enable";
export * from "./api/equiv";
export * from "./api/event";
export * from "./api/fn";
export * from "./api/get";
export * from "./api/hash";
export * from "./api/hiccup";
export * from "./api/id";
export * from "./api/indexed";
export * from "./api/into";
export * from "./api/keyval";
export * from "./api/length";
export * from "./api/logger";
export * from "./api/meta";
export * from "./api/null";
export * from "./api/object";
export * from "./api/path";
export * from "./api/predicate";
export * from "./api/prim";
export * from "./api/range";
export * from "./api/release";
export * from "./api/reset";
export * from "./api/select";
export * from "./api/seq";
export * from "./api/set";
export * from "./api/stack";
export * from "./api/tuple";
export * from "./api/typedarray";
export * from "./api/watch";
export * from "./assoc";
export * from "./bind";
export * from "./buffered";
export * from "./clear";
export * from "./compare";
export * from "./contains";
export * from "./copy";
export * from "./deref";
export * from "./dissoc";
export * from "./empty";
export * from "./enable";
export * from "./equiv";
export * from "./event";
export * from "./fn";
export * from "./get";
export * from "./hash";
export * from "./hiccup";
export * from "./id";
export * from "./indexed";
export * from "./into";
export * from "./keyval";
export * from "./length";
export * from "./meta";
export * from "./null";
export * from "./object";
export * from "./path";
export * from "./predicate";
export * from "./prim";
export * from "./range";
export * from "./release";
export * from "./reset";
export * from "./select";
export * from "./seq";
export * from "./set";
export * from "./stack";
export * from "./tuple";
export * from "./typedarray";
export * from "./watch";

export * from "./constants";
export * from "./expose";
export * from "./logger";
export * from "./api";
export * from "./mixin";

export * from "./decorators/configurable";
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 98e286d

Please sign in to comment.