All notable changes to permafrost-dev/node-ray
will be documented in this file.
- update dependencies and builds
- add
confetti
support (#102) - update dependencies
- update dependencies
- add
separator()
method - add
projectName()
method - add
screenColor()
method - add
withCredentials = false
setting (#49)
- add
label()
method
- add
limit()
method - add
once()
method - add
if()
method - add rate limiting
- add
text()
method
- intercepting
console.log()
messages now sends the message to both Ray andconsole.log
. - fix issue where using
sent_payload_callback
caused a stack overflow.
- fix
intercept_console_log
to default tofalse
when callingcreate()
- add
enabled_callback
setting for determining the enabled state in a dynamic way - add
sending_payload_callback
andsent_payload_callback
settings
-
add
htmlMarkup(content)
method that displays a syntax-highlighted string of html (instead of rendering it) -
add
macro(name, callable)
method that allows adding custom methods onto the Ray class
- allow specifying
scheme
in the configuration to allow using https in certain circumstances
-
fix
exception()
causing an error in Ray -
fix error in
RemovesRayFrames.isRayFrame()
when filename of a frame could not be found
-
add
exception()
method -
add
hostname
to origin data
- bump package versions:
concurrently
to6.0.0
,eslint-config-prettier
to8.1.0
-
don't
await
calls toupdateRayAvailabilty()
insend()
(resolves #7 & #8) -
don't send data to Ray when
NODE_ENV
is set to "production" or "staging" (resolves #15)
- update rollup config
- use
@permafrost-dev/pretty-format
package instead ofpretty-format
- add
tslib
package
- change plugins used by pretty-format package to DOM only
-
changed
table()
andTablePayload
to accept either an object or an array, as Ray expects an object for proper row labels to be displayed -
added
trace()
andTracePayload
-
added
caller()
andCallerPayload
-
added
event()
andEventPayload
-
converted original
RemovesRayFrames
PHP trait to TypeScript -
fixed
getOriginFrame()
-
fixed
getCaller()
-
the source file and line number are now displayed correctly in the Ray app
-
update the way
Client
availabilty checks are done to avoid multiple checks in succession -
calculate the memory usage for
measure()
when used in NodeJS -
pause()
now stops or resumes code execution properly
-
update Ray app availability status as soon as the client is created
-
add helper method
Ray.client()
-
add helper method
Client.init()
to force an availability status update
-
change the way client availability status resets to avoid process hanging
-
fix ConsoleInterceptor implementation
-
change
ConsoleInterceptor.intercept()
and.reset()
to.enable()
and.disable()
-
enable client checks to see if the Ray app is running
-
fix bug where ConsoleInterceptor could access Ray.client before it was created
-
add
ray().interceptor().intercept()
method to redirect allconsole.log()
calls to Ray -
add ConsoleInterceptor class
-
ensure all payloads have an origin, fixing an occasional bug caused during bundle creation (i.e., webpack) where payloads were sent but Ray did not display them
-
ensure
dayjs
andstopwatch-node
packages are treated as external packages for the NodeJS and web versions
-
add node export variant ('node-ray/node')
-
fix import/exports for ./web.js
-
code cleanup
- fix sourcemaps generated by rollup
-
add ability to configure Ray within a Browser environment (host, port, etc.)
-
add
measure()
method to measure the performance of a callback or interval (see docs) -
add
stopTime()
method to remove either a named stopwatch, or all stopwatches if no name is provided
-
update
web
variant module -
update readme
- use
.mjs
extension for esm modules
-
change the output filenames to end with
.js
, instead of.cjs
and.mjs
-
update readme
-
bump
find-up
package version to5.0
-
add
dayjs
package -
add
error()
method to display information about errors -
add
date()
method to display information about a date
- fix raw html displaying instead of rendered html with calls like
ray({hello: 'world'})
- remove import of
os
module in the web build
- add support for browser environments instead of only NodeJS
-
add
error()
method for displaying errors/exceptions -
update documentation
- initial release