Skip to content
This repository was archived by the owner on Sep 25, 2020. It is now read-only.

Commit 49cea33

Browse files
committed
deprecate config.__state
1 parent a6283b2 commit 49cea33

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ function fetchConfigSync(dirname, opts) {
4242
config.getRemote = remoteConfigWrapper.get;
4343
config.setRemote = remoteConfigWrapper.set;
4444

45-
// deprecated: __state, __tree
46-
config.__state = configState;
47-
4845
return config;
4946
}
5047

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test('fetchConfig can be called as a function', function (assert) {
2020

2121
assert.equal(typeof c, 'object');
2222
assert.equal(typeof c.get, 'function');
23-
assert.equal(typeof c.__state, 'object');
23+
assert.equal(typeof c.getRemote, 'function');
2424
assert.equal(typeof c.on, 'function');
2525
assert.equal(typeof c.once, 'function');
2626

0 commit comments

Comments
 (0)