@lumjs/core 1.26.0 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -1
- package/jsdoc.js +13 -0
- package/lib/console.js +54 -0
- package/lib/enum.js +65 -15
- package/lib/events/event.js +85 -0
- package/lib/events/index.js +30 -0
- package/lib/events/listener.js +127 -0
- package/lib/events/registry.js +537 -0
- package/lib/index.js +34 -17
- package/lib/meta.js +71 -82
- package/lib/obj/clone.js +1 -1
- package/lib/obj/copyprops.js +2 -2
- package/lib/obj/cp.js +1375 -0
- package/lib/obj/flip.js +2 -0
- package/lib/obj/index.js +2 -1
- package/lib/obj/merge.js +1 -1
- package/lib/obj/ns.js +1 -1
- package/lib/objectid.js +41 -13
- package/lib/observable.js +1 -1
- package/lib/old/abstractclass.js +82 -0
- package/lib/opt/args.js +50 -0
- package/lib/opt/getpath.js +70 -0
- package/lib/opt/getval.js +61 -0
- package/lib/opt/index.js +21 -0
- package/lib/opt/val.js +63 -0
- package/lib/strings.js +1 -1
- package/lib/types/basics.js +35 -16
- package/lib/types/def.js +49 -36
- package/lib/types/dt.js +147 -18
- package/lib/types/index.js +32 -59
- package/lib/types/isa.js +4 -0
- package/lib/types/js.js +43 -7
- package/lib/types/lazy.js +3 -2
- package/lib/types/needs.js +0 -1
- package/lib/types/typelist.js +6 -4
- package/lum.build.js +40 -0
- package/package.json +24 -14
- package/TODO.md +0 -76
- package/jsdoc.json +0 -33
- package/lib/opt.js +0 -664
package/TODO.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# TODO
|
|
2
|
-
|
|
3
|
-
## v2.x
|
|
4
|
-
|
|
5
|
-
I'm thinking it's getting close to time to do a big cleanup of the codebase,
|
|
6
|
-
and refactor a few things that have gotten rather crufty. While there may be
|
|
7
|
-
a few more releases in the `1.x` series, I think focusing on a clean break
|
|
8
|
-
for the future would be a good idea. A few of the things I want to do:
|
|
9
|
-
|
|
10
|
-
- Remove all deprecated code:
|
|
11
|
-
- `obj.{copyAll,duplicateOne,duplicateAll}`
|
|
12
|
-
- `types.instanceOf` and related options in `types.isa`
|
|
13
|
-
- `<meta>.AbstractClass`
|
|
14
|
-
- Implement a new `obj.copy` API function/class
|
|
15
|
-
- Will completely replace `obj.{clone,copyProps,mergeNested}`
|
|
16
|
-
- Offer an extended version of the declarative API from `copyProps`
|
|
17
|
-
- Cut anything that seems superfluous or rarely used
|
|
18
|
-
- Add ability to copy `Symbol` properties
|
|
19
|
-
- Replace `obj.syncNested` with `obj.sync` using the new `obj.copy` API
|
|
20
|
-
- Move `opt.Opts` into its own separate package
|
|
21
|
-
- Give `observable` some TLC
|
|
22
|
-
|
|
23
|
-
I will likely update this list a bit before I get around to starting the
|
|
24
|
-
new branch that will eventually become the `2.0.0` release.
|
|
25
|
-
|
|
26
|
-
I also want to make a new version of the [@lumjs/compat] package that
|
|
27
|
-
will be more helpful for major updates in the future, so it will have
|
|
28
|
-
a corresponding `v2.x` release at the same time as this package.
|
|
29
|
-
|
|
30
|
-
## Tests
|
|
31
|
-
|
|
32
|
-
Write proper tests using [@lumjs/tests] library.
|
|
33
|
-
This list of files is out of date and needs updating.
|
|
34
|
-
|
|
35
|
-
- [x] `types/js`
|
|
36
|
-
- [x] `types/basics`
|
|
37
|
-
- [x] `types/root`
|
|
38
|
-
- [x] `types/isa`
|
|
39
|
-
- [x] `types/needs`
|
|
40
|
-
- [x] `types/def`
|
|
41
|
-
- [x] `types/typelist`
|
|
42
|
-
- [ ] `types/stringify`
|
|
43
|
-
- [x] `types/index`
|
|
44
|
-
- [x] `arrays`
|
|
45
|
-
- [ ] `context`
|
|
46
|
-
- [ ] `strings`
|
|
47
|
-
- [ ] `flags`
|
|
48
|
-
- [ ] `obj/copyall`
|
|
49
|
-
- [ ] `obj/copyprops`
|
|
50
|
-
- [ ] `obj/clone`
|
|
51
|
-
- [ ] `obj/lock`
|
|
52
|
-
- [ ] `obj/merge`
|
|
53
|
-
- [ ] `obj/ns`
|
|
54
|
-
- [ ] `obj/index`
|
|
55
|
-
- [ ] `opt`
|
|
56
|
-
- [ ] `objectid`
|
|
57
|
-
- [ ] `meta`
|
|
58
|
-
- [ ] `enum`
|
|
59
|
-
- [ ] `lazy`
|
|
60
|
-
- [ ] `observable`
|
|
61
|
-
- [ ] `index`
|
|
62
|
-
|
|
63
|
-
Would be nice to have the tests finished for the planned `2.x` release.
|
|
64
|
-
|
|
65
|
-
## Documentation
|
|
66
|
-
|
|
67
|
-
Go through all the DocBlocks and ensure the documentation is up-to-date and
|
|
68
|
-
good enough to actually be useful.
|
|
69
|
-
|
|
70
|
-
This would also be nice to have finished for the planned `2.x` release.
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
[@lumjs/tests]: https://github.com/supernovus/lum.tests.js
|
|
75
|
-
[@lumjs/compat]: https://github.com/supernovus/lum.compat.js
|
|
76
|
-
|
package/jsdoc.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"tags":
|
|
3
|
-
{
|
|
4
|
-
"allowUnknownTags": true
|
|
5
|
-
},
|
|
6
|
-
"source":
|
|
7
|
-
{
|
|
8
|
-
"include": ["./lib"]
|
|
9
|
-
},
|
|
10
|
-
"opts":
|
|
11
|
-
{
|
|
12
|
-
"destination": "./docs/api",
|
|
13
|
-
"recurse": true
|
|
14
|
-
},
|
|
15
|
-
"plugins":
|
|
16
|
-
[
|
|
17
|
-
"plugins/markdown"
|
|
18
|
-
],
|
|
19
|
-
"templates":
|
|
20
|
-
{
|
|
21
|
-
"cleverLinks": false,
|
|
22
|
-
"monospaceLinks": false,
|
|
23
|
-
"default":
|
|
24
|
-
{
|
|
25
|
-
"outputSourceFiles": true
|
|
26
|
-
},
|
|
27
|
-
"path": "ink-docstrap",
|
|
28
|
-
"theme": "cerulean",
|
|
29
|
-
"navType": "vertical",
|
|
30
|
-
"linenums": true,
|
|
31
|
-
"dateFormat": "YYYY-MM-DD, hh:mm:ss"
|
|
32
|
-
}
|
|
33
|
-
}
|