Skip to content

Commit b8f8c3e

Browse files
authored
Merge pull request #34 from georapbox/issue-33
Update CDN links in documentation
2 parents 4c264d2 + c69673d commit b8f8c3e

File tree

7 files changed

+6460
-4157
lines changed

7 files changed

+6460
-4157
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,64 @@
11
# CHANGELOG
22

3+
## v4.0.1 (2025-04-05)
4+
5+
- Modified README.md to update CDN links for the library.
6+
- Updated LICENSE to reflect the current copyright year.
7+
- Introduced a new .nvmrc file specifying Node.js version 20.
8+
- Removed CI configuration file as part of repository cleanup.
9+
310
## v4.0.0 (2021-24-01)
11+
412
### Breaking changes
5-
- Remove static method `noConflict()`.
13+
14+
- Remove static method `noConflict()`.
615

716
### New features
17+
818
- Add a new static method `createInstance()` as alternative way to create a new `PubSub` instance.
919
- Export library in UMD, ESM and CommonJS formats.
1020

1121
### Internal changes
22+
1223
- Refactor source code to ES2015+.
1324
- Use rollup.js to bundle the library.
1425
- Replace Mocha with Jest as testing framework.
1526
- Improve tests and coverage.
1627
- Replace Travis with Github Actions for CI.
1728

1829
## v3.6.2
30+
1931
- Update `devDependencies`
2032
- Update CI configuration
2133
- Delete examples folder
2234

2335
## v3.6.0
36+
2437
- Fix issue #4
2538
- Add `immediateExceptions` option when creating instance
2639

2740

2841
## v3.5.0
42+
2943
- Update `devDependencies`
3044
- Use `mocha` and `chai` for testing instead of `karma` and `jasmine`
3145
- Drop support Bower support
3246
- Exclude `dist` folder from source control
3347

3448
## v3.4.0
49+
3550
- Add static method `PubSub.noConflict()` to roll back the global `PubSub` identifier. Used in a normal browser global namespace environment to avoid conflicts, etc.
3651

3752
## v3.3.0
53+
3854
- If there is no subscriber for a topic, delete topic property when unsubscribing. Used to leave it as an empty array before.
3955
- The result of `subscribers` and `subscribersByTopic` methods is just a copy of the original object or array accordingly.
4056
- Keep devDependencies up to date.
4157

4258
## v3.2.7
59+
4360
Allow passing multiple data arguments to `publish` and `publishSync` methods.
61+
4462
```js
4563
var pubsub = new PubSub();
4664

@@ -65,31 +83,39 @@ pubsub.publish('event', {fname: 'John'}, {lname: 'Doe'}, [1, 2, 3], 'Lorem ipsum
6583
```
6684

6785
## v3.2.6
86+
6887
- Ensure that listeners registered on the same topic are invoked in the order they are added.
6988
- Minor updates on documentation.
7089
- Update angular_1.x_example.
7190

7291
## v3.2.5
92+
7393
- Add working example using Angular 1.x.
7494
- Update devDependencies.
7595

7696
## v3.2.4
97+
7798
- Improve tests and coverage
7899

79100
## v3.2.3
101+
80102
- Return a new instance of `PubSub` if it is invoked without the `new` keyword.
81103
- Add code coverage.
82104

83105
## v3.2.2
106+
84107
- Keep devDependencies up to date
85108

86109
## v3.2.1
110+
87111
- Fix License
88112

89113
## v3.2.0
114+
90115
- Add public method `subscribersByTopic()` to get an array of subscribers for a specific topic.
91116

92117
## v3.1.0
118+
93119
- `hasSubscribers` checks if there is at least one subscriber, no matter its name, if no argument is passed.
94120
- Add public method `subscribers()` to get a readonly object of the current subscribers.
95121

@@ -129,14 +155,17 @@ var pubsub = new PubSub().alias({
129155
- Provide source-map for the minified library.
130156

131157
## v2.1.0
158+
132159
- Add support for publishing events synchronously using `publishSync` method.
133160
- Add public method `hasSubscribers` to check if there are subscribers for a specific topic.
134161

135162
## v2.0.3
163+
136164
- Add support for Travis CI.
137165
- Lint source code using ESLint.
138166

139167
## v2.0.2
168+
140169
- Keep devDependencies up to date.
141170

142171
## v2.0.0

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2014 George Raptis
3+
Copyright (c) 2014-present George Raptis
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
![Build](https://github.com/georapbox/PubSub/workflows/Build/badge.svg)
2-
[![npm version](https://badge.fury.io/js/PubSub.svg)](http://badge.fury.io/js/PubSub)
3-
[![npm downloads](https://img.shields.io/npm/dt/PubSub.svg)](http://badge.fury.io/js/PubSub)
4-
[![npm license](https://img.shields.io/npm/l/PubSub.svg)](http://badge.fury.io/js/PubSub)
5-
[![Coverage Status](https://coveralls.io/repos/github/georapbox/PubSub/badge.svg?branch=master)](https://coveralls.io/github/georapbox/PubSub?branch=master)
6-
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
1+
[![npm version](https://img.shields.io/npm/v/PubSub.svg)](https://www.npmjs.com/package/PubSub)
2+
[![npm license](https://img.shields.io/npm/l/PubSub.svg)](https://www.npmjs.com/package/PubSub)
73

84
# PubSub
95

@@ -37,8 +33,9 @@ const PubSub = require('PubSub').default;
3733
```
3834

3935
### Old school browser global
36+
4037
```html
41-
<script src="https://unpkg.com/PubSub"></script>
38+
<script src="https://cdn.jsdelivr.net/npm/PubSub@latest/dist/PubSub.umd.min.js"></script>
4239
```
4340

4441
## API
@@ -330,4 +327,4 @@ For API updates and breaking changes, check the [CHANGELOG](https://github.com/g
330327

331328
## License
332329

333-
[The MIT License (MIT)](https://georapbox.mit-license.org/@2014)
330+
[The MIT License (MIT)](https://github.com/georapbox/PubSub/blob/master/LICENSE)

0 commit comments

Comments
 (0)