Skip to content

Upgrade strong-globalize to the latest version #4585

@bajtos

Description

@bajtos

In a typical application, there are multiple versions (and copies) of strong-globalize in the dependency tree.

Take our examples/todo as an example:

$ npm ls strong-globalize
@loopback/example-todo@2.0.0 /private/tmp/loopback4-example-todo
├─┬ @loopback/repository@1.19.1
│ └─┬ loopback-datasource-juggler@4.18.1
│   ├─┬ loopback-connector@4.10.1
│   │ └── strong-globalize@5.0.5  deduped
│   └── strong-globalize@5.0.5
├─┬ @loopback/rest@2.0.0
│ └─┬ strong-error-handler@3.4.0
│   └── strong-globalize@5.0.5  deduped
└─┬ loopback-connector-rest@3.6.0
  └── strong-globalize@4.1.3

At the moment, require('strong-globalize') is taking about 0.3s (see strongloop/strong-globalize#158). Every copy of the module adds another 1/3 of a second to the application load time.

Let's upgrade strong-globalize to the latest version in LB modules maintained by StrongLoop (unless they are in Active or Maintenance LTS mode).

Acceptance criteria

Connectors

Others

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions