You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+69-4Lines changed: 69 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,67 @@ Changelog
2
2
=========
3
3
4
4
5
-
6
5
v32.0.0 (next next, roadmap)
7
-
----------------------------------
6
+
----------------------------
7
+
8
+
Important API changes:
9
+
~~~~~~~~~~~~~~~~~~~~~~
10
+
11
+
- The data structure of the JSON output has changed for licenses at resource level:
12
+
13
+
- We now return ``license_detections`` information at the manifest file-level
14
+
rather than ``licenses``. This three data attributes: ``license_expression``,
15
+
``detection_log`` and ``matches``. Here ``matches`` is similar to previous
16
+
``licenses`` with some additional changes.
17
+
18
+
- A new attribute ``license_clues`` was added, which has license matches same
19
+
as the ``matches`` field in ``license_detections``. This has license matches
20
+
which are mere clues and not proper detections.
21
+
22
+
- The ``license_expressions`` field was removed, which was a list of license
23
+
expressions and it was replaced with ``detected_license_expression`` which
24
+
was a single license expression. Similarly ``spdx_license_expressions`` was
25
+
removed and replaced by ``detected_license_expression_spdx``.
26
+
27
+
- See `license updates doc <https://scancode-toolkit.readthedocs.io/en/latest/explanations/license-detection-reference.html#change-in-license-data-format-resource>`_
28
+
for examples and more details.
29
+
30
+
- Similarly the data structure of license fields in "package_data" has also
31
+
changed, along with codebase level ``packages`` data:
32
+
33
+
- There's a ``license_detections`` field with the detections, same as the
34
+
resource ``license_detections``, and there's also ``other_license_detections``.
35
+
Here ``license_detections`` has the detections for the primary/declared
36
+
licenses, and the rest of the secondary detecions are at
37
+
``other_license_detections``.
38
+
39
+
- The ``license_expression`` field has been dropped, and instead we have
40
+
``declared_license_expression`` and ``other_license_expression`` fields
41
+
with their SPDX counterparts: ``declared_license_expression_spdx`` and
42
+
``other_license_expression_spdx``.
43
+
44
+
- The ``declared_license`` field also has been renamed to ``extracted_license_statement``,
45
+
and previously this ``declared_license`` field could be a list, a dict or a string, but
46
+
now ``extracted_license_statement`` is always a string.
47
+
48
+
See `license updates doc <https://scancode-toolkit.readthedocs.io/en/latest/explanations/license-detection-reference.html#comparision-before-after-license-references>`_
49
+
for examples and more details.
50
+
51
+
- Additionally the ``--get-license-data`` option would add two codebase level attributes:
52
+
``license_references`` and ``rule_references`` which are lists of license and rules
53
+
respectively. This also removes the corresponding fields from ``matches`` in
54
+
``license_detections`` as they are referenced in these two codebase level fields. See
0 commit comments