Closed Eskibear closed 6 months ago
E.g. try accessing private member client
.
const settings = await load(connectionString);
Before:
After:
Will this change raise any concerns about compatibility?
Should we unify the public/private method in Adapters?
Should we unify the public/private method in Adapters?
Yes. Tracked in #29
See #29
Previously, TS keyword
private
only during compilation stage. In JS you can still access "private members" if you insist. This PR adopts private properties from ECMAScript, forbidding the access of private members, for JavaScript in runtime.Code changes:
#
and removeprivate
public
which is the default scope.