diff --git a/CHANGELOG.md b/CHANGELOG.md index 970f0367..cad0648b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,20 @@ # Strophe.js Change Log +## Version 3.0.0 - (2024-05-07) + +* #704 Cannot use with NodeJS +* #706 TypeError when receiving a `stream:error` IQ message + +Out of an abundance of caution, making a major version bump, since there was +some internal refactoring of the Strophe files to remove circular +dependencies. So certain deep imports used by integrators might no longer work. +Instead of deep imports, everything should be imported from `strophe.js`. + +For example: +``` +import { Strophe, $build, stx } from strophe.js; +``` + ## Version 2.0.0 - (2024-02-21) * Type checking via TypeScript and JSDoc typing annotations diff --git a/Makefile b/Makefile index 7e52e0ef..02d19a28 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ doc: .PHONY: release release: $(SED) -i 's/\"version\":\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/\"version\":\ \"$(VERSION)\"/' package.json - $(SED) -i 's/VERSION:\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/VERSION:\ \"$(VERSION)\"/' src/core.js + $(SED) -i 's/VERSION:\ \"[0-9]\+\.[0-9]\+\.[0-9]\+\"/VERSION:\ \"$(VERSION)\"/' src/index.js $(SED) -i "s/Unreleased/`date +%Y-%m-%d`/" CHANGELOG.md make dist diff --git a/RELEASE_CHECKLIST.md b/RELEASE_CHECKLIST.md index d08e7a38..a86c220b 100644 --- a/RELEASE_CHECKLIST.md +++ b/RELEASE_CHECKLIST.md @@ -4,15 +4,15 @@ 1. Make sure all tests pass (run 'make check') 2. Update CHANGELOG.md -3. Run `make release VERSION=2.0.0` (on Mac, prefix with "SED=gsed" so that GNU-sed is used). +3. Run `make release VERSION=3.0.1` (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/2.0.0` +5. Run `cp -r doc ../strophe.im/strophejs/doc/3.0.1` 5. Update links in `../strophe.im/strophejs/index.markdown` in Strophe.im -6. `git commit -am "Docs for Strophe.js 2.0.0" && git push` +6. `cd ../strophe.im && git commit -am "Docs for Strophe.js 3.0.1" && git push` 7. Update link to documentation in README (of strophe.js) -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` +8. `cd ../strophe.js && git commit -am "Release 3.0.1"` +9. `git tag -s v3.0.1 -m "Release 3.0.1"` +10. Run `git push && git push origin v3.0.1` 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. diff --git a/package-lock.json b/package-lock.json index 68a8377d..b6e7ff01 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "strophe.js", - "version": "2.0.0", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "strophe.js", - "version": "2.0.0", + "version": "3.0.0", "license": "MIT", "dependencies": { "abab": "^2.0.3" diff --git a/package.json b/package.json index 27e627d7..8c2b9cd5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "strophe.js", "description": "Strophe.js is an XMPP library for JavaScript", - "version": "2.0.0", + "version": "3.0.0", "homepage": "http://strophe.im/strophejs", "repository": { "type": "git",