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
3
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.43

Diff

Changelog

Source

1.0.0-beta.43 (20-10-2020)

  • Introduced dark color scheme a.k.a. dark mode. Various fixes and improvements in views markup and styles
  • Improved loading progress overlay repaints to avoid freezing when document became inactive
  • Added Widget#pathToQuery(path) method
  • Added toggle and toggle-group views
  • Changed a bit default page in model free mode
  • Fixed children option ignorance in itemConfig when limitLines is used for tree view
  • Fixed href option to work for button view
  • Fixed path generation in signature details
  • Fixed context for Widget#nav.menu item rendering
lahmatiy
published 1.0.0-beta.42 •

Changelog

Source

1.0.0-beta.42 (08-10-2020)

  • Exposed lookupObjectMarker(value, type?) and lookupObjectMarkerAll(value) methods to prepare handler
  • Added Widget#queryFn(query) method
  • Added Widget#queryToConfig(query) method (uses internally for extracting config from a string)
  • Isolated view defined props and pass it to view's render. That means that special properties (view, when, data, whenData, className and postRender) aren't passing to a view's render now
  • Added queryable values in view's config. A queryable value is a string that starts with =, e.g. { view: 'list', limit: '= size() > 13 ? 10 : false' } will show entire list if its size <= 13, otherwise show by chunks of 10 items
  • Added in-string configuration for views, e.g. "list{ limit: size() > 13 ? 10 : false, item: 'auto-link' }" will be converted into { view: 'list', limit: '=size() > 13 ? 10 : false', item: 'auto-link' }
  • Made header on report page sticky positioned
  • Fixed view rendering breaking on data query processing
  • Fixed Symbol() stringifying in struct view
  • Fixed overlapping a selection by view name spotlighting in view editor
  • Fixed report scroll jumping on typing in an editor due to change in rendered content height
  • Fixed table view rendering crash on column order detection
  • Fixed auto-sorting for a table view column with both data and content in config
lahmatiy
published 1.0.0-beta.41 •

Changelog

Source

1.0.0-beta.41 (06-10-2020)

  • Reworked data loading progress bar to respect Content-Encoding and X-File-Size headers
  • Fixed styles for h3, h4 and h5 views
lahmatiy
published 1.0.0-beta.40 •

Changelog

Source

1.0.0-beta.40 (04-10-2020)

  • Fixed regression of non-expandable cells with implicit details (i.e. for objects) in table view
lahmatiy
published 1.0.0-beta.39 •

Changelog

Source

1.0.0-beta.39 (02-10-2020)

  • Fixed patching for prismjs@^1.21.0
  • Bumped jora to 1.0.0-beta.3
  • Introduced view's showcase page (#views-showcase)
  • Core
    • Improved error handling in data prepare handler
    • Display data loading progress
    • Reworked navigation panel and introduced Widget#nav API
    • Removed Widget#addBadge() method (use Widget#nav API instead)
    • Added Widget#setPageRef() method
    • Added optional postRender() method in view config, which is useful for final decoration
    • Fixed empty entry (i.e. { "": true }) in #.params when page's route has no params
  • Report page
    • Improved syntax highlighting in editors
    • Added known view highlighting in view editor
    • Fixed loss of functions, regexps and dates on view source formatting on report page
    • Improved available views presentation
  • Changes in views:
    • alert
      • Changed variations to have .view-alert class
      • Fixed CSS styles
    • block
      • Removed missed styles, it affected <h2> by legacy reasons
    • button
      • Added support for href and external values in data, which ignores when button is disabled or onClick is specified
      • Don't apply onClick when button is disabled
      • Add onclick class to element when onClick handler is applied
      • Preserve style of hover state while triggered popup is showing
      • Fixed styles to preserve a consistent size across variations
    • header
      • Changed variations to have .view-header class
      • Fixed CSS styles
    • menu-item
      • Added support for href and external values in data, which ignores when item is disabled or onClick is specified
      • Changed to use <a> as a view root element
      • Add onclick class to element when onClick handler is applied
      • Preserve style of hover state while triggered popup is showing
    • select
      • Added beforeItems and afterItems options to specify content before/after items
      • Added limit option to limit items count on first render
      • Added minItemsFilter option to specify minimal items count (excluding reset item) required to apply filter input (default 10)
      • Changed popup content layout and styles
    • signature
      • Changed location path in details popup to use [index] instead of pick(index)
    • source
      • Added highlighting for discovery-view and discovery-query
    • struct
      • Improved estimated JSON size computation in action popup
      • Added "Copy path" to action popup
    • table
      • Added auto detection for column sorting state, i.e. determine an order of values in a column and mark column coresponding to the order if any
      • Make column non-sortable when all its values are equal, since sorting have no effect
      • Used natural sorting approach for generated sorting functions
      • Inverted icons for sorting direction
    • tabs
      • Changed tabs config option to take a query
      • Fixed tab.content overriding by tabConfig.content (tab.content wins as intended now)
      • Apply tabs configuration to tab's config instead of data
    • tab
      • Moved value and text from data to config
      • Added disabled config option
      • Add onclick class to element when onClick handler is applied
lahmatiy
published 1.0.0-beta.38 •

Changelog

Source

1.0.0-beta.38 (19-05-2020)

  • Fixed switching to "Processing..." label on data is loaded and decoded instead of TTFB time
lahmatiy
published 1.0.0-beta.37 •

Changelog

Source

1.0.0-beta.37 (18-05-2020)

  • Extended prepare handler to take extension API as a second parameter. For now API contains following methods:
    • addValueAnnotation() to define a value annotation used mostly in struct view. The first argument should be a handler: a function or a string query. Handler takes a value and context, which contains properties: host (an object or an array that includes a value), key, index and parent (a reference to parent context). The handler should return falsy value (when no annotation needed) or an object with following fields (all fields are optional):
      • place'after' (by default) or 'before', where to place annotation before or after a value
      • style'default' (by default), 'none' (no any visual styles for annotation block) or 'badge' (uses for object markers)
      • className - additional CSS classes that should be added to annotation block
      • text – annotation text
      • title – value for title attribute
      • icon - url, dataURI or class name with icon- prefix
      • href - annotation is a link
      • external - when annotation is a link, open in new window when true
    • defineObjectMarker(name, options) to define an object marker, which returns a function to wrap objects, i.e. object.forEach(defineObjectMarker('foo', { /* options */ })). Options (all are optional):
      • refs – a list of string (a field name) or function (getter), which values should refer to an object beside direct reference to object. Uses for unique object values, e.g. id
      • lookupRefs - a list of string (a field name) or function (getter), that uses to retrieve additional values to identify original object
      • page - a string, marker should be a link to specified page
      • ref - a string (a field name) or a function (getter), a value that uses in link to page to identify object
      • title - astring (a field name) or a function (getter), a text that represent an object, e.g. in auto-link
    • addQueryHelpers() method the same as Widget#addQueryHelpers()
  • Added a set of default methods:
    • marker(type?) – returns any marker associated with a value, when type is specified only this type of marker may be returned
    • markerAll() – returns all markers associated with a value
  • Removed Widget#addEntityResolver() method, use defineObjectMarker() instead
  • Removed Widget#addValueLinkResolver() method, use defineObjectMarker() with page option instead
  • Removed Widget#addQueryHelpers() method, use addQueryHelpers() instead
  • Removed resolveLink option for page.define(), use page option in defineObjectMarker() instead
lahmatiy
published 1.0.0-beta.36 •

Changelog

Source

1.0.0-beta.36 (17-05-2020)

  • Bumped deps: jora@1.0.0-beta.2
  • Fixed exception in table view when column query is empty
lahmatiy
published 1.0.0-beta.35 •

Changelog

Source

1.0.0-beta.35 (14-05-2020)

lahmatiy
published 1.0.0-beta.34 •

Changelog

Source

1.0.0-beta.34 (14-05-2020)

  • Bumped jora version to 1.0.0-beta.1
  • Improved error handling in query editor
  • Fixed ignoring explicit column sorting in table view when value is falsy
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