New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@discoveryjs/discovery

Package Overview
Dependencies
Maintainers
0
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@discoveryjs/discovery - npm Package Versions

1
10

1.0.0-beta.73

Diff

Changelog

Source

1.0.0-beta.73 (05-04-2023)

  • Fixed loadDataFromStream() and loadDataFromFile() methods when no options parameter is specified
  • Fixed "data collected at" date displaying on a report page
  • Fixed #.actions availability for an App's overlay rendering
lahmatiy
published 1.0.0-beta.72 •

Changelog

Source

1.0.0-beta.72 (05-04-2023)

  • Made internal navigation using anchors (<a> tags) work without router extension enabled. Use ignore-href class on an anchor to prevent navigation by href attribute if needed
  • Added permalink action to generate current state of an app (absolute page URL by default), it can be overridden by embedding host
  • Changed Widget#setPageHash() to make leading # optional, i.e. Widget#setPageHash('#report') and Widget#setPageHash('report') give the same result now
  • Embed API:
    • Reworked internals for more efficient data transfer, e.g. transfer a data stream intead of tranfering data with chunks
    • Replaced App#loadData with App#uploadData(source, extractResourceMetadata) method, which takes source instead of a function returning a source
    • Added setRouterPreventLocationUpdate() method for preloader and app to prevent location updates (and browser's history as well) on internal navigation
    • Added setPageHash() method for preloader embed API
  • Reworked loading data API and internals:
    • Added support for loading binary encoded data (jsonxl snapshot 9)
    • Added Widget#datasets and #.datasets to store loaded datasets (data itself and its meta data as an object). Current APIs assume to work with a single dataset (data), so this list contains zero or one element for now. However, future version will allow to load and work with multiple datasets (still need to think about the details)
    • Added dataset option in Widget#setData() method options to provide dataset's attributes, which is optional and a dataset object will has data field only if the option is not provided
    • Added start(resource) method to loadFromPush() API
    • Changed loading data logic to always expect raw data and meta info specified aside (via options) if provided (see release notes for details)
    • Changed preloader to pass loadDataOptions into all the loading methods as options
    • Changed Widget#setDataProgress(data, context, progressbar) signature into setDataProgress(data, context, options), where options is an object { dataset?, progressbar? }
    • Removed #.name and #.createdAt, use #.datasets[].resource | { name, createdAt } instead
    • Removed data from Windget#context, however, data is still available in a render context as data of default dataset, i.e. #.data which the same as #.datasets[].data
    • Removed Widget#dataLoaded and #.dataLoaded flags, use Widget#hasDatasets() method or #.datasets in jora queries
    • Changes in loadDataFromUrl() method:
      • Changed getContentSize option to not take url parameter anymore
      • Changed the default getContentSize handler to prefer X-File-Size header over Content-Length header
      • Added getContentCreatedAt option to specify a function to retrieve createdAt from a fetch's response (by default, retrieve a value from the X-File-Created-At header if present, or Last-Modified header otherwise)
      • Added getContentEncodedSize option
      • Fixed a potential crash on JSON parse for a bad response with application/json content type
      • Removed dataField option
      • Removed support for loading raw data using this function
  • Removed Widget#lib
lahmatiy
published 1.0.0-beta.71 •

Changelog

Source

1.0.0-beta.71 (20-03-2023)

  • Added embed extension to provide a communication with a host in case when an app is loaded into iframe
  • Added embed support for to pass loadDataOptions into all the loading methods as options
  • Added dist/discovery-embed-host.js into package, a ESM module which provides an API to communicate with an app loaded into a sandbox (iframe)
  • Added setup() method for upload extension to specify custom settings
  • Added #.actions.uploadFile.dragdrop to indicate drag&drop file supported or not (provided by upload extension)
  • Added startLoadData, startSetData and unloadData events
  • Added callAction(name, ...args, callback?) and actionHandler(name, ...args, callback?) jora helpers, the callback is applying to handle a result of an action call when specified
  • Changed tooltip to use evaluated value instead of raw config value
  • Changed Progressbar to be inherited from Publisher
  • Replaced Widget#actions with Widget#action which is a dictionary, i.e. now available Widget#action.define(name, callback), Widget#action.revoke(name), Widget#action.call(name, ...args) and the rest methods of Dict (actions also available via #.actions in jora queries)
  • Fixed markerAll() jora helper
  • Fixed upload options setting
  • Fixed applying twice the extensions passed via App's options
  • Fixed suggestions for context value (#) in report's query editor
  • Tweaked nested list styles in markdown view
  • Removed obsoleted methods:
    • Widget#addEntityResolver()
    • Widget#addValueLinkResolver()
    • Widget#addBadge()
    • Widget#addQueryHelpers()
lahmatiy
published 1.0.0-beta.70 •

Changelog

Source

1.0.0-beta.70 (10-10-2022)

  • Added new options for usage sections: demoData, highlight and highlightProps
  • Improved the view inspector to display entire data flow transitions
  • Changes for annotations in struct:
    • Accept strings and functions in annotations option (beside { query: ... } notation)
    • Changed debug option to take a string value which will be used in debug messages
    • Added #.context for annotation's queries to have an access to struct's context
    • Added tooltip option
    • Removed title option
lahmatiy
published 1.0.0-beta.69 •

Changelog

Source

1.0.0-beta.69 (29-09-2022)

  • Implemented tooltip as a view wide option
  • Changes in source view
    • Added maxSourceSizeToHighlight option
    • Added tooltip option for refs, e.g. source:{ refs: [{ range: [1, 4], tooltip: "struct" }] }
    • Tweaked styles for refs
    • Removed error option
    • Removed disabled option
lahmatiy
published 1.0.0-beta.68 •

Changelog

Source

1.0.0-beta.68 (05-09-2022)

  • Fixed copy to clipboard in FireFox
lahmatiy
published 1.0.0-beta.67 •

Changelog

Source

1.0.0-beta.67 (09-08-2022)

  • Added type: module to package.json
  • Fixed suggestions in query editor when a pattern contains upper case letters
  • Uniformed number delimeter insertion in all places, added a HTML escaping and fixed pattern matching
  • Fixed testing a string is URL in struct view to accept dashes in a domain name
  • Fixed an unnecessary caught exception on the lib loading
  • Added darkmode attribute on a preloader container when dark mode is used
  • Removed dataField parameter in loadDataFromUrl() method, this parameter might be passed via options
  • Added option loadDataOptions in preloader's config to pass it as options to load data methods
  • Changed Widget constructor from Widget(container, defaultPage, options) to Widget(options), container and defaultPage values can be specified via options as options.container and options.defaultPage respectively
  • Changed App constructor from App(container, options) to App(options), container value can be specified via options as options.container
  • Changed App's default value for container option to document.body
  • styles option of Widget & App:
    • Added "inline" and "external" as aliases for "style" and "link" respectively
    • Added support for media attribute for inline styles in styles option of Widget & App, e.g.
      new App({
          styles: [
              { type: 'style', content: '...', media: 'all and (max-width: 1000px)' }
          ]
      })
      
lahmatiy
published 1.0.0-beta.66 •

Changelog

Source

1.0.0-beta.66 (14-07-2022)

  • Added text-numeric view
  • Added alert-primary view
  • Added destroy() method to Popup view
  • Added external data option for badge views
  • Added version to library exports
  • Added Discovery.js credits into nav popup
  • Allowed className in view{ config } notation
  • Changed className in view config to take a string starting with = as a query, e.g. { view: 'block', className: '=query' }
  • Eliminated unnecessary query execution and view rendering on a report page when changing non-affecting page params. As a side effect page params query, view, title, dzen and noedit are not available for the main query and views anymore
  • Changes in struct view:
    • Added a view as table for array and object values
    • Added a thousandth delimiter for all numeric indicators
    • Added allowedExcessStringLength, maxStringLength, maxCompactStringLength and maxCompactPropertyLength options
    • Fixed a crush on open actions popup view when a value has too much nested structure
  • Changes in table view:
    • Added scalarAsStruct and colSpan config options to table-cell
    • Added cols and isScalar() to the table-row's context
    • Changed rendering of scalar values using struct view
    • Changed rendering of null value as null string instead of an empty cell
    • Fixed rendering of arrays when object values mixed with scalar values
    • Fixed collapsing a row height when all cells are empty
    • Hide a more buttons row when no buttons (gave a few extra pixels in the bottom of a table)
  • Uniformed a monospace font family across all views
  • Fixed suggestions in query editor to suggest values with the same quotes as a pattern string
  • Fixed highlighting issues in source view
  • Bumped jora to 1.0.0-beta.7
lahmatiy
published 1.0.0-beta.65 •

Changelog

Source

1.0.0-beta.65 (18-04-2022)

  • Fixed "copy text to clipboard" feature to use a fallback in case of clipboard-write permission is not granted (#90)
  • Reduced init time of Widget by lazy init for the report page views, i.e. init views only when the report page is opened for the first time
  • Tweaked source view styles
  • Fixed badge views styles to change a color on hover only when href attribute is set
  • Fixed exception when lookup() method of object marker is called with an unknown type, return undefined instead
  • Fixed hanging up when a pattern matches zero-length substring (i.e. in input view with type regexp)
  • Fixed edge cases in displaying an error location in query editor
  • Bumped jora to 1.0.0-beta.6
  • Improved performance of variants generation for suggestions popup up to 30-40 times
  • Changed suggestions behaviour in query editor to be less intrusive
  • Changed style for suggestions popup, use icons for value types instead of captions
  • Fixed report page header editing to not re-render a report on input
lahmatiy
published 1.0.0-beta.64 •

Changelog

Source

1.0.0-beta.64 (15-02-2022)

  • Fixed loading stage order
  • Improved accuracy for loading timings log
  • Fixed loading progressbar appearance delay, i.e. no more visible progressbar when data instantly loaded
  • Fixed setting of data on context when a prepare handler returns a new value, before changes context.data contained a reference to an original (loaded) value, for now Widget#context.data is always equal to Widget#data after a loadData() call
  • Fixed action buttons on data load error page
  • Added preset/upload
  • Added a way to customise error message rendering on data load: if an error has a renderContent property its value is using as a config for rendering instead of default "red box"
  • Added rejectData(message, renderContent) method to prepare handler API, for a rejecting data due to a bad format or other reasons
  • View inspector:
    • Displayed data changes in case a config.data is used
    • Added D and C badges in sidebar when data or context of the view is different with a parent view
    • Fixed unnecessary sidebar scrolling on view selection
  • Changed a behaviour when a preset is not found, for now just render nothing instead of warning badge
  • Removed mode from context and a modelfree specific logic (with a single exception for special in routing, will be removed in next releases)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc