prompt-api-polyfill 1.18.0 → 1.19.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-DMD-8IKq.js";
1
+ import { n as e, t } from "../chunks/defaults-n7NcZd-K.js";
2
2
  import { initializeApp as n } from "firebase/app";
3
3
  import { ReCaptchaEnterpriseProvider as r, initializeAppCheck as i } from "firebase/app-check";
4
4
  import { GoogleAIBackend as a, InferenceMode as o, Schema as s, VertexAIBackend as c, getAI as l, getGenerativeModel as u } from "firebase/ai";
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-DMD-8IKq.js";
1
+ import { n as e, t } from "../chunks/defaults-n7NcZd-K.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-DMD-8IKq.js";
1
+ import { n as e, t } from "../chunks/defaults-n7NcZd-K.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-DMD-8IKq.js";
1
+ import { n as e, t } from "../chunks/defaults-n7NcZd-K.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 {
@@ -1,4 +1,4 @@
1
- import { n as e, t } from "../chunks/defaults-DMD-8IKq.js";
1
+ import { n as e, t } from "../chunks/defaults-n7NcZd-K.js";
2
2
  import { CreateMLCEngine as n, prebuiltAppConfig as r } from "@mlc-ai/web-llm";
3
3
  //#region backends/webllm.js
4
4
  var i = class extends e {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prompt-api-polyfill",
3
- "version": "1.18.0",
3
+ "version": "1.19.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",
@@ -50,17 +50,17 @@
50
50
  "eslint": "^10.4.0",
51
51
  "eslint-config-prettier": "^10.1.8",
52
52
  "globals": "^17.6.0",
53
- "node-addon-api": "^8.7.0",
53
+ "node-addon-api": "^8.8.0",
54
54
  "node-gyp": "^12.3.0",
55
55
  "prettier": "^3.8.3",
56
56
  "prettier-plugin-curly": "^0.4.1",
57
- "vite": "^8.0.13"
57
+ "vite": "^8.0.14"
58
58
  },
59
59
  "dependencies": {
60
- "@google/genai": "^2.3.0",
60
+ "@google/genai": "^2.6.0",
61
61
  "@huggingface/transformers": "^4.2.0",
62
62
  "@mlc-ai/web-llm": "^0.2.83",
63
63
  "firebase": "^12.13.0",
64
- "openai": "^6.37.0"
64
+ "openai": "^6.39.0"
65
65
  }
66
66
  }