playhtml 2.1.0 → 2.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/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
4
4
 
5
+ ## 2.1.2 - 2024-01-30
6
+
7
+ - align dependencies
8
+
9
+ ## 2.1.1 - 2024-01-30
10
+
11
+ - added an `init.js` file export which can be imported to auto-initialize with default settings. Designed to be simplest way to get started with playhtml.
12
+
5
13
  ## 2.1.0 - 2024-01-27
6
14
 
7
15
  - **NEW FEATURE** Added eventing support for imperative logic like showing confetti whenever someone clicks a button which don't depend on a reacting to a data value changing. See the README under "eventing" for more details on how to set this up.
package/README.md CHANGED
@@ -55,12 +55,12 @@ To use this library, you can import the library from a CDN (in this case we will
55
55
  src="https://unpkg.com/playhtml@latest/dist/init.es.js"
56
56
  ></script>
57
57
 
58
- <!-- Option 2 (customize options to use your own partykit provider or specify the room) -->
58
+ <!-- Option 2 (customize options to specify the room everyone connects to (a unique ID) or use your own partykit provider) -->
59
59
  <script type="module">
60
60
  import "https://unpkg.com/playhtml@latest";
61
61
  playhtml.init({
62
62
  room: "my-room",
63
- host: "mypartykit.user.partykit.dev",
63
+ host: `${myPartykitUser}.partykit.dev`,
64
64
  });
65
65
  </script>
66
66
  </body>
@@ -0,0 +1,2 @@
1
+ import { playhtml as i } from "./playhtml.es.js";
2
+ i.init({});