Skip to content

Commit

Permalink
Merge pull request #29 from harness/FFM-2141
Browse files Browse the repository at this point in the history
[FFM-2141] remove bundleDependencies from package.json
  • Loading branch information
enver-bisevac authored Jan 24, 2022
2 parents 962c4c4 + b8165ac commit 2dd5d97
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 521 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build

.idea
*.lock
yarn-error.log
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,21 @@ In case you want to import this library directly (without having to use npm or y

```html
<script type="module">
import { initialize, Event } from 'https://unpkg.com/@harnessio/[email protected].4/dist/sdk.client.js'
import { initialize, Event } from 'https://unpkg.com/@harnessio/[email protected].10/dist/sdk.client.js'
</script>
```

If you need to support old browsers which don't support ES Module:

```html
<script src="https://unpkg.com/@harnessio/[email protected].4/dist/sdk.client.js"></script>
<script src="https://unpkg.com/@harnessio/[email protected].10/dist/sdk.client.js"></script>
<script>
var initialize = HarnessFFSDK.initialize
var Event = HarnessFFSDK.Event
</script>
```

Remember to change the version `1.4.4` in the unpkg url accordingly.
Remember to change the version `1.4.10` in the unpkg url accordingly.

## License

Expand Down
4 changes: 2 additions & 2 deletions examples/vallina-esm/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
<pre id="log"></pre>

<script type="module">
import { initialize, Event } from 'https://unpkg.com/@harnessio/ff-javascript-client-sdk@1.4.4/dist/sdk.client.js'
import { initialize, Event } from 'https://unpkg.com/@harnessio/ff-javascript-client-sdk/dist/sdk.client.js'

const log = msg => {
document.querySelector('#log').innerHTML += `${msg}\n`
}

const cf = initialize(
'50e52f07-ec4b-4b4a-8743-fd5050c31e1c',
'ed56f3ec-1aa6-4bc2-a519-6ebcc3f0541f',
{
identifier: 'Harness',
attributes: {
Expand Down
4 changes: 2 additions & 2 deletions examples/vallina/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="Content-Language" content="en" />
<title>Harness Feature Flags Sample</title>
<script src="https://unpkg.com/@harnessio/ff-javascript-client-sdk@1.4.4/dist/sdk.client-iife.js"></script>
<script src="https://unpkg.com/@harnessio/ff-javascript-client-sdk/dist/sdk.client-iife.js"></script>
</head>
<body>
<pre id="log"></pre>
Expand All @@ -20,7 +20,7 @@
}

var cf = initialize(
'59b46adf-e194-4102-9b90-d9df0b39b645',
'ed56f3ec-1aa6-4bc2-a519-6ebcc3f0541f',
{
identifier: 'Harness1',
attributes: {
Expand Down
Loading

0 comments on commit 2dd5d97

Please sign in to comment.