Skip to content

Commit 200058c

Browse files
authored
Drop webshim polyfill (#718)
Vast majority of browsers nowadays support HTML5, so there is no need for webshimming. The library has not had an update in 7 years too.
1 parent 22aa5e9 commit 200058c

8 files changed

Lines changed: 5 additions & 42 deletions

File tree

COPYRIGHT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ SequenceServer is copyright Anurag Priyam, Ben J Woodcroft and Yannick Wurm,
33
version 3, the text of which can be found in LICENSE.txt.
44

55
Components of SequenceServer, including Sinatra, Ox, Slop, html5shiv,
6-
Underscore, jQuery, jQuery UI, Bootstrap and Webshim, are licensed under
6+
Underscore, jQuery, jQuery UI and Bootstrap, are licensed under
77
the MIT license. D3.js is licensed under BSD license. biojs-vis-sequence
88
is licensed under Apache license. Thin and JSON are licensed under Ruby
99
license. All unmodified files from these and other sources retain their

jest_scripts/jest-setup.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import $ from 'jquery';
2-
import 'webshim/js-webshim/minified/polyfiller';
32
import '@testing-library/jest-dom';
43

54
global.$ = global.jQuery = $;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@
3333
"react": "18",
3434
"react-app-polyfill": "^3.0.0",
3535
"react-dom": "18",
36-
"underscore": "^1.8.3",
37-
"webshim": "^1.15.8"
36+
"underscore": "^1.8.3"
3837
},
3938
"devDependencies": {
4039
"@babel/core": "^7.17.9",

public/config.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ System.config({
2929
"react-dom": "npm:react-dom@18.0.0",
3030
"underscore": "npm:underscore@1.8.3",
3131
"vakata/jstree": "github:vakata/jstree@3.3.8",
32-
"webshim": "npm:webshim@1.15.8",
3332
"github:components/jqueryui@1.11.4": {
3433
"jquery": "github:components/jquery@2.1.4"
3534
},
@@ -143,11 +142,6 @@ System.config({
143142
},
144143
"npm:vm-browserify@0.0.4": {
145144
"indexof": "npm:indexof@0.0.1"
146-
},
147-
"npm:webshim@1.15.8": {
148-
"fs": "github:jspm/nodelibs-fs@0.1.2",
149-
"path": "github:jspm/nodelibs-path@0.1.0",
150-
"process": "github:jspm/nodelibs-process@0.1.2"
151145
}
152146
}
153147
});

public/js/jquery_world.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import $ from 'jquery';
22
import '../packages/jquery-ui@1.11.4';
33
import 'bootstrap';
4-
import 'webshim';
54

65
global.$ = $;
76
/**

public/js/search.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,6 @@ import React, { Component } from "react";
33
import { createRoot } from "react-dom/client";
44
import { DnD } from "./dnd";
55
import { Form } from "./form";
6-
/**
7-
* Load necessary polyfills.
8-
*/
9-
$.webshims.setOptions(
10-
"basePath",
11-
"/vendor/npm/webshim@1.15.8/js-webshim/minified/shims/"
12-
);
13-
$.webshims.polyfill("forms");
146

157
/**
168
* Clear sessionStorage on reload.

public/sequenceserver-report.min.js

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/sequenceserver-search.min.js

Lines changed: 2 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)