Skip to content

Commit

Permalink
wombat 3.8.0 - update to warcio 2.3.0 (#169)
Browse files Browse the repository at this point in the history
- includes improved POST->GET canonicalization
- update rollup to latest
- bump version to 3.8.0
  • Loading branch information
ikreymer authored Aug 28, 2024
1 parent 6c170e3 commit a47b563
Show file tree
Hide file tree
Showing 6 changed files with 237 additions and 296 deletions.
6 changes: 3 additions & 3 deletions internal/rollup.testPageBundle.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { nodeResolve } from '@rollup/plugin-node-resolve';
const path = require('path');
const { nodeResolve } = require('@rollup/plugin-node-resolve');

const wombatDir = path.join(__dirname, '..');
const baseTestOutput = path.join(wombatDir, 'test', 'assets');
Expand All @@ -10,7 +10,7 @@ const noStrict = {
}
};

export default {
module.exports = {
input: path.join(__dirname, 'testPageBundle.js'),
output: {
name: 'testPageBundle',
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webrecorder/wombat",
"version": "3.7.14",
"version": "3.8.0",
"main": "index.js",
"license": "AGPL-3.0-or-later",
"author": "Ilya Kreymer, Webrecorder Software",
Expand All @@ -11,6 +11,7 @@
"devDependencies": {
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@types/fs-extra": "^8.0.0",
"ava": "^2.3.0",
"chokidar": "^3.0.2",
Expand All @@ -25,8 +26,7 @@
"fs-extra": "^8.1.0",
"lodash-es": "^4.17.21",
"prettier": "^1.18.2",
"rollup": "^2.56.2",
"rollup-plugin-babel-minify": "^9.0.0"
"rollup": "^4.21.0"
},
"scripts": {
"build-prod": "rollup -c rollup.config.prod.js",
Expand Down Expand Up @@ -65,6 +65,6 @@
"*/**/fs-extra": "~8.1.0"
},
"dependencies": {
"warcio": "^2.2.0"
"warcio": "^2.3.0"
}
}
8 changes: 3 additions & 5 deletions rollup.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import * as path from 'path';

import { nodeResolve } from '@rollup/plugin-node-resolve';

const path = require('path');
const { nodeResolve } = require('@rollup/plugin-node-resolve');

const outputDir = process.env.OUTPUT_DIR || path.join(__dirname, 'dist');

Expand Down Expand Up @@ -92,4 +90,4 @@ if (process.env.ALL) {
config = wombat;
}

export default config;
module.exports = config;
16 changes: 7 additions & 9 deletions rollup.config.prod.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as path from 'path';
import minify from 'rollup-plugin-babel-minify';

import { nodeResolve } from '@rollup/plugin-node-resolve';

const path = require('path');
const { nodeResolve } = require('@rollup/plugin-node-resolve');
const terser = require ('@rollup/plugin-terser');

const license = `/*
Wombat.js client-side rewriting engine for web archive replay
Expand Down Expand Up @@ -51,10 +49,10 @@ const minificationOpts = {
undefinedToVoid: false
};

export default [
module.exports = [
{
input: 'src/wbWombat.js',
plugins: [nodeResolve({ browser: true }), minify(minificationOpts), addLicenceNoStrict],
plugins: [nodeResolve({ browser: true }), terser(), addLicenceNoStrict],
output: {
name: 'wombat',
file: path.join(outputDir, 'wombat.js'),
Expand All @@ -63,7 +61,7 @@ export default [
},
{
input: 'src/wbWombatProxyMode.js',
plugins: [minify(minificationOpts), addLicenceNoStrict],
plugins: [terser(), addLicenceNoStrict],
output: {
name: 'wombatProxyMode',
file: path.join(outputDir, 'wombatProxyMode.js'),
Expand All @@ -72,7 +70,7 @@ export default [
},
{
input: 'src/wombatWorkers.js',
plugins: [minify(minificationOpts), addLicenceNoStrict],
plugins: [terser(), addLicenceNoStrict],
output: {
name: 'wombatWorkers',
file: path.join(outputDir, 'wombatWorkers.js'),
Expand Down
6 changes: 3 additions & 3 deletions rollup.config.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as path from 'path';
import { nodeResolve } from '@rollup/plugin-node-resolve';
const path = require('path');
const { nodeResolve } = require('@rollup/plugin-node-resolve');

const baseTestOutput = path.join(__dirname, 'test', 'assets');
const noStrict = {
Expand All @@ -8,7 +8,7 @@ const noStrict = {
}
};

export default [
module.exports = [
{
input: 'src/wbWombat.js',
output: {
Expand Down
Loading

0 comments on commit a47b563

Please sign in to comment.