node-turbo 1.2.2 → 1.2.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Walter Krivanek
3
+ Copyright (c) 2024-2025 Walter Krivanek
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -55,11 +55,11 @@ 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 |
60
- | [Koa](https://koajs.com/) | 2.14.2 - 2.15.3 |
61
- | [Express](https://expressjs.com/) | 4.18.2 - 4.21.1 |
62
- | [ws](https://github.com/websockets/ws) | 8.15.1 - 8.18.0 |
58
+ | [Node.js](https://nodejs.org/) | 16.6 - 22.14.0 |
59
+ | [Hotwire Turbo](https://turbo.hotwired.dev/) | 7.3.0 - 8.0.13 |
60
+ | [Koa](https://koajs.com/) | 2.14.2 - 2.16.0 |
61
+ | [Express](https://expressjs.com/) | 4.18.2 - 4.21.2 |
62
+ | [ws](https://github.com/websockets/ws) | 8.15.1 - 8.18.1 |
63
63
 
64
64
  ## API docs
65
65
  See [`/docs/API.md`](./docs/API.md) for a documentation of all node-turbo classes and functions.
@@ -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) {
@@ -720,4 +720,4 @@ app.listen(config.port);
720
720
  ```
721
721
  ## License
722
722
 
723
- node-turbo is © 2024 Walter Krivanek and released under the [MIT license](https://mit-license.org).
723
+ node-turbo is © 2024-2025 Walter Krivanek and released under the [MIT license](https://mit-license.org).
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.4
4
4
 
5
5
  ## Table of Contents
6
6
 
@@ -1050,4 +1050,4 @@ Gets thrown when invalid attributes are discovered.
1050
1050
 
1051
1051
  ***
1052
1052
 
1053
- node-turbo is © 2024 by Walter Krivanek and released under the [MIT license](https://mit-license.org).
1053
+ node-turbo is © 2024-2025 by Walter Krivanek and released under the [MIT license](https://mit-license.org).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-turbo",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
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,28 +59,28 @@
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.13",
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.50.1",
70
+ "c8": "^10.1.3",
71
+ "chai": "^5.2.0",
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.5",
75
+ "express": "^4.21.2",
76
76
  "git-repo-info": "^2.1.1",
77
- "koa": "^2.15.3",
77
+ "koa": "^2.16.0",
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.1.0",
81
+ "node-mocks-http": "^1.16.2",
82
82
  "nunjucks": "^3.2.4",
83
83
  "supertest": "^7.0.0",
84
- "ws": "^8.18.0"
84
+ "ws": "^8.18.1"
85
85
  }
86
86
  }
@@ -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';