Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

started adapter.ts port #1917

Merged
merged 61 commits into from
Aug 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
f639981
started adapter.ts port
foxriver76 May 11, 2022
bd49013
added more types to AdapterOptions
foxriver76 May 12, 2022
bddc8ca
more types
foxriver76 May 12, 2022
151051f
more types
foxriver76 May 13, 2022
875f032
more types fixed
foxriver76 May 16, 2022
ac7d568
started porting first methods in our new style
foxriver76 May 16, 2022
138d0cf
some more methods ported
foxriver76 May 16, 2022
a699fbd
added more signatures to methods
foxriver76 May 17, 2022
537046a
start porting async methods
foxriver76 May 17, 2022
fc935de
more async methods defined
foxriver76 May 17, 2022
7e5707c
do not use this.log internally
foxriver76 May 17, 2022
90506ef
more types
foxriver76 May 17, 2022
3d8285c
switch to interface merging
foxriver76 May 17, 2022
6a01e99
imports
foxriver76 May 17, 2022
d72bdc6
dynamic methods with overloads need to be defined by interface merging
foxriver76 May 17, 2022
0a110cf
ported lots of methods
foxriver76 May 18, 2022
251fc80
more types fixed
foxriver76 May 18, 2022
650bb2c
more types
foxriver76 May 18, 2022
10ab26f
more types
foxriver76 May 18, 2022
e13268e
working towards first compile
foxriver76 May 19, 2022
7ec459a
more fixes
foxriver76 May 19, 2022
4f2ee7d
finish line for first build is close
foxriver76 May 20, 2022
e014894
first build
foxriver76 May 20, 2022
6004106
some types improved
foxriver76 May 20, 2022
33e6df5
fix some tests
foxriver76 May 20, 2022
1827070
fixed setState signature and strictObjectCheck
foxriver76 May 21, 2022
60814f0
some type improvements + tests fixed
foxriver76 May 21, 2022
c017e07
fix build
foxriver76 May 21, 2022
2e65c58
better types
foxriver76 May 23, 2022
21984ec
more types
foxriver76 May 24, 2022
083ea81
more types
foxriver76 May 24, 2022
8606703
typo
foxriver76 May 24, 2022
95bd4a2
fix tests
foxriver76 May 24, 2022
75a8682
more types
foxriver76 May 24, 2022
0d67e4c
only 10 methods left
foxriver76 May 24, 2022
f3d68be
fix tests
foxriver76 May 24, 2022
017cf1a
deleteDevice
foxriver76 May 24, 2022
45c9895
more types
foxriver76 May 24, 2022
1d035f9
port finished for first review
foxriver76 May 24, 2022
578ec82
fix this context
foxriver76 May 24, 2022
84207e4
fix forbidden_chars, generated typedoc docs via postbuild
foxriver76 May 24, 2022
9dd4ff2
incorporate #1923
foxriver76 May 24, 2022
7dfeee8
use markdown docs instead of html, to be easier compatible with offic…
foxriver76 May 24, 2022
e2efc11
exlucde private methods and attributes from public docs
foxriver76 May 24, 2022
f94b465
forgot private prefix on one method
foxriver76 May 24, 2022
d502d9d
remove jsdoc memberof and alias as it is redundant
foxriver76 May 24, 2022
47bb9fd
merge
foxriver76 Aug 8, 2022
2ceed92
asserts -> assert
foxriver76 Aug 8, 2022
a9d12a6
fix build
foxriver76 Aug 8, 2022
d6867b6
fix this context test
foxriver76 Aug 8, 2022
ef394c3
some review addressed
foxriver76 Aug 8, 2022
695e3cd
some more review
foxriver76 Aug 8, 2022
f063f46
some more review
foxriver76 Aug 8, 2022
fe2576b
move simple definitions above constructor
foxriver76 Aug 9, 2022
a74c68f
move types into separate file and fix missing unknown strategy on som…
foxriver76 Aug 10, 2022
8ffee39
type adapterConfig
foxriver76 Aug 10, 2022
90584cd
fix del state
foxriver76 Aug 10, 2022
12fdbae
fix missing overloads
foxriver76 Aug 11, 2022
35f1eaa
fix format date
foxriver76 Aug 11, 2022
127e041
solve conflicts
foxriver76 Aug 24, 2022
d2a01bf
address comments
foxriver76 Aug 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
106 changes: 106 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"@types/mocha": "^9.0.0",
"@types/node": "^17.0.5",
"@types/node-forge": "^1.0.0",
"@types/node-schedule": "^2.1.0",
"@types/pidusage": "^2.0.2",
"@types/readline-sync": "^1.4.4",
"@types/semver": "^7.3.10",
"@types/tar": "^6.1.1",
Expand All @@ -59,6 +61,8 @@
"semver": "^7.3.7",
"sinon": "^13.0.2",
"sinon-chai": "^3.7.0",
"typedoc": "^0.22.15",
"typedoc-plugin-markdown": "^3.12.1",
"typescript": "^4.7.4"
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@iobroker/db-states-jsonl": "file:../db-states-jsonl",
"@iobroker/db-states-redis": "file:../db-states-redis",
"@iobroker/js-controller-common": "file:../common",
"@iobroker/js-controller-common-db": "file:../common-db",
"@iobroker/plugin-base": "~1.2.1",
"@iobroker/plugin-sentry": "~1.2.0",
"deep-clone": "^3.0.3",
Expand All @@ -39,7 +40,7 @@
},
"scripts": {
"build": "tsc -b tsconfig.build.json",
"postbuild": "cpy ./src/cert/ ./build/"
"postbuild": "cpy ./cert ../build/ --cwd=src && typedoc --excludePrivate --plugin typedoc-plugin-markdown src/lib/adapter/adapter.ts --out ../controller/doc"
},
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export { default as Adapter } from './lib/adapter/adapter';
export { Adapter } from './lib/adapter/adapter';
export { Utils } from './lib/adapter/utils';
export * from './lib/_Types';