@formbricks/hub 0.4.2 → 0.4.4

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
@@ -1,5 +1,39 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.4 (2026-04-10)
4
+
5
+ Full Changelog: [v0.4.3...v0.4.4](https://github.com/formbricks/hub-typescript/compare/v0.4.3...v0.4.4)
6
+
7
+ ### Chores
8
+
9
+ * **internal:** codegen related update ([0739fce](https://github.com/formbricks/hub-typescript/commit/0739fce1654209416037f517e244d54a92114b29))
10
+ * **internal:** fix MCP server import ordering ([7e77df7](https://github.com/formbricks/hub-typescript/commit/7e77df76e3e2b9b28123b82ae38c71e1ba0c2cb2))
11
+ * **internal:** show error causes in MCP servers when running in local mode ([e99bb20](https://github.com/formbricks/hub-typescript/commit/e99bb20da160377df4886d4fec24140e8c27439e))
12
+ * **internal:** support type annotations when running MCP in local execution mode ([819033c](https://github.com/formbricks/hub-typescript/commit/819033cee84aa1b4834cbff913c01b3ec5ce7655))
13
+ * **mcp-server:** increase local docs search result count from 5 to 10 ([79579ac](https://github.com/formbricks/hub-typescript/commit/79579ac4bf4c34ea5959dd8d01f543049b341557))
14
+ * **mcp-server:** log client info ([8683d8c](https://github.com/formbricks/hub-typescript/commit/8683d8ce060bcaf64f11948f726fc7c58049c5eb))
15
+
16
+ ## 0.4.3 (2026-04-01)
17
+
18
+ Full Changelog: [v0.4.2...v0.4.3](https://github.com/formbricks/hub-typescript/compare/v0.4.2...v0.4.3)
19
+
20
+ ### Bug Fixes
21
+
22
+ * **internal:** gitignore generated `oidc` dir ([4069db2](https://github.com/formbricks/hub-typescript/commit/4069db2ff4158540c7df39c94d4d6b5d013cc628))
23
+
24
+
25
+ ### Chores
26
+
27
+ * **ci:** escape input path in publish-npm workflow ([db02dff](https://github.com/formbricks/hub-typescript/commit/db02dff486da29fe979b38e7bcabd3a6f78c7fb5))
28
+ * **ci:** skip lint on metadata-only changes ([b87e8b4](https://github.com/formbricks/hub-typescript/commit/b87e8b4e057d872de040de418152850d0744bf6a))
29
+ * **internal:** fix MCP server TS errors that occur with required client options ([e86f0a9](https://github.com/formbricks/hub-typescript/commit/e86f0a99bbcf89d98f0b58e9d227e05ce858e305))
30
+ * **internal:** improve local docs search for MCP servers ([93e4bda](https://github.com/formbricks/hub-typescript/commit/93e4bdaec56cdc3f4407b756b0177f3e4accd76e))
31
+ * **internal:** improve local docs search for MCP servers ([709a944](https://github.com/formbricks/hub-typescript/commit/709a944f1e3f22f980512f681f3bdaa9465f9769))
32
+ * **internal:** support custom-instructions-path flag in MCP servers ([829ce32](https://github.com/formbricks/hub-typescript/commit/829ce32c186b67a9b38cf61fb2423814994478b2))
33
+ * **internal:** support local docs search in MCP servers ([579f58b](https://github.com/formbricks/hub-typescript/commit/579f58b13c38a8ddd6b565eee305d2c557fb4273))
34
+ * **internal:** update gitignore ([7afa43a](https://github.com/formbricks/hub-typescript/commit/7afa43a05eca0e28b0ac9997b4147e192caa9edb))
35
+ * **mcp-server:** add support for session id, forward client info ([a0c1d7d](https://github.com/formbricks/hub-typescript/commit/a0c1d7d0c420d1ada329973c1db906c831eee477))
36
+
3
37
  ## 0.4.2 (2026-03-17)
4
38
 
5
39
  Full Changelog: [v0.4.1...v0.4.2](https://github.com/formbricks/hub-typescript/compare/v0.4.1...v0.4.2)
@@ -11,10 +11,10 @@ exports.readEnv = void 0;
11
11
  */
12
12
  const readEnv = (env) => {
13
13
  if (typeof globalThis.process !== 'undefined') {
14
- return globalThis.process.env?.[env]?.trim() ?? undefined;
14
+ return globalThis.process.env?.[env]?.trim() || undefined;
15
15
  }
16
16
  if (typeof globalThis.Deno !== 'undefined') {
17
- return globalThis.Deno.env?.get?.(env)?.trim();
17
+ return globalThis.Deno.env?.get?.(env)?.trim() || undefined;
18
18
  }
19
19
  return undefined;
20
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,OAAO,WAQlB"}
1
+ {"version":3,"file":"env.js","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF;;;;;;GAMG;AACI,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AARW,QAAA,OAAO,WAQlB"}
@@ -8,10 +8,10 @@
8
8
  */
9
9
  export const readEnv = (env) => {
10
10
  if (typeof globalThis.process !== 'undefined') {
11
- return globalThis.process.env?.[env]?.trim() ?? undefined;
11
+ return globalThis.process.env?.[env]?.trim() || undefined;
12
12
  }
13
13
  if (typeof globalThis.Deno !== 'undefined') {
14
- return globalThis.Deno.env?.get?.(env)?.trim();
14
+ return globalThis.Deno.env?.get?.(env)?.trim() || undefined;
15
15
  }
16
16
  return undefined;
17
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC;IAC1D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
1
+ {"version":3,"file":"env.mjs","sourceRoot":"","sources":["../../src/internal/utils/env.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAsB,EAAE;IACzD,IAAI,OAAQ,UAAkB,CAAC,OAAO,KAAK,WAAW,EAAE,CAAC;QACvD,OAAQ,UAAkB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACrE,CAAC;IACD,IAAI,OAAQ,UAAkB,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;QACpD,OAAQ,UAAkB,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC;IACvE,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formbricks/hub",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "description": "The official TypeScript library for the Formbricks Hub API",
5
5
  "author": "Formbricks Hub <hola@formbricks.com>",
6
6
  "types": "./index.d.ts",
@@ -9,10 +9,10 @@
9
9
  */
10
10
  export const readEnv = (env: string): string | undefined => {
11
11
  if (typeof (globalThis as any).process !== 'undefined') {
12
- return (globalThis as any).process.env?.[env]?.trim() ?? undefined;
12
+ return (globalThis as any).process.env?.[env]?.trim() || undefined;
13
13
  }
14
14
  if (typeof (globalThis as any).Deno !== 'undefined') {
15
- return (globalThis as any).Deno.env?.get?.(env)?.trim();
15
+ return (globalThis as any).Deno.env?.get?.(env)?.trim() || undefined;
16
16
  }
17
17
  return undefined;
18
18
  };
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.4.2'; // x-release-please-version
1
+ export const VERSION = '0.4.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.2";
1
+ export declare const VERSION = "0.4.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.4.2";
1
+ export declare const VERSION = "0.4.4";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.4.2'; // x-release-please-version
4
+ exports.VERSION = '0.4.4'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.4.2'; // x-release-please-version
1
+ export const VERSION = '0.4.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map