Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laravel/echo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.15.3
Choose a base ref
...
head repository: laravel/echo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Aug 29, 2023

  1. Update CHANGELOG

    driesvints authored and github-actions[bot] committed Aug 29, 2023
    Copy the full SHA
    f7b16d1 View commit details

Commits on Oct 17, 2023

  1. Uses actions/checkout@v4

    nunomaduro authored Oct 17, 2023
    Copy the full SHA
    02511fd View commit details
  2. Uses actions/checkout@v4

    nunomaduro authored Oct 17, 2023
    1
    Copy the full SHA
    27add6c View commit details

Commits on Jan 26, 2024

  1. Update 1_Bug_report.yml

    driesvints authored Jan 26, 2024
    Copy the full SHA
    23c9a23 View commit details

Commits on Feb 14, 2024

  1. Copy the full SHA
    2d99afd View commit details

Commits on Feb 20, 2024

  1. 1.16.0

    taylorotwell committed Feb 20, 2024
    Copy the full SHA
    3579ecf View commit details

Commits on Feb 27, 2024

  1. Update CHANGELOG

    driesvints authored and github-actions[bot] committed Feb 27, 2024
    Copy the full SHA
    bb66b08 View commit details

Commits on Apr 8, 2024

  1. Copy the full SHA
    786f814 View commit details

Commits on Apr 9, 2024

  1. Throw error on unsupported broadcaster (#396)

    * Throw error on unsupported broadcaster
    
    * update CS
    
    * fix CS
    
    * fix cs
    
    * fix eslint
    
    * Removed return
    
    * fix CS
    
    * Update echo.ts
    
    * Update echo.test.ts
    
    ---------
    
    Co-authored-by: Taylor Otwell <taylor@laravel.com>
    SuperDJ and taylorotwell authored Apr 9, 2024
    Copy the full SHA
    b2931dc View commit details
  2. 1.16.1

    taylorotwell committed Apr 9, 2024
    Copy the full SHA
    444163a View commit details
  3. Update CHANGELOG

    driesvints authored and github-actions[bot] committed Apr 9, 2024
    Copy the full SHA
    9eb317b View commit details

Commits on Aug 2, 2024

  1. Copy the full SHA
    03f0f1e View commit details
  2. Merge pull request #400 from Jubeki/patch-1

    Replace dead link in Security Policy
    driesvints authored Aug 2, 2024
    Copy the full SHA
    5783c51 View commit details

Commits on Sep 3, 2024

  1. Update config.yml

    driesvints authored Sep 3, 2024
    Copy the full SHA
    522296e View commit details
  2. Copy the full SHA
    b03cf52 View commit details
  3. Update config.yml

    driesvints authored Sep 3, 2024
    Copy the full SHA
    50b03a8 View commit details

Commits on Sep 27, 2024

  1. Update logo to support dark/light theme (#402)

    * Update logo.svg
    
    * Update README.md
    milewski authored Sep 27, 2024
    Copy the full SHA
    1d4bef1 View commit details

Commits on Nov 3, 2024

  1. Fix types for the echo library (#403)

    * Fix wrong channel types
    
    * Add generic types
    
    * Throw an error when attempting to use encrypted channels with socket.io
    
    * Fix types for the function broadcaster
    
    * Add generic to channel types
    
    * Fix function types
    
    * Make connectors generic
    
    * Remove new keyword for function broadcasters
    
    * Fix tests
    
    * Specify return type for function broadcasters
    
    * Clean up generics
    
    * Remove unnecessary cast
    
    * Update quotes
    
    * Use NullChannel return type explicitly
    dennisprudlo authored Nov 3, 2024
    Copy the full SHA
    e8491aa View commit details
  2. Apply fixes from StyleCI

    StyleCIBot committed Nov 3, 2024
    Copy the full SHA
    94119d4 View commit details

Commits on Nov 12, 2024

  1. 1.17.0

    taylorotwell committed Nov 12, 2024
    Copy the full SHA
    019951a View commit details
  2. Update CHANGELOG

    taylorotwell authored and github-actions[bot] committed Nov 12, 2024
    Copy the full SHA
    5d3ed31 View commit details

Commits on Nov 19, 2024

  1. Fix custom broadcaster usages (#404)

    * Fix custom broadcaster usages
    
    * improve test
    
    * lint
    
    * styleci
    bytestream authored Nov 19, 2024
    Copy the full SHA
    d7f2021 View commit details

Commits on Nov 26, 2024

  1. 1.17.1

    taylorotwell committed Nov 26, 2024
    Copy the full SHA
    174dbca View commit details
  2. Update CHANGELOG

    taylorotwell authored and github-actions[bot] committed Nov 26, 2024
    Copy the full SHA
    8234ce0 View commit details

Commits on Jan 7, 2025

  1. [1.x] Replaces deprecated auth options for default Pusher (#407)

    * swap out deprecated channel auth options
    
    * add missed header assignment
    ProjektGopher authored Jan 7, 2025
    2
    Copy the full SHA
    fad5599 View commit details

Commits on Jan 14, 2025

  1. 1.18.0

    taylorotwell committed Jan 14, 2025
    Copy the full SHA
    fdf9f17 View commit details

Commits on Jan 22, 2025

  1. Copy the full SHA
    b382af0 View commit details
  2. 1.19.0

    taylorotwell committed Jan 22, 2025
    Copy the full SHA
    09c9350 View commit details

Commits on Jan 26, 2025

  1. Fix TypeScript Error in isConstructor (#412)

    * Fix TS error
    
    node_modules/laravel-echo/src/util/index.ts:5:13 - error TS18046: 'err' is of type 'unknown'.
    
    * Refactor to not use Reflect.construct to reduce chance on breaking change
    
    * Update index.ts
    SanderMuller authored Jan 26, 2025
    Copy the full SHA
    85f7c11 View commit details

Commits on Jan 27, 2025

  1. [2.0] Major package upgrades, better TypeScript support, smaller build (

    #413)
    
    * Add full types for pusher and socketio
    
    * Update index.ts
    
    * enforce importsNotUsedAsValues
    
    * remove .idea files
    
    * major upgrades
    
    * add external Compatible packages not included in the bundle to rollup
    
    * Update package.json
    
    * Styleci
    
    * fix test & styleci
    SanderMuller authored Jan 27, 2025
    Copy the full SHA
    55f6de3 View commit details
  2. Copy the full SHA
    e1943a2 View commit details

Commits on Feb 11, 2025

  1. Copy the full SHA
    53e1486 View commit details
Showing with 650 additions and 281 deletions.
  1. +0 −16 .eslintrc.js
  2. +3 −3 .github/ISSUE_TEMPLATE/1_Bug_report.yml
  3. +0 −4 .github/ISSUE_TEMPLATE/2_Feature_request.md
  4. +3 −0 .github/ISSUE_TEMPLATE/config.yml
  5. +1 −1 .github/SECURITY.md
  6. +1 −1 .github/workflows/codeql-analysis.yml
  7. +1 −1 .github/workflows/tests.yml
  8. +3 −0 .github/workflows/update-changelog.yml
  9. +1 −0 .gitignore
  10. +1 −0 .nvmrc
  11. +24 −1 CHANGELOG.md
  12. +1 −1 README.md
  13. +22 −1 art/logo.svg
  14. +41 −0 eslint.config.mjs
  15. +12 −0 jest.config.cjs
  16. +0 −6 jest.config.js
  17. +40 −24 package.json
  18. +35 −21 rollup.config.js
  19. +11 −8 src/channel/channel.ts
  20. +1 −0 src/channel/index.ts
  21. +7 −7 src/channel/null-channel.ts
  22. +13 −0 src/channel/null-encrypted-private-channel.ts
  23. +7 −7 src/channel/null-presence-channel.ts
  24. +1 −1 src/channel/null-private-channel.ts
  25. +5 −5 src/channel/presence-channel.ts
  26. +20 −21 src/channel/pusher-channel.ts
  27. +5 −2 src/channel/pusher-encrypted-private-channel.ts
  28. +14 −10 src/channel/pusher-presence-channel.ts
  29. +3 −2 src/channel/pusher-private-channel.ts
  30. +16 −18 src/channel/socketio-channel.ts
  31. +8 −8 src/channel/socketio-presence-channel.ts
  32. +1 −1 src/channel/socketio-private-channel.ts
  33. +49 −19 src/connector/connector.ts
  34. +10 −10 src/connector/null-connector.ts
  35. +37 −22 src/connector/pusher-connector.ts
  36. +20 −14 src/connector/socketio-connector.ts
  37. +133 −25 src/echo.ts
  38. +3 −3 src/util/event-formatter.ts
  39. +13 −0 src/util/index.ts
  40. +13 −7 tests/channel/socketio-channel.test.ts
  41. +32 −0 tests/echo.test.ts
  42. +1 −1 tests/util/event-formatter.test.ts
  43. +22 −8 tsconfig.json
  44. +0 −2 typings/index.d.ts
  45. +16 −0 typings/window.d.ts
16 changes: 0 additions & 16 deletions .eslintrc.js

This file was deleted.

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/1_Bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Bug Report
description: "Report a general library issue."
description: "Report something that's broken."
body:
- type: markdown
attributes:
value: "Before submitting your report, [please ensure your Laravel version is still supported](https://laravel.com/docs/releases#support-policy)."
value: "Please read [our full contribution guide](https://laravel.com/docs/contributions#bug-reports) before submitting bug reports. If you notice improper DocBlock, PHPStan, or IDE warnings while using Laravel, do not create a GitHub issue. Instead, please submit a pull request to fix the problem."
- type: input
attributes:
label: Echo Version
@@ -14,7 +14,7 @@ body:
- type: input
attributes:
label: Laravel Version
description: Provide the Laravel version that you are using.
description: Provide the Laravel version that you are using. [Please ensure it is still supported.](https://laravel.com/docs/releases#support-policy)
placeholder: 10.4.1
validations:
required: true
4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/2_Feature_request.md

This file was deleted.

3 changes: 3 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Feature request
url: https://github.com/laravel/echo/pulls
about: 'For ideas or feature requests, send in a pull request'
- name: Support Questions & Other
url: https://laravel.com/docs/contributions#support-questions
about: 'This repository is only for reporting bugs. If you have a question or need help using the library, click:'
2 changes: 1 addition & 1 deletion .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ If you discover a security vulnerability within Laravel, please send an email to
```
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: OpenPGP v2.0.8
Comment: https://sela.io/pgp/
Comment: Report Security Vulnerabilities to taylor@laravel.com
xsFNBFugFSQBEACxEKhIY9IoJzcouVTIYKJfWFGvwFgbRjQWBiH3QdHId5vCrbWo
s2l+4Rv03gMG+yHLJ3rWElnNdRaNdQv59+lShrZF7Bvu7Zvc0mMNmFOM/mQ/K2Lt
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install dependencies
run: npm install
3 changes: 3 additions & 0 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -4,6 +4,9 @@ on:
release:
types: [released]

permissions:
contents: write

jobs:
update:
uses: laravel/.github/.github/workflows/update-changelog.yml@main
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ dist/
build/
npm-debug.log
package-lock.json
.idea
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
25 changes: 24 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
# Release Notes

## [Unreleased](https://github.com/laravel/echo/compare/v1.15.2...master)
## [Unreleased](https://github.com/laravel/echo/compare/v1.17.1...master)

## [v1.17.1](https://github.com/laravel/echo/compare/v1.17.0...v1.17.1) - 2024-11-26

* Fix custom broadcaster usages by [@bytestream](https://github.com/bytestream) in https://github.com/laravel/echo/pull/404

## [v1.17.0](https://github.com/laravel/echo/compare/v1.16.1...v1.17.0) - 2024-11-12

* Replace dead link in Security Policy by [@Jubeki](https://github.com/Jubeki) in https://github.com/laravel/echo/pull/400
* Update logo to support dark/light theme by [@milewski](https://github.com/milewski) in https://github.com/laravel/echo/pull/402
* Fix types for the echo library by [@dennisprudlo](https://github.com/dennisprudlo) in https://github.com/laravel/echo/pull/403

## [v1.16.1](https://github.com/laravel/echo/compare/v1.16.0...v1.16.1) - 2024-04-09

* Replaced deprecated substr function by [@SuperDJ](https://github.com/SuperDJ) in https://github.com/laravel/echo/pull/395
* Throw error on unsupported broadcaster by [@SuperDJ](https://github.com/SuperDJ) in https://github.com/laravel/echo/pull/396

## [v1.16.0](https://github.com/laravel/echo/compare/v1.15.3...v1.16.0) - 2024-02-20

* Adds support for Reverb as an Echo broadcaster by [@joedixon](https://github.com/joedixon) in https://github.com/laravel/echo/pull/391

## [v1.15.3](https://github.com/laravel/echo/compare/v1.15.2...v1.15.3) - 2023-08-29

- Export `Connector` and `EventFormatter` to provide full extensibility by [@slavarazum](https://github.com/slavarazum) in https://github.com/laravel/echo/pull/383

## [v1.15.2](https://github.com/laravel/echo/compare/v1.15.1...v1.15.2) - 2023-07-11

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p align="center"><img src="/art/logo.svg" alt="Logo Laravel Echo"></p>
<p align="center"><img width="301" height="80" src="/art/logo.svg" alt="Logo Laravel Echo"></p>

<p align="center">
<a href="https://github.com/laravel/echo/actions"><img src="https://github.com/laravel/echo/workflows/tests/badge.svg" alt="Build Status"></a>
23 changes: 22 additions & 1 deletion art/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 41 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import tsParser from "@typescript-eslint/parser";
import tsPlugin from "@typescript-eslint/eslint-plugin";

const config = [
{
files: [
"typings/**/*.ts",
"src/**/*.ts"
],
languageOptions: {
parser: tsParser, // Use the imported parser object
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
project: "./tsconfig.json", // Path to your TypeScript configuration file
},
},
plugins: {
"@typescript-eslint": tsPlugin,
},
rules: {
...tsPlugin.configs.recommended.rules,
...tsPlugin.configs["recommended-requiring-type-checking"].rules,
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-function-type": "off",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
"no-console": "warn",
"prefer-const": "off",
},
},
];

export default config;
12 changes: 12 additions & 0 deletions jest.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
transform: {
"^.+\\.tsx?$": [
"ts-jest",
{
isolatedModules: true
}
],
},
extensionsToTreatAsEsm: [".ts"],
testEnvironment: "node",
};
6 changes: 0 additions & 6 deletions jest.config.js

This file was deleted.

Loading