@powly/sdk 0.4.0 → 0.4.1

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 fiioonnn
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -10,7 +10,7 @@ invites, multiplayer rooms, Twitch chat).
10
10
  npm install @powly/sdk
11
11
  ```
12
12
 
13
- Starting a new game? `npm create powly-game@latest my-game` sets up a React + Vite project with
13
+ Starting a new game? `npm create powly@latest my-game` sets up a React + Vite project with
14
14
  the SDK.
15
15
 
16
16
  ## Use
@@ -31,7 +31,7 @@ await powly.leaderboards.submit("high-score", 1200);
31
31
  Without a bundler, load the classic script instead; it defines `window.Powly`:
32
32
 
33
33
  ```html
34
- <script src="https://cdn.jsdelivr.net/npm/@powly/sdk@0.4.0/dist/powly.js"></script>
34
+ <script src="https://cdn.jsdelivr.net/npm/@powly/sdk@0.4.1/dist/powly.js"></script>
35
35
  ```
36
36
 
37
37
  ## Testing
package/dist/powly.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- /* Powly SDK 0.4.0: types for powly.js and powly.mjs */
1
+ /* Powly SDK 0.4.1: types for powly.js and powly.mjs */
2
2
  /** This SDK's version; Powly's Studio shows it next to the downloads. */
3
- export declare const SDK_VERSION = "0.4.0";
3
+ export declare const SDK_VERSION = "0.4.1";
4
4
 
5
5
  export declare const PROTOCOL = "powly-sdk";
6
6
  export declare const PROTOCOL_VERSION = 1;
package/dist/powly.js CHANGED
@@ -1,8 +1,8 @@
1
- /* Powly SDK 0.4.0: defines window.Powly */
1
+ /* Powly SDK 0.4.1: defines window.Powly */
2
2
  (function () {
3
3
  "use strict";
4
4
  /** This SDK's version; Powly's Studio shows it next to the downloads. */
5
- const SDK_VERSION = "0.4.0";
5
+ const SDK_VERSION = "0.4.1";
6
6
 
7
7
  // The messages between a game (this SDK, inside Powly's iframe) and the Powly page that framed it.
8
8
  // Shared with the host side (apps/web/components/player/sdk-host.ts).
package/dist/powly.mjs CHANGED
@@ -1,6 +1,6 @@
1
- /* Powly SDK 0.4.0: ES module */
1
+ /* Powly SDK 0.4.1: ES module */
2
2
  /** This SDK's version; Powly's Studio shows it next to the downloads. */
3
- const SDK_VERSION = "0.4.0";
3
+ const SDK_VERSION = "0.4.1";
4
4
 
5
5
  // The messages between a game (this SDK, inside Powly's iframe) and the Powly page that framed it.
6
6
  // Shared with the host side (apps/web/components/player/sdk-host.ts).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powly/sdk",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "Powly game SDK: launch handshake, session tokens and platform services.",
6
6
  "license": "MIT",
@@ -12,6 +12,13 @@
12
12
  "browser-games"
13
13
  ],
14
14
  "homepage": "https://powly.gg",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/fiioonnn/powly-sdk.git"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/fiioonnn/powly-sdk/issues"
21
+ },
15
22
  "exports": {
16
23
  ".": {
17
24
  "types": "./dist/powly.d.ts",
@@ -36,6 +43,7 @@
36
43
  "scripts": {
37
44
  "build": "tsc -p tsconfig.build.json && node scripts/bundle.ts",
38
45
  "typecheck": "tsc --noEmit",
39
- "example:zip": "node scripts/example-zip.ts"
46
+ "example:zip": "node scripts/example-zip.ts",
47
+ "mirror": "node scripts/mirror.ts"
40
48
  }
41
49
  }