@builder.io/sdk-react-nextjs 0.14.19 → 0.14.21

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.
Files changed (29) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-a0af5379.cjs → USE_CLIENT_BUNDLE-421209ac.cjs} +1 -1
  2. package/lib/{node/USE_CLIENT_BUNDLE-e4c15aa7.js → browser/USE_CLIENT_BUNDLE-85cd491c.js} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-7acc7eaf.cjs → browser/USE_SERVER_BUNDLE-7f959896.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-90c6ce15.js → browser/USE_SERVER_BUNDLE-c44b1000.js} +1 -1
  5. package/lib/browser/{bundle-9732e1d3.cjs → bundle-1e8b30d0.cjs} +20 -20
  6. package/lib/browser/{bundle-edd2e835.js → bundle-8e752d91.js} +302 -295
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{node/USE_CLIENT_BUNDLE-8a32af0d.cjs → edge/USE_CLIENT_BUNDLE-1d5cd7a9.cjs} +1 -1
  10. package/lib/{browser/USE_CLIENT_BUNDLE-b63f19ab.js → edge/USE_CLIENT_BUNDLE-e965200b.js} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-d6552b77.cjs → edge/USE_SERVER_BUNDLE-53f11a34.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-4fd50e3b.js → edge/USE_SERVER_BUNDLE-81678d13.js} +1 -1
  13. package/lib/edge/{bundle-af88805d.cjs → bundle-4d349481.cjs} +28 -28
  14. package/lib/edge/{bundle-e86f8464.js → bundle-ad170624.js} +500 -493
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-8bf08d5b.js → node/USE_CLIENT_BUNDLE-14685e18.js} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-0a51f6af.cjs → node/USE_CLIENT_BUNDLE-80d049f9.cjs} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-c0e4ee23.cjs → node/USE_SERVER_BUNDLE-c11df0b0.cjs} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-60e66f1c.js → node/USE_SERVER_BUNDLE-c93447b3.js} +1 -1
  21. package/lib/node/{bundle-1280dc1a.js → bundle-5c7927a4.js} +46 -39
  22. package/lib/node/{bundle-23855e1a.cjs → bundle-8a453488.cjs} +6 -6
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/cjs/helpers/flatten.d.ts +10 -0
  28. package/types/esm/constants/sdk-version.d.ts +1 -1
  29. package/types/esm/helpers/flatten.d.ts +10 -0
@@ -1,8 +1,8 @@
1
- import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-e4c15aa7.js";
2
- import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-1280dc1a.js";
1
+ import { f as n, c as m, F as c, d as p, S as g, V as d } from "./USE_CLIENT_BUNDLE-14685e18.js";
2
+ import { B as l, C as f, x as B, S as C, T as E, G as S, u as x, F as h, H as b, v as y, A as F, c as P, j as T, y as k, z as v, E as R, D as V } from "./bundle-5c7927a4.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
5
- import "./USE_SERVER_BUNDLE-4fd50e3b.js";
5
+ import "./USE_SERVER_BUNDLE-c93447b3.js";
6
6
  import "next/navigation";
7
7
  import "lru-cache";
8
8
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@builder.io/sdk-react-nextjs",
3
3
  "description": "Builder.io RSC SDK for NextJS App Directory",
4
- "version": "0.14.19",
4
+ "version": "0.14.21",
5
5
  "homepage": "https://github.com/BuilderIO/builder/tree/main/packages/sdks/output/nextjs",
6
6
  "repository": {
7
7
  "type": "git",
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.19";
1
+ export declare const SDK_VERSION = "0.14.21";
@@ -4,3 +4,13 @@
4
4
  * { foo: { bar: 'baz' }} -> { 'foo.bar': 'baz' }
5
5
  */
6
6
  export declare function flatten<T extends Record<string, any>>(object: T, path?: string | null, separator?: string): T;
7
+ /**
8
+ * Flatten a nested MongoDB query object into a flat object with dot-separated keys.
9
+ * $ keys are not flattened and are left as is.
10
+ *
11
+ * { foo: { bar: { $gt: 5 }}} -> { 'foo.bar': { '$gt': 5 }}
12
+ * { foo: {'bar.id': { $elemMatch: { 'baz.id': { $in: ['abc', 'bcd'] }}}}} -> { 'foo.bar.id': { '$elemMatch': { 'baz.id': { '$in': ['abc', 'bcd'] }}}}
13
+ */
14
+ export declare function flattenMongoQuery(obj: any, _current?: any, _res?: any): {
15
+ [key: string]: string;
16
+ };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.14.19";
1
+ export declare const SDK_VERSION = "0.14.21";
@@ -4,3 +4,13 @@
4
4
  * { foo: { bar: 'baz' }} -> { 'foo.bar': 'baz' }
5
5
  */
6
6
  export declare function flatten<T extends Record<string, any>>(object: T, path?: string | null, separator?: string): T;
7
+ /**
8
+ * Flatten a nested MongoDB query object into a flat object with dot-separated keys.
9
+ * $ keys are not flattened and are left as is.
10
+ *
11
+ * { foo: { bar: { $gt: 5 }}} -> { 'foo.bar': { '$gt': 5 }}
12
+ * { foo: {'bar.id': { $elemMatch: { 'baz.id': { $in: ['abc', 'bcd'] }}}}} -> { 'foo.bar.id': { '$elemMatch': { 'baz.id': { '$in': ['abc', 'bcd'] }}}}
13
+ */
14
+ export declare function flattenMongoQuery(obj: any, _current?: any, _res?: any): {
15
+ [key: string]: string;
16
+ };