nuxt-miniapp-telegram-max 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # nuxt-miniapp-telegram-max
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/nuxt-miniapp-telegram-max)](https://www.npmjs.com/package/nuxt-miniapp-telegram-max)
4
+ [![license](https://img.shields.io/npm/l/nuxt-miniapp-telegram-max)](./LICENSE)
5
+
3
6
  Один Nuxt-проект — мини-приложение сразу в **Telegram** и в **MAX**, и обычный сайт
4
7
  в придачу. Один API для обоих мессенджеров, безопасный для SSR, и проверка
5
8
  initData на сервере.
@@ -26,7 +29,7 @@ initData на сервере.
26
29
  `<html>` встаёт класс `mini-app-telegram` или `mini-app-max` — разметка «только
27
30
  для мессенджера» показывается без мигания и без ошибок гидрации.
28
31
  - **Обрезанная initData.** Telegram на Android и десктопе отдаёт в
29
- `tgWebApp.initData` огрызок вида `query_id`; модуль берёт данные из хеша запуска.
32
+ `Telegram.WebApp.initData` огрызок вида `query_id`; модуль берёт данные из хеша запуска.
30
33
  - **Поздний хеш на iOS.** Telegram на iOS иногда ставит параметры запуска уже после
31
34
  загрузки страницы — модуль их дожидается.
32
35
  - **Перезагрузка внутри приложения.** Роутер стирает хеш при первой навигации; после
@@ -52,6 +55,10 @@ initData на сервере.
52
55
  npx nuxt module add nuxt-miniapp-telegram-max
53
56
  ```
54
57
 
58
+ Или вручную: поставить пакет (`pnpm add nuxt-miniapp-telegram-max`,
59
+ `npm install nuxt-miniapp-telegram-max` или `yarn add nuxt-miniapp-telegram-max`) и в
60
+ `nuxt.config.ts` — `modules: ['nuxt-miniapp-telegram-max']`. Нужен Nuxt 4.
61
+
55
62
  Больше ничего не нужно: откройте приложение кнопкой меню бота или ссылкой
56
63
  `startapp` — в Telegram и в MAX.
57
64
 
@@ -117,6 +124,10 @@ For a Telegram-only app with every feature of the platform, see
117
124
  npx nuxt module add nuxt-miniapp-telegram-max
118
125
  ```
119
126
 
127
+ Or by hand: install the package (`pnpm add nuxt-miniapp-telegram-max`,
128
+ `npm install nuxt-miniapp-telegram-max` or `yarn add nuxt-miniapp-telegram-max`) and add
129
+ `modules: ['nuxt-miniapp-telegram-max']` to `nuxt.config.ts`. Nuxt 4 is required.
130
+
120
131
  ### Server-rendered markup
121
132
 
122
133
  The server cannot know the client, so it always renders the website. Don't put
@@ -242,6 +253,9 @@ pnpm test # unit + end-to-end (Chromium: pnpm exec playwright-core install
242
253
  pnpm lint
243
254
  ```
244
255
 
256
+ A tag `v*` publishes that version to npm through `.github/workflows/release.yml`
257
+ (trusted publishing, with provenance): `npm version patch --sign-git-tag && git push --follow-tags`.
258
+
245
259
  ## License
246
260
 
247
261
  [MIT](./LICENSE)
package/dist/module.json CHANGED
@@ -4,9 +4,9 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "0.1.0",
7
+ "version": "0.1.2",
8
8
  "builder": {
9
- "@nuxt/module-builder": "1.0.3",
9
+ "@nuxt/module-builder": "1.0.4",
10
10
  "unbuild": "unknown"
11
11
  }
12
12
  }
@@ -1,3 +1,3 @@
1
- import type { Plugin } from '#app';
1
+ import type { Plugin } from 'nuxt/app';
2
2
  declare const plugin: Plugin;
3
3
  export default plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-miniapp-telegram-max",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Telegram and MAX Mini Apps for Nuxt: one SSR-safe API for both messengers and the plain website, plus init data validation on the server",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,25 +39,25 @@
39
39
  "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
40
40
  },
41
41
  "dependencies": {
42
- "@nuxt/kit": "^4.6.2",
43
- "defu": "^6.1.7"
42
+ "@nuxt/kit": "^4.0.0",
43
+ "defu": "^6.0.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@nuxt/devtools": "^3.4.2",
46
+ "@nuxt/devtools": "^4.2.2",
47
47
  "@nuxt/eslint-config": "^1.17.0",
48
- "@nuxt/module-builder": "^1.0.3",
49
- "@nuxt/schema": "^4.6.2",
50
- "@nuxt/test-utils": "^4.3.3",
51
- "@types/node": "^24.0.0",
48
+ "@nuxt/module-builder": "^1.0.4",
49
+ "@nuxt/schema": "^4.7.0",
50
+ "@nuxt/test-utils": "^4.4.0",
51
+ "@types/node": "^26.6.11",
52
52
  "changelogen": "^0.6.2",
53
- "eslint": "^10.12.0",
53
+ "eslint": "^10.16.0",
54
54
  "happy-dom": "^21.0.4",
55
- "nuxt": "^4.6.2",
56
- "playwright-core": "^1.64.1",
55
+ "nuxt": "^4.7.0",
56
+ "playwright-core": "^1.65.1",
57
57
  "typescript": "^6.0.3",
58
- "vitest": "^5.0.3",
59
- "vue": "^3.5.44",
60
- "vue-tsc": "^3.3.12"
58
+ "vitest": "^5.1.2",
59
+ "vue": "^3.5.46",
60
+ "vue-tsc": "^3.3.14"
61
61
  },
62
62
  "author": "Timofey",
63
63
  "keywords": [
@@ -70,7 +70,7 @@
70
70
  "mini-apps",
71
71
  "webapp"
72
72
  ],
73
- "packageManager": "pnpm@11.0.9",
73
+ "packageManager": "pnpm@12.23.0",
74
74
  "engines": {
75
75
  "node": ">=20"
76
76
  }