webext-options-sync

Helps you manage and autosave your extension's options. Chrome and Firefox.

MIT License

Downloads
2.3K
Stars
150
Committers
9

Bot releases are hidden (Show)

webext-options-sync -

Published by fregante about 5 years ago

This version is compatible with v0.21.1

If you come from an earlier version, refer to the readme, but the main change is that there's no define method and you should use the same OptionsSync instance across the whole extension because defaults are no longer stored in memory.

Major Changes

  • Turn into ES Module; drop CJS file: 07c30a9ad11285a698e33e725fcbafa6718cf33a
  • Don't store defaults, they'll be merged in the getter: f66da008cf9cea99baa67497824734d4cf827214

Minor Changes

  • Dispatch options-sync:form-synced event when form is synced: 31d3b89939881b0f0158d12f060239e45709d7ec
  • Add comprehensive form support: #28
  • Add tests: #35
  • Add stopFormSync: 34650a216c4b72fa4048ec74a41081f4eec5b4ed

Patches

  • Drop change event listener: 5dc8c8715d55b70c3c59e6799ff3096df4e2775c
  • Reduce migrations logging: f0218b187d0816617369b46ea4b0e2e58d974603

Type updates

  • Specify private methods in TypeScript: 72a35160e633bd8e37f29990ebf40f3ecca006f2
  • Loosen TypeScript types for set method: 23fd94703620fde1936d87bf7d994d1957aeef6b
  • Export Migration type: 79189251cd48039fcc9e6cd27879dd63e0ed1943
webext-options-sync -

Published by fregante over 5 years ago

Patches

  • Fix TypeScript types for set method: #29
  • Fix type of private _timer property: 883e9b1a1bc3fff1b242b0e994d77e74e289ba6b

Credits

Huge thanks to @notlmn for helping!

webext-options-sync -

Published by fregante over 5 years ago

Patches

  • Run migrations/defaults even when the extension is installed locally: cd67956942b6008ed15347b2c25d1851d8f1b155
  • Catch chrome.runtime.lastError in set/setAll/getAll's promises: bf527655caa6f384b3c8fd8fc32185c7a52c79bf
  • Avoid syncForm updates while the user is editing a field: c376aec52f372d1f05246440243d08b78df9b06a
  • Delay form auto-save by 600ms: f7365dcbe09d4cb68f6e2d035c76e93f62b47069
  • Fix mistakes in previous 3 releases: 14d35c27e9c7d349842f700cea812f0e1b555eee
webext-options-sync -

Published by fregante over 5 years ago

Broken. Use 0.21.1 or later

Major Changes

  • Drop custom element: bd7bd6c698ada321436c35c6a2312d82494d1b3f
webext-options-sync -

Published by fregante over 5 years ago

Broken. Use 0.21.1 or later

Patches

  • Improve TypeScript types: fc77d661742e95ecefce66d0b738c1e3a7d7aae3
webext-options-sync -

Published by fregante over 5 years ago

Broken. Use 0.21.1 or later

Major Changes

  • Convert to TypeScript: #20
  • Drop .define method. Definitions are now part of the constructor: #21

Patches

  • Add logging attribute to custom element: d65495653bae4598c67c8d043d08d5da705158a9
webext-options-sync -

Published by fregante over 5 years ago

Minor Changes

  • Add option to disable logging: #18

Credits

Huge thanks to @plibither8 for helping!

webext-options-sync -

Published by fregante over 5 years ago

Patches

  • Debounce saving events: e49a527d4f23cc7d4d9583de81ebfbe88f9c0362
webext-options-sync -

Published by fregante over 5 years ago

Patches

  • Fire input event after form is updated: 2499515ee98dd021de31532ea9282588d23b2895
webext-options-sync -

Published by fregante over 6 years ago

Patches

  • Only add the custom element in DOM environments: 291cdb1fe7e4e16bd2e9e5e1733bf70307f4cf26
webext-options-sync -

Published by fregante over 6 years ago

Fixes

  • Actually pass defaults to migrations: 013cccb19a6b10413dcd3e94d6d868a59cc4b7cc
webext-options-sync -

Published by fregante almost 7 years ago

New features

  • Automatically update the form when using multiple tabs/computers: a20606aef28b6b3a522b1d3f50e2d46b665c476e

Patches

  • Improve logging with console.group: 3f0a2c82fc4ab8e027316ad5d2458cc1286bdcf1
webext-options-sync -

Published by fregante almost 7 years ago

Patches

  • Avoid errors where custom elements aren't supported: e1dfc51dadc3f13608e612db70cfc5f63c1a3f73
webext-options-sync -

Published by fregante almost 7 years ago

New features

  • Add support for sync via custom element: 5477def09c7c70bab2f6fb0983443936d26ce6c5
webext-options-sync -

Published by fregante almost 7 years ago

Minor Changes

  • Assign defaults before migrations: 8731bb59ed0ef4a824d94620250515a11809b342
webext-options-sync -

Published by fregante over 7 years ago

Minor Changes

  • Don't save invalid fields: #3
  • Use sync storage only: 8856c988244ed16597ad004217f5c19dfbec01f3

Code improvements

  • Use async/await: c85d5cd0e7b3a12afe3d02b3cf829e317bbea60a
  • Code golf: 859ce8ee988913b144a7e2c67ec74c5adae22733
  • Add some comments: d7ebfa3a469e5070d7b35d12fb475af81b67cf23

Credits

Huge thanks to @ramlmn for their help!

webext-options-sync -

Published by fregante over 7 years ago

Major Changes

  • Rename OptSync variable to OptionsSync: 6e74961e0eb9b13adc57582f1be3a208479ef9ba

Minor Changes

  • OptSync.syncForm now accepts a selector: 7f1283e3891484b02ff22fd2b4631e89f1f1c43b
webext-options-sync -

Published by fregante over 7 years ago

Minor Changes

  • Ignore unnamed fields: d82c54c7077bf2848f96f0b76ef28c56220065f0
webext-options-sync -

Published by fregante over 7 years ago

Minor Changes

  • Get numerical options as Number: cbbaed0e156f7321f507179a43bf86f9b61e1fb5
webext-options-sync -

Published by fregante over 7 years ago

  • Fix involuntary variable overlap: 831b9bb163e84b725c725c8bcef622171bebf9c3
Package Rankings
Top 6.75% on Proxy.golang.org
Top 4.63% on Npmjs.org
Badges
Extracted from project README
Related Projects