@linagora/linid-im-front-corelib 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/pull-request.yml +26 -1
- package/.github/workflows/release.yml +1 -1
- package/CHANGELOG.md +13 -0
- package/CONTRIBUTING.md +7 -2
- package/dist/core-lib.es.js +921 -851
- package/dist/core-lib.umd.js +9 -9
- package/dist/package.json +20 -12
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/services/httpClientService.d.ts +13 -0
- package/dist/types/src/services/linIdConfigurationService.d.ts +21 -0
- package/dist/types/src/stores/linIdConfigurationStore.d.ts +79 -0
- package/dist/types/src/types/linidConfiguration.d.ts +42 -0
- package/docs/services.md +39 -0
- package/docs/types-and-interfaces.md +56 -9
- package/eslint.config.js +2 -1
- package/package.json +19 -11
- package/src/index.ts +11 -0
- package/src/services/httpClientService.ts +61 -0
- package/src/services/linIdConfigurationService.ts +73 -0
- package/src/stores/linIdConfigurationStore.ts +116 -0
- package/src/types/linidConfiguration.ts +70 -0
- package/tests/unit/components/LinidZoneRenderer.spec.js +135 -0
- package/tests/unit/lifecycle/skeleton.spec.js +138 -0
- package/tests/unit/services/federationService.spec.js +146 -0
- package/tests/unit/services/httpClientService.spec.js +49 -0
- package/tests/unit/services/linIdConfigurationService.spec.js +113 -0
- package/tests/unit/stores/linIdConfigurationStore.spec.js +171 -0
- package/tests/unit/stores/linidZoneStore.spec.js +94 -0
- package/tsconfig.json +11 -27
- package/tsconfig.lib.json +20 -0
- package/tsconfig.node.json +9 -0
- package/tsconfig.spec.json +16 -0
- package/vite.config.ts +11 -16
- package/vitest.config.ts +19 -0
- package/dist/types/vite.config.d.ts +0 -2
|
@@ -6,7 +6,7 @@ on:
|
|
|
6
6
|
|
|
7
7
|
env:
|
|
8
8
|
NODE_VERSION: 22.19
|
|
9
|
-
PNPM_VERSION: 10.
|
|
9
|
+
PNPM_VERSION: 10.25.0
|
|
10
10
|
|
|
11
11
|
jobs:
|
|
12
12
|
delete-comments:
|
|
@@ -120,3 +120,28 @@ jobs:
|
|
|
120
120
|
- uses: gensecaihq/Shai-Hulud-2.0-Detector@v1
|
|
121
121
|
with:
|
|
122
122
|
fail-on-critical: true
|
|
123
|
+
|
|
124
|
+
unit-tests:
|
|
125
|
+
name: Unit tests
|
|
126
|
+
runs-on: ubuntu-latest
|
|
127
|
+
needs: [build]
|
|
128
|
+
steps:
|
|
129
|
+
- uses: actions/checkout@v4
|
|
130
|
+
|
|
131
|
+
- name: Setup Node.js and pnpm
|
|
132
|
+
uses: ./.github/actions/setup-node-pnpm
|
|
133
|
+
with:
|
|
134
|
+
node-version: ${{ env.NODE_VERSION }}
|
|
135
|
+
pnpm-version: ${{ env.PNPM_VERSION }}
|
|
136
|
+
|
|
137
|
+
- name: Run unit tests
|
|
138
|
+
run: |
|
|
139
|
+
echo '```bash' > coverage.txt
|
|
140
|
+
pnpm test:ci | sed 's/\x1b\[[0-9;]*m//g' >> coverage.txt
|
|
141
|
+
echo '```' >> coverage.txt
|
|
142
|
+
|
|
143
|
+
- name: Comment PR
|
|
144
|
+
uses: JoseThen/comment-pr@v1.2.0
|
|
145
|
+
with:
|
|
146
|
+
file_path: ./coverage.txt
|
|
147
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.0.6](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.5...v0.0.6) (2025-12-10)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **exports:** expose configuration store, services and types ([7a4aed0](https://github.com/linagora/linid-im-front-corelib/commit/7a4aed0c586e9a695979a748293381c5127bbe43))
|
|
11
|
+
* **services:** add LinIdConfigurationService for metadata API calls ([6668028](https://github.com/linagora/linid-im-front-corelib/commit/66680287ee87b380419760244fc7aad126eeca74))
|
|
12
|
+
* **services:** add singleton HTTP client wrapper ([5cf56fe](https://github.com/linagora/linid-im-front-corelib/commit/5cf56fef21ba2226ba02eaaf1f66b1679ad27b6d))
|
|
13
|
+
* **stores:** add LinIdConfigurationStore for entity and route metadata ([e706fee](https://github.com/linagora/linid-im-front-corelib/commit/e706fee22552612c63131c8c2dd4f32604a2005b))
|
|
14
|
+
* **types:** add LinId entity and route configuration interfaces ([e9e874b](https://github.com/linagora/linid-im-front-corelib/commit/e9e874b055160943ba711c9b5b1ae3f21f37f11c))
|
|
15
|
+
|
|
16
|
+
### [0.0.5](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.4...v0.0.5) (2025-12-03)
|
|
17
|
+
|
|
5
18
|
### [0.0.4](https://github.com/linagora/linid-im-front-corelib/compare/v0.0.3...v0.0.4) (2025-12-01)
|
|
6
19
|
|
|
7
20
|
|
package/CONTRIBUTING.md
CHANGED
|
@@ -161,9 +161,14 @@ npm run dev
|
|
|
161
161
|
## **🧪 Run Tests**
|
|
162
162
|
|
|
163
163
|
```sh
|
|
164
|
-
pnpm test
|
|
164
|
+
pnpm test # Runs the full test suite once
|
|
165
|
+
pnpm test:watch # Runs tests in watch mode
|
|
166
|
+
pnpm test:coverage # Generates a coverage report
|
|
167
|
+
|
|
165
168
|
# or (not recommended by the dev team)
|
|
166
|
-
npm run test
|
|
169
|
+
npm run test # Runs the full test suite once
|
|
170
|
+
npm run test:watch # Runs tests in watch mode
|
|
171
|
+
npm run test:coverage # Generates a coverage report
|
|
167
172
|
```
|
|
168
173
|
|
|
169
174
|
---
|