| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Added useSessions()
| * @param heartbeatInterval The interval at which heartbeats are sent after the last sent event. The default is 1 minutes. | ||
| * @param useSessionIdManagement Allows you to manually control the session id. This is only recommended for single user desktop environments. | ||
| */ | ||
| public useSessions(sendHeartbeats: boolean = true, heartbeatInterval: number = 60000, useSessionIdManagement: boolean = false) { |
There was a problem hiding this comment.
@ejsmith I'm not sure about useSessionIdManagement, I guess this is the safe default since this can be used on node.
Sorry, something went wrong.
There was a problem hiding this comment.
It seems fine.
Sorry, something went wrong.
| "testEnvironment": "jsdom" | ||
| }, | ||
| "scripts": { | ||
| "build": "tsc -p tsconfig.json && esbuild src/index.ts --bundle --sourcemap --target=es2017 --format=esm --outfile=dist/index.bundle.js && esbuild src/index.ts --bundle --minify --sourcemap --target=es2019 --format=esm --outfile=dist/index.bundle.min.js", |
There was a problem hiding this comment.
Why did you downgrade this one from es2019 to es2017?
Sorry, something went wrong.
There was a problem hiding this comment.
Because all the other ones were es2017. I'm going to upgrade all of these.
Sorry, something went wrong.
| * @param heartbeatInterval The interval at which heartbeats are sent after the last sent event. The default is 1 minutes. | ||
| * @param useSessionIdManagement Allows you to manually control the session id. This is only recommended for single user desktop environments. | ||
| */ | ||
| public useSessions(sendHeartbeats: boolean = true, heartbeatInterval: number = 60000, useSessionIdManagement: boolean = false) { |
There was a problem hiding this comment.
It seems fine.
Sorry, something went wrong.
|
I'm for us updating it to only support NodeJS versions that are still supported for NodeJS. For browsers, I don't think we should push it higher than we need for the features we are using. I don't want to support any versions of IE at this point. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This sync's changes over from https://github.com/exceptionless/Exceptionless.Net and ensures that you opt into heartbeats.
The breaking change is around heartbeats not being sent / configured when you call setUserIdentity.
I also synced the compiler options which we might want to up our bundle to ES2019 or ES2021 from ES2017. I noticed node is still targeting node 12 with CJS which the new default is ESM. I think we may want to bump this and break this too while we are at it.