diff --git a/CHANGELOG.md b/CHANGELOG.md index 14829f5..607866d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,55 +11,55 @@ All notable changes to this project will be documented in this file. ### Fixed -- fix: Do not include declarations for private globals in distribution [\#772](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/772) ([susnux](https://github.com/susnux)\) +- fix: Do not include declarations for private globals in distribution [\#772](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/772) ([susnux](https://github.com/susnux)\) ### Changed -- chore: Add license information to files and add REUSE workflow [\#773](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/773) ([susnux](https://github.com/susnux)\) +- chore: Add license information to files and add REUSE workflow [\#773](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/773) ([susnux](https://github.com/susnux)\) ## [v3.3.0](https://github.com/nextcloud-libraries/nextcloud-event-bus/tree/v3.3.0) \(2024-05-07\) ### Added -- feat: Allow to fully type events by extending the `NextcloudEvents` interface [\#755](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/755) \([susnux](https://github.com/susnux)\) +- feat: Allow to fully type events by extending the `NextcloudEvents` interface [\#755](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/755) \([susnux](https://github.com/susnux)\) ### Fixed -- fix(readme): update engine requirements according to package.json [\#754](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/754) \([AaronActu](https://github.com/AaronActu)\) -- fix(docs): Adjust invalid example for typed events [\#763](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/763) ([susnux](https://github.com/susnux)\) +- fix(readme): update engine requirements according to package.json [\#754](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/754) \([AaronActu](https://github.com/AaronActu)\) +- fix(docs): Adjust invalid example for typed events [\#763](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/763) ([susnux](https://github.com/susnux)\) ### Changed -- feat: Add ESLint for linting and prettier for formatting [\#759](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/759) ([susnux](https://github.com/susnux)\) -- feat: Migrate to vite for building and vitest for testing [\#758](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/758) ([susnux](https://github.com/susnux)\) +- feat: Add ESLint for linting and prettier for formatting [\#759](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/759) ([susnux](https://github.com/susnux)\) +- feat: Migrate to vite for building and vitest for testing [\#758](https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/758) ([susnux](https://github.com/susnux)\) ## [v3.2.0](https://github.com/nextcloud/nextcloud-event-bus/tree/v3.2.0) (2024-04-21) ### Changed -- Add missing nodes typing for docs by @skjnldsv in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/606 -- Add missing unit tests and use Typescript also for test by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/630 -- chore: update node engines to next LTS by @nextcloud-command in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/621 -- fix: Use organization workflow for node test ci by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/629 -- fix(ci): Update documentation workflow from organization by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/628 +- Add missing nodes typing for docs by @skjnldsv in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/606 +- Add missing unit tests and use Typescript also for test by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/630 +- chore: update node engines to next LTS by @nextcloud-command in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/621 +- fix: Use organization workflow for node test ci by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/629 +- fix(ci): Update documentation workflow from organization by @susnux in https://github.com/nextcloud-libraries/nextcloud-event-bus/pull/628 ### Dependencies -- chore(deps-dev): Bump @rollup/plugin-replace from 5.0.2 to 5.0.3 by @dependabot -- chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.1 to 11.1.5 by @dependabot -- chore(deps-dev): Bump @types/node from 20.3.3 to 20.4.1 by @dependabot -- chore(deps-dev): Bump @types/semver from 7.5.0 to 7.5.3 by @dependabot -- chore(deps-dev): Bump jest from 29.5.0 to 29.7.0 by @dependabot -- chore(deps-dev): Bump jest-environment-jsdom from 29.5.0 to 29.7.0 by @dependabot -- chore(deps-dev): Bump rollup from 2.79.1 to 4.0.2 by @dependabot -- chore(deps-dev): Bump semver from 7.5.3 to 7.5.4 by @dependabot -- chore(deps-dev): Bump tslib from 2.5.0 to 2.6.2 by @dependabot -- chore(deps-dev): Bump typedoc from 0.24.7 to 0.25.2 by @dependabot -- chore(deps-dev): Bump typescript from 5.0.4 to 5.2.2 by @dependabot -- chore(deps-dev): Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot -- chore(deps): Bump @types/node from 20.1.7 to 20.8.6 by @dependabot -- chore(deps): Bump semver from 7.5.1 to 7.5.3 by @dependabot -- chore(deps): Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot +- chore(deps-dev): Bump @rollup/plugin-replace from 5.0.2 to 5.0.3 by @dependabot +- chore(deps-dev): Bump @rollup/plugin-typescript from 11.1.1 to 11.1.5 by @dependabot +- chore(deps-dev): Bump @types/node from 20.3.3 to 20.4.1 by @dependabot +- chore(deps-dev): Bump @types/semver from 7.5.0 to 7.5.3 by @dependabot +- chore(deps-dev): Bump jest from 29.5.0 to 29.7.0 by @dependabot +- chore(deps-dev): Bump jest-environment-jsdom from 29.5.0 to 29.7.0 by @dependabot +- chore(deps-dev): Bump rollup from 2.79.1 to 4.0.2 by @dependabot +- chore(deps-dev): Bump semver from 7.5.3 to 7.5.4 by @dependabot +- chore(deps-dev): Bump tslib from 2.5.0 to 2.6.2 by @dependabot +- chore(deps-dev): Bump typedoc from 0.24.7 to 0.25.2 by @dependabot +- chore(deps-dev): Bump typescript from 5.0.4 to 5.2.2 by @dependabot +- chore(deps-dev): Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot +- chore(deps): Bump @types/node from 20.1.7 to 20.8.6 by @dependabot +- chore(deps): Bump semver from 7.5.1 to 7.5.3 by @dependabot +- chore(deps): Bump tough-cookie from 4.1.2 to 4.1.3 by @dependabot ## [v3.1.0](https://github.com/nextcloud/nextcloud-event-bus/tree/v3.1.0) (2023-05-17) @@ -67,12 +67,12 @@ All notable changes to this project will be documented in this file. ### Changed -- Updated dependencies -- Initialize bus on first usage not on import [\#587](https://github.com/nextcloud/nextcloud-event-bus/pull/587) ([susnux](https://github.com/susnux)) +- Updated dependencies +- Initialize bus on first usage not on import [\#587](https://github.com/nextcloud/nextcloud-event-bus/pull/587) ([susnux](https://github.com/susnux)) ### Fixed -- Allow package to be imported by native Node ES module projects [\#586](https://github.com/nextcloud/nextcloud-event-bus/pull/586) ([susnux](https://github.com/susnux)) +- Allow package to be imported by native Node ES module projects [\#586](https://github.com/nextcloud/nextcloud-event-bus/pull/586) ([susnux](https://github.com/susnux)) ## [v3.0.2](https://github.com/nextcloud/nextcloud-event-bus/tree/v3.0.2) (2022-09-05) @@ -80,7 +80,7 @@ All notable changes to this project will be documented in this file. ### Closed pull requests -- 🩹 Remove type=module [\#534](https://github.com/nextcloud/nextcloud-event-bus/pull/534) ([vinicius73](https://github.com/vinicius73)) +- 🩹 Remove type=module [\#534](https://github.com/nextcloud/nextcloud-event-bus/pull/534) ([vinicius73](https://github.com/vinicius73)) ## 3.0.1 - 2022-08-24 @@ -88,100 +88,100 @@ All notable changes to this project will be documented in this file. ### Changed -- Update dependencies -- Improve native ESM Support +- Update dependencies +- Improve native ESM Support ## 3.0.0 - 2022-05-02 ### Changed -- Update dependencies -- Fix rollup build -- Remove babel - - Typescript already is able to generate code that is in compliance with es5 -- Remove package.json from generated code. - - Use @rollup/plugin-replace to handle this. -- Add ESM support - - Improve native usage support - - Improve bundle size -- Fix invalid typescript typings export -- Remove unnecessary files from npm package +- Update dependencies +- Fix rollup build +- Remove babel + - Typescript already is able to generate code that is in compliance with es5 +- Remove package.json from generated code. + - Use @rollup/plugin-replace to handle this. +- Add ESM support + - Improve native usage support + - Improve bundle size +- Fix invalid typescript typings export +- Remove unnecessary files from npm package ## 2.1.1 – 2021-11-02 ### Changed -- Dependency updates +- Dependency updates ## 2.1.0 – 2021-09-28 ### Changed -- Dependency updates +- Dependency updates ### Fixed -- Readme examples -- Dependency updates +- Readme examples +- Dependency updates ## 2.0.0 - 2021-05-05 ### Breaking -- Bump of @nextcloud/browserlist-config@2.1.0 which drops support for IE11 +- Bump of @nextcloud/browserlist-config@2.1.0 which drops support for IE11 ### Changed -- Move a single to transpiled library bundle -- Dependency updates +- Move a single to transpiled library bundle +- Dependency updates ## 1.3.0 - 2021-05-05 ### Changed -- Move a single to transpiled library bundle -- Dependency updates +- Move a single to transpiled library bundle +- Dependency updates ## 1.2.0 - 2020-06-03 ### Changed -- Dependency updates +- Dependency updates ## 1.1.4 - 2020-04-06 ### Changed -- Dependency updates +- Dependency updates ### Fixed -- Update vulnerable packages +- Update vulnerable packages ## 1.1.3 - 2020-03-19 ### Changed -- Dependency updates +- Dependency updates ### Fixed -- Update vulnerable packages +- Update vulnerable packages ## 1.1.2 - 2020-01-10 ### Fixed -- Packaging of corejs +- Packaging of corejs ## 1.1.1 - 2020-01-10 ### Fixed -- Module error with semver package +- Module error with semver package ## 1.0.1 - 2020-01-07 ### Fixed -- Misleading warning if ProxyBus is used for a compatible bus +- Misleading warning if ProxyBus is used for a compatible bus diff --git a/README.md b/README.md index 351bfee..921541e 100644 --- a/README.md +++ b/README.md @@ -75,13 +75,13 @@ To stay consistent, we encourage you to use the following syntax when declaring ### Examples: -- `nextcloud:unified-search:closed` -- `files:node:uploading` -- `files:node:uploaded` -- `files:node:deleted` -- `contacts:contact:deleted` -- `calendar:event:created` -- `forms:answer:updated` +- `nextcloud:unified-search:closed` +- `files:node:uploading` +- `files:node:uploaded` +- `files:node:deleted` +- `contacts:contact:deleted` +- `calendar:event:created` +- `forms:answer:updated` ## Development @@ -94,5 +94,5 @@ npm run test ### Requirements -- [Node 20 or higher](https://nodejs.org/en/download/) -- [NPM 10 or higher](https://www.npmjs.com/package/npm) +- [Node 20 or higher](https://nodejs.org/en/download/) +- [NPM 10 or higher](https://www.npmjs.com/package/npm) diff --git a/package-lock.json b/package-lock.json index 1e300a6..de85789 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,19 +9,19 @@ "version": "3.3.1", "license": "GPL-3.0-or-later", "dependencies": { - "@types/node": "^22.13.5", + "@types/semver": "^7.5.8", "semver": "^7.6.3" }, "devDependencies": { "@nextcloud/eslint-config": "^8.4.1", "@nextcloud/prettier-config": "^1.1.0", "@nextcloud/vite-config": "^2.3.1", - "@types/semver": "^7.5.8", + "@types/node": "^22.13.5", "@vitest/coverage-v8": "^3.0.7", "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.2", "happy-dom": "^17.1.2", - "prettier": "^3.3.3", + "prettier": "^3.5.2", "typedoc": "^0.27.6", "typescript": "^5.6.3", "vite": "^6.2.0", @@ -1924,6 +1924,7 @@ "version": "22.13.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.5.tgz", "integrity": "sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg==", + "dev": true, "license": "MIT", "dependencies": { "undici-types": "~6.20.0" @@ -1932,8 +1933,7 @@ "node_modules/@types/semver": { "version": "7.5.8", "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz", - "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==", - "dev": true + "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==" }, "node_modules/@types/unist": { "version": "3.0.3", @@ -7022,10 +7022,11 @@ } }, "node_modules/prettier": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", - "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.2.tgz", + "integrity": "sha512-lc6npv5PH7hVqozBR7lkBNOGXV9vMwROAPlumdBkX0wTbbzPu/U1hk5yL8p2pt4Xoc+2mkT8t/sow2YrV/M5qg==", "dev": true, + "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" }, @@ -8616,6 +8617,7 @@ "version": "6.20.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", + "dev": true, "license": "MIT" }, "node_modules/universalify": { diff --git a/package.json b/package.json index eba9d1c..18fd6e9 100644 --- a/package.json +++ b/package.json @@ -39,19 +39,19 @@ }, "prettier": "@nextcloud/prettier-config", "dependencies": { - "@types/node": "^22.13.5", + "@types/semver": "^7.5.8", "semver": "^7.6.3" }, "devDependencies": { "@nextcloud/eslint-config": "^8.4.1", "@nextcloud/prettier-config": "^1.1.0", "@nextcloud/vite-config": "^2.3.1", - "@types/semver": "^7.5.8", + "@types/node": "^22.13.5", "@vitest/coverage-v8": "^3.0.7", "eslint": "^8.57.1", "eslint-config-prettier": "^10.0.2", "happy-dom": "^17.1.2", - "prettier": "^3.3.3", + "prettier": "^3.5.2", "typedoc": "^0.27.6", "typescript": "^5.6.3", "vite": "^6.2.0",