Skip to content

Commit

Permalink
Add missing changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
sirosen committed Nov 4, 2022
1 parent 64c3df1 commit 866c0bb
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions changelog.d/20221104_145601_sirosen_add_scope_parsing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
* Enhance scope utilities with scope parsing, attached to
``globus_sdk.scopes.Scope`` (:pr:`NUMBER`)

* ``MutableScope`` has been renamed to ``Scope``. Both names remain available
for backwards compatibility, but the preferred name is now ``Scope``

* ``Scope.parse`` and ``Scope.deserialize`` can now be used to parse strings
into ``Scope``\s

* ``Scope(...).serialize()`` is added, and ``str(Scope(...))`` uses it

* ``Scope.add_dependency`` now supports ``Scope`` objects as inputs

* The ``optional`` argument to ``add_dependency`` is deprecated.
``Scope(...).add_dependency("*foo")`` can be used to add an optional
dependency as a string, or equivalently
``Scope(...).add_dependency(Scope("foo", optional=True))``

0 comments on commit 866c0bb

Please sign in to comment.