Skip to content
Permalink
Branch: master
Commits on Oct 2, 2019
  1. Make node_io and node_interop regular dependencies (#109)

    jathak committed Oct 2, 2019
Commits on Oct 1, 2019
  1. Convert adjust-hue to color.adjust (#107)

    jathak committed Oct 1, 2019
  2. Make all members unreferencable in nested import (#92)

    jathak committed Oct 1, 2019
    Fixes #83.
    
    Previously, only local members from the importing stylesheet would be
    marked as unreferencable within a nested import, but references to
    global members would create a circular dependency, so they shouldn't be
    allowed either.
  3. Error if renaming member in unmigrated file (#91)

    jathak committed Oct 1, 2019
    When running the module migrator without `--migrate-deps`, it's
    possible that it may generate invalid member references if it renames
    a member from a dependency that is not being migrated.
    
    This adds an error when this happens that tells the user to re-run the
    migrator with `--migrate-deps` or add the dependency as an entrypoint.
  4. Support entrypoints with migrated dependencies (#79)

    jathak committed Oct 1, 2019
    * Support entrypoints with migrated dependencies
    
    The module migrator should now work on stylesheets whose dependencies
    have already been migrated to the module system. _ReferencesVisitor will
    visit all dependencies (including pre-migrated ones) to determine where
    all members are defined, but the main migrator will not visit
    stylesheets depended on via `@use` or `@forward`.
    
    To track forwarded members, this adds the `Forwarded` interface, which
    wraps a `VariableDeclaration`, `MixinRule`, or `FunctionRule`, but
    reports its span as that of the `@forward` rule to ensure that
    references to forwarded members are namespaced appropriately.
    
    * Support unprefixing based on import-only files
    
    If a pre-migrated library has an import-only stylesheet that just
    forwards the regular version of the same file with a prefix, migrating
    another stylesheet that depends on it will unprefix those members.
    
    * Create import-only file when unprefixing
    
    When using --remove-prefix, an import-only file will be generated for
    the entrypoint that leaves the prefix intact.
    
    * Change Forwarded to MemberDeclaration
    
    All declarations within the module migrator (both in References and in
    the main visitor) should now be wrapped in MemberDeclaration.
    
    * Address code review comments
    
    Highlights:
    - Each type of ReferenceSource is now its own subtype
    - Fixed some bugs in namespace conflict resolution to ensure that
    existing `@use` rules always keep their namespaces
    
    * Support existing `@use` rules for built-in modules
    
    The migrator will still take them into account for conflicts, and will
    avoid adding a duplicate rule if functions within the module are also
    referenced without namespaces.
    
    * Fix import-only forwarding
    
    The import-only stylesheet generated for the entrypoint should now
    correctly forward both prefixed and unprefixed members.
    
    * Add test of existing forward rule
You can’t perform that action at this time.