node-turbo 1.2.2 → 1.2.3

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
@@ -55,10 +55,10 @@ node-turbo has been tested with 100% code coverage with the following engines/li
55
55
 
56
56
  | Name | Version(s) |
57
57
  | :--- | :--- |
58
- | [Node.js](https://nodejs.org/) | 16.6 - 21.5.0 |
59
- | [Hotwire Turbo](https://turbo.hotwired.dev/) | 7.3.0 - 8.0.10 |
58
+ | [Node.js](https://nodejs.org/) | 16.6 - 22.12.0 |
59
+ | [Hotwire Turbo](https://turbo.hotwired.dev/) | 7.3.0 - 8.0.12 |
60
60
  | [Koa](https://koajs.com/) | 2.14.2 - 2.15.3 |
61
- | [Express](https://expressjs.com/) | 4.18.2 - 4.21.1 |
61
+ | [Express](https://expressjs.com/) | 4.18.2 - 4.21.2 |
62
62
  | [ws](https://github.com/websockets/ws) | 8.15.1 - 8.18.0 |
63
63
 
64
64
  ## API docs
@@ -529,7 +529,7 @@ const httpServer = http.createServer((req, res) => {
529
529
  padding: 10px;
530
530
  }
531
531
  </style>
532
- <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.4/dist/turbo.es2017-esm.js"></script>
532
+ <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.12/dist/turbo.es2017-esm.js"></script>
533
533
  <script>
534
534
  var eventSource = new EventSource('/sse');
535
535
  eventSource.onmessage = function(event) {
@@ -616,7 +616,7 @@ app.use(async (ctx, next) => {
616
616
  padding: 10px;
617
617
  }
618
618
  </style>
619
- <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.4/dist/turbo.es2017-esm.js"></script>
619
+ <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.12/dist/turbo.es2017-esm.js"></script>
620
620
  <script>
621
621
  var eventSource = new EventSource('/sse');
622
622
  eventSource.onmessage = function(event) {
@@ -693,7 +693,7 @@ app.get('/', async (req, res) => {
693
693
  padding: 10px;
694
694
  }
695
695
  </style>
696
- <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.4/dist/turbo.es2017-esm.js"></script>
696
+ <script type="module" src="https://unpkg.com/@hotwired/turbo@8.0.12/dist/turbo.es2017-esm.js"></script>
697
697
  <script>
698
698
  var eventSource = new EventSource('/sse');
699
699
  eventSource.onmessage = function(event) {
package/docs/API.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # node-turbo API documentation
2
2
 
3
- Version 1.2.0
3
+ Version 1.2.3
4
4
 
5
5
  ## Table of Contents
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-turbo",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "A library for Node.js to assist with the server side of 37signals' Hotwire Turbo framework. It provides classes and functions for Web servers and also convenience functions for the frameworks Koa and Express as well as for WebSocket and SSE.",
5
5
  "keywords": [
6
6
  "node",
@@ -59,26 +59,26 @@
59
59
  "test:e2eserver": "node ./test/end2end/server-koa.js"
60
60
  },
61
61
  "dependencies": {
62
- "debug": "^4.3.7",
62
+ "debug": "^4.4.0",
63
63
  "is-plain-object": "^5.0.0",
64
- "negotiator": "^0.6.3"
64
+ "negotiator": "^1.0.0"
65
65
  },
66
66
  "devDependencies": {
67
- "@hotwired/turbo": "^8.0.10",
67
+ "@hotwired/turbo": "^8.0.12",
68
68
  "@koa/bodyparser": "^5.1.1",
69
- "@playwright/test": "^1.48.0",
70
- "c8": "^10.1.2",
71
- "chai": "^5.1.1",
69
+ "@playwright/test": "^1.49.1",
70
+ "c8": "^10.1.3",
71
+ "chai": "^5.1.2",
72
72
  "chai-spies": "^1.1.0",
73
73
  "colorette": "^2.0.20",
74
- "eventsource": "^2.0.2",
75
- "express": "^4.21.1",
74
+ "eventsource": "^3.0.2",
75
+ "express": "^4.21.2",
76
76
  "git-repo-info": "^2.1.1",
77
77
  "koa": "^2.15.3",
78
78
  "koa-route": "^4.0.1",
79
79
  "koa-static": "^5.0.0",
80
- "mocha": "^10.7.3",
81
- "node-mocks-http": "^1.16.1",
80
+ "mocha": "^11.0.1",
81
+ "node-mocks-http": "^1.16.2",
82
82
  "nunjucks": "^3.2.4",
83
83
  "supertest": "^7.0.0",
84
84
  "ws": "^8.18.0"
@@ -2,7 +2,7 @@
2
2
  import { expect } from '../chai.js';
3
3
  import request from 'supertest';
4
4
  import Koa from 'koa';
5
- import EventSource from 'eventsource';
5
+ import { EventSource } from 'eventsource';
6
6
  import { TurboStream } from '#core';
7
7
  import { SseTurboStream } from '#sse';
8
8
  import { PassThrough } from 'node:stream';