Skip to content

Extract environment-agnostic logic into @hawk.so/core #151

Closed

Description

@FeironoX5

Currently, @hawk.so/javascript contains both environment-agnostic logic and browser-specific implementation details. We should restructure the package architecture by separating shared core logic from runtime-specific code.

Proposed plan

  1. Move shared logic from @hawk.so/javascript into @hawk.so/core
  2. Move browser-specific logic from @hawk.so/javascript into @hawk.so/browser

Considerations

  • We should later move @hawk.so/nodejs & @hawk.so/nuxt into this repository to reuse functionality from @hawk.so/core
  • We should discuss how to make migration without any changes to the public API or dependency names

Activity

  1. gosvoh commented on Apr 1, 2026

    @gosvoh

    a2abcb9#diff-6d844447469f81236986337f57c715383682ee9431baae3dcb78aefd9434b926R43

    It seems this line breaks the installation of the entire package

    bun install v1.3.8 (b64edcb4)
    error: GET https://registry.npmjs.org/@hawk.so%2fcore - 404
    error: @hawk.so/core@^1.0.0 failed to resolve
    
  2. Reversean commented on Apr 3, 2026

    @Reversean
    Member

    a2abcb9#diff-6d844447469f81236986337f57c715383682ee9431baae3dcb78aefd9434b926R43

    It seems this line breaks the installation of the entire package

    bun install v1.3.8 (b64edcb4)
    error: GET https://registry.npmjs.org/@hawk.so%2fcore - 404
    error: @hawk.so/core@^1.0.0 failed to resolve
    

    I think the problem appeared after #174, where @hawk.so/core stopped bundling in @hawk.so/javascript.

    Fixed in #180

    @gosvoh, can you confirm that problem is resolved in latest version?

  3. gosvoh commented on Apr 3, 2026

    @gosvoh

    a2abcb9#diff-6d844447469f81236986337f57c715383682ee9431baae3dcb78aefd9434b926R43
    It seems this line breaks the installation of the entire package

    bun install v1.3.8 (b64edcb4)
    error: GET https://registry.npmjs.org/@hawk.so%2fcore - 404
    error: @hawk.so/core@^1.0.0 failed to resolve
    

    I think the problem appeared after #174, where @hawk.so/core stopped bundling in @hawk.so/javascript.

    Fixed in #180

    @gosvoh, can you confirm that problem is resolved in latest version?

    Yep, now it's working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions