prompt-api-polyfill 1.14.3 → 1.15.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.
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
1
+ import { n as e, t } from "../chunks/defaults-BHsuqSiF.js";
2
2
  import { initializeApp as n } from "firebase/app";
3
3
  import { GoogleAIBackend as r, InferenceMode as i, Schema as a, VertexAIBackend as o, getAI as s, getGenerativeModel as c } from "firebase/ai";
4
4
  //#region node_modules/@firebase/util/dist/postinstall.mjs
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
1
+ import { n as e, t } from "../chunks/defaults-BHsuqSiF.js";
2
2
  import { GoogleGenAI as n } from "@google/genai";
3
3
  //#region backends/gemini.js
4
4
  var r = class extends e {
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
1
+ import { n as e, t } from "../chunks/defaults-BHsuqSiF.js";
2
2
  import n from "openai";
3
3
  //#region backends/openai.js
4
4
  var r = class extends e {
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-B5W7MP9T.js";
1
+ import { n as e, t } from "../chunks/defaults-BHsuqSiF.js";
2
2
  import { TextStreamer as n, env as r, pipeline as i } from "@huggingface/transformers";
3
3
  //#region backends/transformers.js
4
4
  var a = class extends e {
@@ -26,7 +26,7 @@ var e = class {
26
26
  gemini: { modelName: "gemini-2.5-flash-lite" },
27
27
  openai: { modelName: "gpt-4o" },
28
28
  transformers: {
29
- modelName: "onnx-community/gemma-3-1b-it-ONNX-GQA",
29
+ modelName: "onnx-community/gemma-4-E2B-it-ONNX",
30
30
  device: "webgpu",
31
31
  dtype: "q4f16"
32
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prompt-api-polyfill",
3
- "version": "1.14.3",
3
+ "version": "1.15.0",
4
4
  "description": "Polyfill for the Prompt API (`LanguageModel`) backed by Firebase AI Logic, Gemini API, OpenAI API, or Transformers.js.",
5
5
  "type": "module",
6
6
  "main": "./dist/prompt-api-polyfill.js",
@@ -47,18 +47,18 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@eslint/js": "^10.0.1",
50
- "eslint": "^10.1.0",
50
+ "eslint": "^10.2.0",
51
51
  "eslint-config-prettier": "^10.1.8",
52
52
  "globals": "^17.4.0",
53
53
  "node-addon-api": "^8.7.0",
54
54
  "node-gyp": "^12.2.0",
55
55
  "prettier": "^3.8.1",
56
56
  "prettier-plugin-curly": "^0.4.1",
57
- "vite": "^8.0.3"
57
+ "vite": "^8.0.7"
58
58
  },
59
59
  "dependencies": {
60
- "@google/genai": "^1.46.0",
61
- "@huggingface/transformers": "^4.0.0-next.9",
60
+ "@google/genai": "^1.48.0",
61
+ "@huggingface/transformers": "^4.0.1",
62
62
  "firebase": "^12.11.0",
63
63
  "openai": "^6.33.0"
64
64
  }
@@ -1,4 +0,0 @@
1
- //#region backends/firebase-mock-appcheck.js
2
- var e = () => {}, t = class {};
3
- //#endregion
4
- export { t as ReCaptchaEnterpriseProvider, e as initializeAppCheck };