Skip to content

Releases: snapcrunch/electron-preferences

2.8.2

15 Mar 08:26
Compare
Choose a tag to compare

Fixed

  • Title attribute in browserWindowOptions wasn't applied (#184)
  • Bump vulnerable dependencies

2.8.1

17 Nov 10:36
Compare
Choose a tag to compare

Fixed

  • move serialize-javascript from dev dependencies to dependencies (#183)

Changed

  • Bump loader-utils dependencies to 1.4.2

2.8.0

07 Nov 11:26
Compare
Choose a tag to compare

Added

  • hideFunction on sections, groups or fields which you can conditionally hide (via other preferences) (#160)
  • Ability to pass JS functions in the preference object to the renderer (#160)
  • Ability to pass sectionId to the show() function (#153)
  • secret field which encrypts the input via electron's safeStorage (#176)
  • encrypt and decrypt IPC calls which use electron's safeStorage (#176)
  • expose decrypt function on preferences object (#176)

Changed

  • Bump dependencies to their latest version

2.7.0

18 Jul 20:37
Compare
Choose a tag to compare

Fixed

  • Freezing UI when clicking a button type in the preferences window (#161)
  • Defaults could be changed by passing around the defaults object (#150)

Added

  • Added allowOnlyModifier property to the accelerator input to allow shortcuts like Alt or Shift
  • type 'number' instead of having to declare type 'text' with 'inputType = number' (#168)
  • Maximum and minimum list size via min and max list properties (#164)
  • resetToDefaults endpoint to the preferences object which removes any non-default properties and set all default properties to their default values (#97)

Changed

  • bump dependencies to their latest version

2.6.0

29 Mar 07:07
Compare
Choose a tag to compare

Fixed

  • Set defaults for new preferences added in a group after app has started (#141)
  • Include files to be exposed in npm build (#119)
  • Correct menuBar option in README (#130)
  • Updated dependencies
  • Improve README.md

Added

  • Button component. Will trigger an event on the preferences.click when clicked. (#99)
  • Expose close function on preference object to close the preference window if opened (#130)
  • Expose closePreferences function on the ipcRenderer to close the preference window if opened (#130)

2.5.0

18 Sep 20:00
Compare
Choose a tag to compare

Fixed

  • Accessibility issues: contrast, navigation with keyboard, labels (#76)
  • Always enable electron contextIsolation (#122)

Added

  • Preferences option debug: true which opens the devTools by default (#124)
  • Expose browserWindowOverrides on the preference object (#112)

Changed

  • Checkbox type supports a single boolean value

v2.4.1

13 Jul 20:18
Compare
Choose a tag to compare

Fixed

  • Focus the preference window when triggering .show() when window was already created
  • Allow the Accelerator value to be cleared via a single backspace or delete keydown
  • Checkbox crashing on invalid values
  • First click on a checkbox is ignored

v2.4.0

10 Jul 19:59
Compare
Choose a tag to compare

Added

  • File select component
  • Support multiple selection of files and folders via the 'multiSelections' option

Changed

  • Read/write settings file atomically
  • Debounced saving settings file to 200ms (prevent overwriting disk)
  • Add custom css stylesheet using the css options

v2.3.2

25 May 16:11
Compare
Choose a tag to compare

Fixed

  • Unable to pass complex objects (e.g. another BrowserWindow) to the preference options because of IPC serialization

v2.3.1

04 May 12:24
Compare
Choose a tag to compare

Fixed

  • Accidentally overwriting webpreferences