Skip to content

Commit

Permalink
Version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaskorz committed May 17, 2023
1 parent 83c18c7 commit 5aaf9b2
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## v2.2.0 (2023-05-17)

Changes:
- Target ES2015 instead of ES5

Fixes:
- Add [`crossorigin="anonymous"`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin) to script tags for compatibility with [COEP](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy)

Technical changes:
- Updated from TypeScript `4.4` to `5.0`

## v2.1.0 (2021-09-28)

Changes:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@alugha/ima",
"version": "2.1.0",
"version": "2.2.0",
"description": "A library for asynchronously loading the Google IMA SDK with static typing for the SDK",
"license": "MIT",
"author": "Niklas Korz <[email protected]>",
Expand Down Expand Up @@ -53,6 +53,6 @@
"lint-staged": "^11.1.2",
"prettier": "^2.4.1",
"rimraf": "^3.0.2",
"typescript": "^4.4.3"
"typescript": "^5.0.4"
}
}
1 change: 1 addition & 0 deletions src/loadScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const loadScript = (src: string): Promise<Event> =>
script.src = src;
script.onload = resolve;
script.onerror = reject;
script.crossOrigin = "anonymous";
document.body.appendChild(script);
});

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "es5",
"module": "es2015",
"target": "ES2015",
"module": "ES2015",
"lib": ["dom", "es5", "es2015.promise"],
"outDir": "./lib/esm",
"strict": true,
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1959,10 +1959,10 @@ type-fest@^0.20.2:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4"
integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==

typescript@^4.4.3:
version "4.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324"
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==
typescript@^5.0.4:
version "5.0.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.0.4.tgz#b217fd20119bd61a94d4011274e0ab369058da3b"
integrity sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==

unbox-primitive@^1.0.1:
version "1.0.1"
Expand Down

0 comments on commit 5aaf9b2

Please sign in to comment.