Commit Graph
129 Commits
Author SHA1 Message Date
Ilya Kreymer 43122425e5 Restrict new windows in replay + improved service worker loading + better error messages (#126)
* embeds:
- support target rewriting with named iframe as per webrecorder/wombat#94
- refactor sw init: detect additional errors, such as CORS issues in nested iframes
- support cross-origin replaybase for embeds
- add 'requirecrossoriginiframe' to restrict embed to only be loaded in subdomain iframes, otherwise showing
- rename noSandbox -> sandbox, not enabled by default

init: set appName on service worker init
docs:
- add example embed to embedding doc
- update docs for noSandbox -> sandbox
- add warning if deprecated 'noSandbox' flag is used, explaining that it is now deprecated
- update embedding and CHANGES.md with latest features
- add tweet-example.wacz
- add embed.html to test embeds

bump to 1.7.0-beta.1
2022-10-03 20:04:35 -07:00
Ilya Kreymer 27a8524aac Archive verification info + Embed improvements + Embed Receipts UI (#125)
info panel verification/integrity additions, (fixes on #113)
- info panel: display number of hashes verified valid (and invalid), observer domain (if any), and certificate fingerprint, creation software, and package digest
- info: ensure replayTS is updated, not just replayUrl, to ensure correct stats

404 page: improved formatting on 404 page (via wabac.js)

embeds:
- new embed 'replay-with-info mode, displays replay-only with dropdown showing archival 'receipt, which includes condensed info and verification (hashes valid/invalid, observer domain, cert fingerprint)
- support 'newWindowBase' attribute for specifying base replay URL for opening new window. default: use current url if deepLink enabled, otherwise use https://replayweb.page/
use transparent for embeds
- embed dropdown/receipt styling from @Shrinks99 
- automatically setting noCache and noWebWorker for older browsers (eg. safari < 16)
- add 'hideOffscreen' attribute to enable unloading embed when offscreen

dependencies: update to wabac.js 2.13.0-beta.0

bump version to 1.7.0-beta.0

Embed receipt styling co-authored-by: @Shrinks99
2022-10-01 18:22:30 -07:00
Ilya Kreymer 7e8650519e fidelity: various replay improvements (fix module script rewriting, twitter embedded video rewriting fidelity, ignore invalid link headers)
dependencies: update to wabac.js 2.12.5
bump to 1.6.5
2022-09-01 18:37:30 -07:00
Matteo Cargnelutti 064f6db55e Upgrade to the latest version of webpack (#116) 2022-09-01 18:31:45 -07:00
Ilya Kreymer 8a698bef41 loading: don't ignore hashtag, eg. '#.wacz' to specify file type for source when loading (via wabac.js)
dependencies: bump wabac.js to 2.12.4
bump to 1.6.5
2022-08-24 10:33:43 -07:00
Ilya Kreymer 6c6d66f03a loading: add 'noCache' option for <replay-web-page> embeds, ensure option is passed to wabac.js loader
dependencies: update to wabac.js 2.12.3 to fully support noCache for WARCs
bump to 1.6.4
2022-08-06 17:56:16 -07:00
Ilya Kreymer 2a0aba02bb dependency: update to wabac.js 2.12.2 (includes fixes for replaying revisit records + incorrect js module detection)
bump to 1.6.3
2022-08-04 21:34:48 -07:00
Ilya Kreymer 1bf83416d3 dependencies: update wabac.js to 2.12.1 for ipfs loading fix 2022-07-15 13:41:01 +00:00
Ilya Kreymer f1c5e931c8 extensability: make purge cache configurable
ui: fix date padding for month-day
package: add index.html to npm package
bump to 1.6.2, update CHANGES.md
2022-07-05 12:24:50 -07:00
Ilya Kreymer 54fd92c273 error fix + embedding extensability (#110)
* embed mode: make embedding options more extensible
ui: unify service worker not available errors, show same error in standard/embed mode, including when loaded over http
- more customizations for extended embed, allow hiding 'browse contents' button
- simplify title updates
- make error page / icon more customizable
- autoupdating in editable mode: don't update if previous one didn't finish, make customizable, don't autoupdate at all over >=100 pages

* dependencies: update ruffle to 2022-07-02

* bump to 1.6.1, update CHANGELIST
2022-07-05 10:48:32 -07:00
Ilya Kreymer 0619d28b02 electron build: fix osx build by adding 'singleArchFiles' entry 2022-06-15 12:30:49 -07:00
Ilya Kreymer 7ff5b49011 dependencies: update to wabac.js 1.12.0 (improved eval() and twitter video fidelity)
electron: update to 19.0.4, update electron-builder
CHANGES: update for 1.6.0
bump to 1.6.0
2022-06-15 12:04:26 -07:00
Ilya Kreymer 36da7fa2c6 Add a 'noWebWorker=true' option to <replay-web-page> embed to disable loading in separate web worker (#102)
* add a 'noWebWorker' option to <replay-web-page> embed to disable the default webworker-based loading, and load via the service worker directly. this feature was previously available, but turned-off, as its less efficient (uses sw for what can be done in a separate web worker thread). however, service-worker based loading may be needed for certain edge cases (see #97), and this option enables this loading method to be turned back on for embedding.
* docs: update guide to include 'noWebWorker', also use include attribute for boolean attributes
* update CHANGES.md
* bump to 1.5.12
2022-06-15 11:38:04 -07:00
Ilya Kreymer 789e5ba2b1 dependabot batch (#104)
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.7.0 to 2.8.0.
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
Bumps [marked](https://github.com/markedjs/marked) from 3.0.3 to 4.0.10.
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.2 to 2.6.7.
Bumps [engine.io](https://github.com/socketio/engine.io) from 5.2.0 to 5.2.1.
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.14.3 to 1.14.8.
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.25 to 3.3.1.
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 6.11.2 to 6.11.3.
2022-06-15 11:36:29 -07:00
Ilya Kreymer d3892abdbe dependency: update to wabac 2.11.1 - fix loading for very large wacz files containing warcs by loading an extra block on load if needed 2022-03-25 10:09:29 -07:00
Ilya Kreymer 44182c66d8 dependency: update to wabac 2.11.0
loading: various loading improvements, support for per-host live proxy config, fix url-prefix api errors (via wabac.js)
bump to 1.5.11
2022-03-24 22:28:35 -07:00
Ilya Kreymer 8a1e2a5ac4 replay fidelity: encoding fix for non-ascii links, optimizations for utf-8 parsing (via wabac.js 2.10.3)
dependencies: update to wabac.js 2.10.3
bump to 1.5.10
2022-03-07 17:45:13 -08:00
Ilya Kreymer 221aabaaf7 dependencies: update to wabac.js 2.10.2
loading: for experimental multi-wacz input, disable periodic reload for now
bump to 2.5.9
2022-02-01 18:18:03 -08:00
Ilya Kreymer 213079ce11 dependency: update to wabac.js 2.10.1
bump version to 1.5.8
2022-02-01 16:59:10 -08:00
Ilya Kreymer b55594861d subpath hosting: fix top-frame redirect in new tab (via wabac.js 2.10.1), fixes #82
loading: fix multi-wacz support (was disabled in wabac.js, fixed in 2.10.1)
bump to 2.5.8
2022-01-31 14:19:31 -08:00
Ilya Kreymer 114d5fe1c9 gh action: update action version
dependency: update lit to latest
dependency: rollback ipfs-core update, as electron-builder does not yet support node>=15
2022-01-09 10:17:52 -08:00
Ilya Kreymer 91ef718b08 dependency update release: update to wabac.js 2.10.0, wombat 3.3.6, electron 16.0.6, ruffle (2022-01-08)
bump to 1.5.7
2022-01-08 23:33:33 -08:00
Ilya Kreymer 178d0507eb * large WARC loading optimizations (attempted to fix #67)
- use dedicated web worker for loading, remove when done
- update to warcio 1.5.0 for faster loading of large WARCs
- show WARC records loading for better progress update

* fidelity: fix potentially invalid location redirect via wombat 3.3.5 (see: webrecorder/pywb#684)

* dependencies: wabac.js 2.10.0-beta.0 (includes warcio 1.5.0, wombat 3.3.5)

* bump to 1.5.6, update CHANGES
2021-11-27 17:06:37 -08:00
Ilya Kreymer dfc059042d ruffle: update to latest nightly (2021-10-25)
electron: update to electron 15.3.0
2021-10-25 11:39:17 -07:00
Ilya Kreymer 34b03e6b08 didelity: only wrap JS globals if necessary (via wabac.js 2.9.5)
update to wabac.js 2.9.5
bump to 1.5.5
2021-10-25 11:04:55 -07:00
Ilya Kreymer 4a1f786de6 update to wabac.js 2.9.4:
- fidelity improvements: don't add __esModule, better handling of .php files
2021-10-22 16:35:16 -07:00
Ilya Kreymer e69b082222 misc improvements:
- Faster rewriting of large JS files
- Fidelity: Fixes for twitter video replay
- Loading: Fix IPFS loading of WARCs
- Dependencies: update to wabac.js 2.9.3
bump to 1.5.4
2021-10-12 10:20:28 -07:00
Ilya Kreymer a261a61721 fidelity: fix eval edge case (via wombat), enable http->https check for wacz sources (via wabac.js)
dependency updates:
- switch to webpack 5 and related build dependencies
- update litelement -> 'lit'
- wabac.js 2.9.2, wombat 1.3.4

search:
- update to latest flexsearch
- optimize search by using single-field index

bump to 1.5.3
2021-09-18 12:32:00 -07:00
Ilya Kreymer d341c03350 ipfs improvements:
- fix ipfs for apple m1 osx builds by adding extra binary prebuilds (for now)
- use <profile directory>/js-ipfs for ipfs repo
- update to js-ipfs 0.10.6
bump to 1.5.2
2021-09-13 07:31:37 -07:00
Ilya Kreymer 589ea5ddd4 misc improvements for library usage:
- app: allow custom serviceworker path, or disable altogether
- page download options: add warc/1.0 option
- ui: remove unused small style from chooser
ui: tweak initial refresh time to half second

bump to 1.5.1
2021-09-07 22:42:13 -07:00
Ilya Kreymer 14bcd4aaf2 build fix:
- fix universal build for osx using workaround
- fix including ruffle, add to build files list, instead of to dist/
2021-08-29 13:43:51 -07:00
Ilya Kreymer c090003d8a update to wabac.js 2.9.0-beta.0, smaller file size, loading improvements
ruffle: support for ruffle for flash loading, both hosted and in app
electron: update to latest beta (14) for latest chromium version
embed error messages: better error message when service worker can not be found
electron: build universal app for osx
bump to 1.5.0!
2021-08-28 13:55:57 -07:00
Ilya Kreymer 741fd6c4b1 dependency: update to wombat 2.8.0, part of fix for #64 2021-08-16 14:13:33 -07:00
Ilya Kreymer 2b95e03fcc upstream wabac + wombat update:
- update to wabac.js 2.8.0-beta.0: optimzed rewriting for html, better eval() rewrite and jsonp matching
- update to wombat 3.3.0: disable POST-to-get rewriting (no longer needed in chrome!)
2021-08-12 19:58:37 -07:00
Ilya Kreymer c9fd30afaa fix for #60 via wabac.js 2.7.11
- improved HAR loading, don't filter out empty responses, add error messages when content is missing
- fix empty hashtag displayed as "null"
bump to 1.4.7
2021-08-05 17:18:57 -07:00
Ilya Kreymer 358d0afe3c dependency update: wabac.js 2.7.10 / wombat 3.2.2:
- fidelity improvements: better sw override, better Storage override, disable dash for ig videos
- loading: not found error page includes hash of url (if any)
2021-07-16 16:55:27 -07:00
Ilya Kreymer 1a69e65bcb dependency update: latest wabac.js/wombat.js for improved WS override (no network connection), pixel ratio override fix
bump to 1.4.6
2021-06-25 15:59:08 -07:00
Ilya Kreymer fa0b229aa9 loading: fix loading from ipfs, use latest ipfs-core
fidelity: support local/sessionStorage replay, if available
update CHANGES
dep: use wabac.js 2.7.8
bump to 1.4.5
2021-06-05 21:44:46 -07:00
Ilya Kreymer e542d25a82 electron: fallback to load archived version instead of 404 if full url given
dependency: update to latest electron 11 minor version (11.4.8)
2021-06-04 15:37:28 -07:00
Ilya Kreymer f81789c296 dependency: update to wabac.js 2.4.8, update CHANGES for 1.4.4 2021-06-03 15:48:56 -07:00
Ilya Kreymer a4405bf736 dependency: update to wabac 2.7.6 for additional loading fixes 2021-05-24 19:32:41 -07:00
Ilya Kreymer 042ca4a78e update to wabac.js 2.7.5, including loading fixes:
- better loading if range in HEAD request not support
- avoid 'If-Range header
bump to 1.4.4
2021-05-24 17:46:29 -07:00
Ilya Kreymer 15720189b3 1.4.3 work (#51)
* update to 1.4.3-beta for testing auto-live-redirect in wabac.js

* update to latest wabac.js beta:
- limit prefix querying
- rewrite: ensure redirect http->https preserves original url in case of fuzzy matching

* update to latest wabac.js beta

* update to latest wabac.js beta, further auto-live-redir fixes

* ui: fix location bar not reloading with URLs that contain hashtags

* dependencies: bump to wabac.js 2.7.4

* bump to 1.4.3
2021-05-17 12:39:34 -07:00
Ilya Kreymer 7ae0832cd9 bump to wabac.js 2.7.3
update README for 1.4.2 release
2021-05-04 11:07:36 -07:00
Ilya Kreymer f82c8e1bf1 dependency: update to wabac.js 2.7.3-beta.0, optimized wacz loading 2021-05-01 11:17:40 -07:00
Ilya Kreymer d3a3fe91e9 dependency: update to wabac.js 2.7.2, including: fixes for more accurate rewriting, fixes for old-wacz
bump to 1.4.2
2021-04-30 17:00:49 -07:00
Ilya Kreymer 0f08190aca misc fixes:
- fix file download in chrome
- fix full-text index loading in older wacz files
dependencies: updaate to wabac 2.7.1
bump to 1.4.1
2021-04-29 13:44:24 -07:00
Ilya Kreymer 0ef8f955db 1.4.0 Release (#45)
* customizations for chooser, coll-index and appmain to support usage in archiveweb.page
- chooser: support panel/message view
- move apiPrefix to misc
- make coll-index extensible, overridable styles, filtering

* api changes: make configurable in coll-index, now using '/w/' instead of '/wabac/', '/c/' prefix for coll apis

* lint pass!

* bulma: update to 0.9.2, fix delete spinner with latest bulma

* ui fixes:
- show 'Loading Archives...' on initial load until first api response succeeds
- fix typo in oncontrollerchange not actually resolving the promise!

* embed sandbox: add other allow options, except top-nav
- first api load: keep loading message until first successful api load
- don't reset hash on purge to keep current page
- sw config: fix typo with latest wabac.js
- embed: add 'noSandbox' option to avoid adding sandbox to iframe, needed to show PDFs, add more allow rules (all except top-navigation)

* ui improvements:
- refresh: ensure location refresh from hitting enter in location bar always resets url
- pageentry doubleclick: ensure double-clicking on page in sidebar always triggers reload, even if current page
- pageentry typo fix: fix missing var causing selection error (fixes webrecorder/archivewebpage#25)
- lint: don't include 'event' as global
- use latest wabac.js 2.7.0-beta.1

* add CHANGES for 1.4.0, add 'noSandbox' to embedding options
- electron app: fix path to 'w/'
- bump electron to 11.4.3

* docs: autoload current version from package.json
- chooser: support .json files for multiwacz (experimental)
- update CHANGES.md
- add missing .eslintrc.js file

* bump version to 1.4.0
2021-04-25 16:45:40 -07:00
Ilya Kreymer 0648f7d4ce fidelity: fix encoding issue in utf-8 encoded js/css introduced in 1.3.13, ensure consistent decoding (fix in wabac 2.6.9)
bump to 1.3.15
2021-03-30 15:07:32 -07:00
Ilya Kreymer e45e4267b6 bump to 1.3.14 to fix npm package 2021-03-26 08:32:20 -07:00