Skip to content

Commit d5ad0d9

Browse files
committed
Fix @graph @container term @context handling.
When a term scoped context is nullified, it also nullifies the container information. This fix gets the `@container` value from the active context. In particular, this is needed for proper `@graph` container handling.
1 parent e2f6523 commit d5ad0d9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# jsonld ChangeLog
22

3+
## 8.3.2 - 2023-xx-xx
4+
5+
### Fixed
6+
- Fix handling of a `@graph` `@container` term that has a `null` `@context`.
7+
38
## 8.3.1 - 2023-09-06
49

510
### Fixed

lib/expand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ async function _expandObject({
856856
});
857857
}
858858

859-
const container = _getContextValue(termCtx, key, '@container') || [];
859+
const container = _getContextValue(activeCtx, key, '@container') || [];
860860

861861
if(container.includes('@language') && _isObject(value)) {
862862
const direction = _getContextValue(termCtx, key, '@direction');

0 commit comments

Comments
 (0)