egg 3.16.1 → 3.17.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.
@@ -79,6 +79,11 @@ class Singleton {
79
79
  return this.clients.get(id);
80
80
  }
81
81
 
82
+ // alias to `get(id)`
83
+ getSingletonInstance(id) {
84
+ return this.clients.get(id);
85
+ }
86
+
82
87
  createInstance(config, clientName) {
83
88
  // async creator only support createInstanceAsync
84
89
  assert(!is.asyncFunction(this.create),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egg",
3
- "version": "3.16.1",
3
+ "version": "3.17.0",
4
4
  "publishConfig": {
5
5
  "tag": "latest"
6
6
  },