Skip to content

Conversation

@ermshiperete
Copy link
Contributor

@ermshiperete ermshiperete commented Jan 9, 2026

This is a follow-up of review comments in #15401.

  • rename DefaultWorker (in web subfolder) β†’ WebWorker
  • rename Worker (in node subfolder) β†’ NodeWorker
  • rename BUTTON_CLASSES β†’ buttonClassNames

All exports now also match the filenames.

Follow-up-of: #15401
Test-bot: skip

This is a follow-up of review comments in #15401.
- rename `DefaultWorker` β†’ `Worker`
- rename `BUTTON_CLASSES` β†’ `buttonClassNames`
Both exports now also match the filename.

Follow-up-of: #15401
Test-bot: skip
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Jan 9, 2026

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Android
    • Keyman for Android apk - build : all tests passed (no artifacts on BuildLevel "build")
    • FirstVoices Keyboards for Android apk - build : all tests passed (no artifacts on BuildLevel "build")
    • FirstVoices Keyboards for Android apk (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
    • KeyboardHarness apk - build : all tests passed (no artifacts on BuildLevel "build")
    • Keyman for Android apk (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
    • KMSample1 apk - build : all tests passed (no artifacts on BuildLevel "build")
    • KMSample2 apk - build : all tests passed (no artifacts on BuildLevel "build")
  • Developer
    • Keyman Developer - build : all tests passed (no artifacts on BuildLevel "build")
    • Compiler Regression Tests - build : all tests passed (no artifacts on BuildLevel "build")
    • Keyman Developer (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
    • kmcomp.zip - build : all tests passed (no artifacts on BuildLevel "build")
    • kmcomp.zip (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
  • iOS
    • Keyman for iOS (simulator image) - build : all tests passed (no artifacts on BuildLevel "build")
    • FirstVoices Keyboards for iOS (simulator image) - build : all tests passed (no artifacts on BuildLevel "build")
    • FirstVoices Keyboards for iOS (simulator image) (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
    • Keyman for iOS (simulator image) (old PRs) - build : all tests passed (no artifacts on BuildLevel "build")
  • Keyboards
    • Test Keyboards - build : all tests passed (no artifacts on BuildLevel "build")
  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot bot changed the title refactor(web): remove some aliases refactor(web): remove some aliases 🎼 Jan 9, 2026
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S20 milestone Jan 9, 2026
Comment on lines 4 to 6
export class Worker {
static constructInstance(): Worker {
return new Worker(this.asBlobURI(LMLayerWorkerCode));
return new globalThis.Worker(this.asBlobURI(LMLayerWorkerCode));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little problematic. Worker is a generic and semi-reserved name that we should not be stepping on. This should be LMWorker or PredictiveTextWorker, throughout.

(DefaultWorker is also kinda weird)

Addresses code review comment: `Worker` is a generic and semi-reserved
name that we should not be stepping on.

This renames it to `WebWorker` instead of the suggested `LMWorker` or
`PredictiveTextWorker`. `WebWorker` is a name that was already used
in a few places and seems to better match: there is a corresponding
class for running with node. Naming it `WebWorker` makes it clearer
that this is the corresponding class when running in the browser.

The corresponding class for running under node was renamed to `NodeWorker`.

Test-bot: skip
@ermshiperete ermshiperete requested a review from mcdurdin January 12, 2026 09:53
@ermshiperete ermshiperete merged commit 89681ce into epic/web-core Jan 13, 2026
15 of 16 checks passed
@ermshiperete ermshiperete deleted the refactor/web/renames branch January 13, 2026 09:37
@github-project-automation github-project-automation bot moved this from Todo to Done in Keyman Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants