diff --git a/.changeset/silver-rice-applaud.md b/.changeset/silver-rice-applaud.md new file mode 100644 index 000000000..2ed7870cd --- /dev/null +++ b/.changeset/silver-rice-applaud.md @@ -0,0 +1,9 @@ +--- +'@lion/ajax': minor +'@lion/core': minor +'@lion/icon': minor +'@lion/localize': minor +--- + +Removing LionSingleton as es modules are already guaranteed to be singletons. +This reduces complexity and means less code to ship to our users. diff --git a/packages/ajax/README.md b/packages/ajax/README.md index 2cfd3b6f3..20d73b7e4 100644 --- a/packages/ajax/README.md +++ b/packages/ajax/README.md @@ -91,7 +91,7 @@ This prefix should be stripped before parsing the string as JSON. Pass the prefix with the `jsonPrefix` option. ```js -const myAjax = AjaxClass.getNewInstance({ jsonPrefix: ")]}'," }); +const myAjax = new AjaxClass({ jsonPrefix: ")]}'," }); myAjax .get('./packages/ajax/docs/assets/data.json') .then(response => { @@ -110,7 +110,7 @@ Add additional headers to the requests with the `headers` option. export const additionalHeaders = () => html`