@equinor/fusion-framework-module-context 7.0.3 → 7.0.4-next.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Change Log
2
2
 
3
+ ## 7.0.4-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78) Thanks [@odinr](https://github.com/odinr)! - relase next
8
+
9
+ - Updated dependencies [[`f647825`](https://github.com/equinor/fusion-framework/commit/f647825cb5712763b09dafda21fd996211c78b78)]:
10
+ - @equinor/fusion-query@6.0.5-next.0
11
+ - @equinor/fusion-framework-module@5.0.7-next.0
12
+
3
13
  ## 7.0.3
4
14
 
5
15
  ### Patch Changes
@@ -10,6 +20,16 @@
10
20
  - @equinor/fusion-framework-module@5.0.6
11
21
  - @equinor/fusion-query@6.0.4
12
22
 
23
+ ## 7.0.3-next.0
24
+
25
+ ### Patch Changes
26
+
27
+ - [#3820](https://github.com/equinor/fusion-framework/pull/3820) [`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b) Thanks [@odinr](https://github.com/odinr)! - relase next
28
+
29
+ - Updated dependencies [[`265bb76`](https://github.com/equinor/fusion-framework/commit/265bb767249989eeb1971e83f3fba94879e0813b), [`75c068f`](https://github.com/equinor/fusion-framework/commit/75c068fea13c32435ac26bd9043cc156482bfaf1)]:
30
+ - @equinor/fusion-query@7.0.0-next.0
31
+ - @equinor/fusion-framework-module@5.0.6-next.0
32
+
13
33
  ## 7.0.2
14
34
 
15
35
  ### Patch Changes
@@ -28,14 +48,12 @@
28
48
  - [#3515](https://github.com/equinor/fusion-framework/pull/3515) [`6cb288b`](https://github.com/equinor/fusion-framework/commit/6cb288b9e1ec4fae68ae6899735c176837bb4275) Thanks [@odinr](https://github.com/odinr)! - ## Global Biome Configuration Modernization
29
49
 
30
50
  **Workspace-wide changes:**
31
-
32
51
  - Remove 19 rule overrides from `biome.json` to use Biome's strict "error" defaults
33
52
  - Enable `correctness/useUniqueElementIds` accessibility rule globally
34
53
  - Reduce configuration size by 40% (60+ → ~35 lines)
35
54
  - Eliminate all custom linting rule customizations
36
55
 
37
56
  **Package-specific changes:**
38
-
39
57
  - Replace static IDs with React `useId()` hooks in bookmark and dev-portal components
40
58
  - Fix `suspicious/noAssignInExpressions` violations in context, legacy-interopt, and observable packages
41
59
  - Update 11 React components for accessibility compliance
@@ -135,18 +153,15 @@
135
153
  ### Minor Changes
136
154
 
137
155
  - [#2930](https://github.com/equinor/fusion-framework/pull/2930) [`5da6b2d`](https://github.com/equinor/fusion-framework/commit/5da6b2d4cb7fb93ff3784753a0052d3362ab828d) Thanks [@odinr](https://github.com/odinr)! - **@equinor/fusion-framework-react:**
138
-
139
156
  - Enhanced `useAppContextNavigation` to support custom context path extraction and generation. This allows for more flexible navigation handling based on application-specific requirements.
140
157
 
141
158
  **@equinor/fusion-framework-module-context:**
142
-
143
159
  - Added support for custom context path extraction and generation in `ContextConfigBuilder`, `ContextProvider`, and `ContextModuleConfigurator`.
144
160
  - Introduced `setContextPathExtractor` and `setContextPathGenerator` methods in `ContextConfigBuilder` to allow developers to define custom logic for extracting and generating context paths.
145
161
  - Updated `ContextProvider` to utilize `extractContextIdFromPath` and `generatePathFromContext` from the configuration, enabling dynamic path handling.
146
162
  - Enhanced `ContextModuleConfigurator` to include `extractContextIdFromPath` and `generatePathFromContext` in the module configuration.
147
163
 
148
164
  If you are using `@equinor/fusion-framework-module-context` and need custom logic for context path handling:
149
-
150
165
  1. Use `setContextPathExtractor` to define how to extract context IDs from paths.
151
166
  2. Use `setContextPathGenerator` to define how to generate paths based on context items.
152
167
 
@@ -173,11 +188,11 @@
173
188
  // Custom logic to generate path from context
174
189
  const path = contextProvider.generatePathFromContext?.(
175
190
  context,
176
- location.pathname
191
+ location.pathname,
177
192
  );
178
193
  return path ?? fallbackPathGenerator(context, location.pathname);
179
194
  }),
180
- filter(Boolean)
195
+ filter(Boolean),
181
196
  )
182
197
  .subscribe((path) => history.push(path));
183
198
  ```
@@ -277,7 +292,6 @@
277
292
  - [#2320](https://github.com/equinor/fusion-framework/pull/2320) [`1dd85f3`](https://github.com/equinor/fusion-framework/commit/1dd85f3a408a73df556d1812a5f280945cc100ee) Thanks [@odinr](https://github.com/odinr)! - Removed the `removeComments` option from the `tsconfig.base.json` file.
278
293
 
279
294
  Removing the `removeComments` option allows TypeScript to preserve comments in the compiled JavaScript output. This can be beneficial for several reasons:
280
-
281
295
  1. Improved debugging: Preserved comments can help developers understand the code better during debugging sessions.
282
296
  2. Documentation: JSDoc comments and other important code documentation will be retained in the compiled output.
283
297
  3. Source map accuracy: Keeping comments can lead to more accurate source maps, which is crucial for debugging and error tracking.
@@ -406,7 +420,6 @@
406
420
  ### Minor Changes
407
421
 
408
422
  - [#1760](https://github.com/equinor/fusion-framework/pull/1760) [`6e6ee6b`](https://github.com/equinor/fusion-framework/commit/6e6ee6b7ce280820111e8b98ac8377efb15808ef) Thanks [@asbjornhaland](https://github.com/asbjornhaland)! - - Add FusionContextSearchError.
409
-
410
423
  - Potential _BREAKING_:
411
424
  - Error in `ContextProvider.ts` are now unwrapped if the thrown error is
412
425
  `QueryClientError`.
@@ -540,7 +553,6 @@
540
553
  ### Patch Changes
541
554
 
542
555
  - [#905](https://github.com/equinor/fusion-framework/pull/905) [`a7858a1c`](https://github.com/equinor/fusion-framework/commit/a7858a1c01542e2dc94370709f122b4b99c3219c) Thanks [@odinr](https://github.com/odinr)! - **🚧 Chore: dedupe packages**
543
-
544
556
  - align all versions of typescript
545
557
  - update types to build
546
558
  - a couple of typecasts did not [satisfies](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-0.html#satisfies-support-in-jsdoc) and was recasted as `unknwon`, marked with `TODO`, should be fixed in future
@@ -550,7 +562,6 @@
550
562
  ### Patch Changes
551
563
 
552
564
  - [#898](https://github.com/equinor/fusion-framework/pull/898) [`4551142e`](https://github.com/equinor/fusion-framework/commit/4551142ededdb2f1bf74eae552da26d28cd23057) Thanks [@odinr](https://github.com/odinr)! - feat(module-context): add config option for connection to parent context
553
-
554
565
  - add attribute to config interface
555
566
  - add setter on config builder
556
567
  - add check for connecting to parent when creating provider
@@ -1,3 +1,3 @@
1
1
  // Generated by genversion.
2
- export const version = '7.0.3';
2
+ export const version = '7.0.4-next.0';
3
3
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,CAAC,MAAM,OAAO,GAAG,cAAc,CAAC"}