Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbrand committed Feb 21, 2024
1 parent d43a619 commit c1ac71d
Show file tree
Hide file tree
Showing 8 changed files with 843 additions and 739 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Strophe.js Change Log

## Version 2.0.0 - (Unreleased)
## Version 2.0.0 - (2024-02-21)

* Type checking via TypeScript and JSDoc typing annotations
Types definitions are now generated and placed in `./dist/types/`.
* Types definitions are now generated and placed in `./dist/types/`.
* Remove the deprecated `matchBare` option for `Strophe.Handler`. Use `matchBareFromJid` instead.
* Add the ability to create stanzas via a tagged template literal (`stx`).
* Bugfix: Ignore unknown SCRAM attributes instead of aborting the connection

## Version 1.6.2 - (2023-06-23)

Expand Down
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ release:
$(SED) -i 's/VERSION:\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/VERSION:\ \"$(VERSION)\"/' src/core.js
$(SED) -i "s/Unreleased/`date +%Y-%m-%d`/" CHANGELOG.md
make dist
make doc

.PHONY: watchjs
watchjs: node_modules
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ XMPP applications.
## Quick Links

* [Homepage](https://strophe.im/strophejs/)
* [Documentation](https://strophe.im/strophejs/doc/1.6.0/files/strophe-umd-js.html)
* [Documentation](https://strophe.im/strophejs/doc/2.0.0/files/strophe-umd-js.html)
* [Mailing list](https://groups.google.com/g/strophe)
* [Community Plugins](https://github.com/strophe/strophejs-plugins)

Expand Down
12 changes: 6 additions & 6 deletions RELEASE_CHECKLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

1. Make sure all tests pass (run 'make check')
2. Update CHANGELOG.md
3. Run `make release VERSION=1.6.2` (on Mac, prefix with "SED=gsed" so that GNU-sed is used).
3. Run `make release VERSION=2.0.0` (on Mac, prefix with "SED=gsed" so that GNU-sed is used).
4. Run `make doc`
5. Run `cp -r doc ../strophe.im/strophejs/doc/1.6.2`
5. Run `cp -r doc ../strophe.im/strophejs/doc/2.0.0`
5. Update links in `../strophe.im/strophejs/index.markdown` in Strophe.im
6. `git commit -am "Docs for Strophe.js 1.6.2" && git push`
6. `git commit -am "Docs for Strophe.js 2.0.0" && git push`
7. Update link to documentation in README (of strophe.js)
8. `cd ../strophe.js && git commit -am "Release 1.6.2"`
9. `git tag -s v1.6.2 -m "Release 1.6.2"`
10. Run `git push && git push origin v1.6.2`
8. `cd ../strophe.js && git commit -am "Release 2.0.0"`
9. `git tag -s v2.0.0 -m "Release 2.0.0"`
10. Run `git push && git push origin v2.0.0`
11. Publish on NPM: `npm publish`
12. Update the release notes on https://github.com/strophe/strophejs/releases
13. Run `npm pack` and upload the tgz file to the releases page.
1,554 changes: 830 additions & 724 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/shared-connection-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ConnectionManager {
}

/**
* @param {[string,string]} data
* @param {[string, string]} data
*/
_connect(data) {
this.jid = data[1];
Expand Down
2 changes: 1 addition & 1 deletion src/types/shared-connection-worker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare class ConnectionManager {
/** @param {MessagePort} port */
addPort(port: MessagePort): void;
/**
* @param {[string,string]} data
* @param {[string, string]} data
*/
_connect(data: [string, string]): void;
jid: string;
Expand Down
4 changes: 1 addition & 3 deletions src/worker-websocket.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
/**
* @license MIT
* @copyright JC Brand
*/

/**
*
* @typedef {import("./connection.js").default} Connection
* @typedef {import("./builder.js").default} Builder
*/
Expand Down

0 comments on commit c1ac71d

Please sign in to comment.