@next-core/brick-kit 2.101.0 → 2.101.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.101.1](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.101.0...@next-core/brick-kit@2.101.1) (2022-01-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * fix `_.isEmpty(QUERY)` ([3202979](https://github.com/easyops-cn/next-core/commit/3202979a524a512423b9ce1f698c265ce650755c))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.101.0](https://github.com/easyops-cn/next-core/compare/@next-core/brick-kit@2.100.0...@next-core/brick-kit@2.101.0) (2022-01-05)
7
18
 
8
19
 
@@ -1893,28 +1893,10 @@
1893
1893
  });
1894
1894
 
1895
1895
  case "QUERY":
1896
- return getDynamicReadOnlyProxy({
1897
- get(target, key) {
1898
- return query.has(key) ? query.get(key) : undefined;
1899
- },
1900
-
1901
- ownKeys() {
1902
- return Array.from(query.keys());
1903
- }
1904
-
1905
- });
1896
+ return Object.fromEntries(Array.from(query.keys()).map(key => [key, query.get(key)]));
1906
1897
 
1907
1898
  case "QUERY_ARRAY":
1908
- return getDynamicReadOnlyProxy({
1909
- get(target, key) {
1910
- return query.has(key) ? query.getAll(key) : undefined;
1911
- },
1912
-
1913
- ownKeys() {
1914
- return Array.from(query.keys());
1915
- }
1916
-
1917
- });
1899
+ return Object.fromEntries(Array.from(query.keys()).map(key => [key, query.getAll(key)]));
1918
1900
 
1919
1901
  case "SEGUE":
1920
1902
  return {