Skip to content

Commit

Permalink
fix: remove es6-set ponyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 23, 2021
1 parent 66ad021 commit a55db96
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 125 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"update-compat": "node scripts/update-compat && git add compat.md README.md && git commit --quiet -m \"docs: Update feature compat table\" &> /dev/null || true"
},
"dependencies": {
"es6-set": "^0.1.5",
"fengari": "^0.1.4",
"fengari-interop": "^0.1.2",
"lodash": "^4.17.20",
Expand Down
2 changes: 0 additions & 2 deletions src/commands/sadd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

export function sadd(key, ...vals) {
if (!this.data.has(key)) {
this.data.set(key, new Set());
Expand Down
2 changes: 0 additions & 2 deletions src/commands/scard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

export function scard(key) {
const set = this.data.get(key);
if (!set) {
Expand Down
2 changes: 0 additions & 2 deletions src/commands/sdiff.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

export function sdiff(ours, ...theirs) {
if (this.data.has(ours) && !(this.data.get(ours) instanceof Set)) {
throw new Error(`Key ${ours} does not contain a set`);
Expand Down
2 changes: 0 additions & 2 deletions src/commands/sinter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import { sunion } from './index';

export function sinter(...keys) {
Expand Down
2 changes: 0 additions & 2 deletions src/commands/smove.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

export function smove(source, destination, member) {
if (this.data.has(source) && !(this.data.get(source) instanceof Set)) {
throw new Error(`Key ${source} does not contain a set`);
Expand Down
1 change: 0 additions & 1 deletion src/commands/spop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import _ from 'lodash';
import Set from 'es6-set';

const safeCount = (count) => {
const result = count !== undefined ? parseInt(count, 10) : 1;
Expand Down
1 change: 0 additions & 1 deletion src/commands/srandmember.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { shuffle, random } from 'lodash';
import Set from 'es6-set';

export function srandmember(key, count) {
if (this.data.has(key) && !(this.data.get(key) instanceof Set)) {
Expand Down
2 changes: 0 additions & 2 deletions src/commands/sunion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

export function sunion(...keys) {
keys.forEach((key) => {
if (this.data.has(key) && !(this.data.get(key) instanceof Set)) {
Expand Down
1 change: 0 additions & 1 deletion src/commands/type.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Set from 'es6-set';
import { isArray, isPlainObject, isString } from 'lodash';

// eslint-disable-next-line consistent-return
Expand Down
1 change: 0 additions & 1 deletion src/data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Set from 'es6-set';
import { assign } from 'lodash';

export default function createData(
Expand Down
2 changes: 0 additions & 2 deletions test/commands/scard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('scard', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/sdiff.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('sdiff', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/sinter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('sinter', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/sismember.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('sismember', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/smembers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('smembers', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/smove.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('smove', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/spop.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('spop', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/srandmember.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('srandmember', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/commands/srem.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('srem', () => {
Expand Down
1 change: 0 additions & 1 deletion test/commands/sscan.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Set from 'es6-set';
import MockRedis from 'ioredis';

describe('sscan', () => {
Expand Down
1 change: 0 additions & 1 deletion test/commands/sscanStream.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Set from 'es6-set';
import { ObjectWritableMock } from 'stream-mock';
import Chance from 'chance';
import _ from 'lodash';
Expand Down
2 changes: 0 additions & 2 deletions test/commands/sunion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import MockRedis from 'ioredis';

describe('sunion', () => {
Expand Down
2 changes: 0 additions & 2 deletions test/data.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Set from 'es6-set';

import createData from '../src/data';
import createExpires from '../src/expires';

Expand Down
1 change: 0 additions & 1 deletion test/keyprefix.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Set from 'es6-set';
import { ObjectWritableMock } from 'stream-mock';
import Chance from 'chance';
import _ from 'lodash';
Expand Down
83 changes: 0 additions & 83 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2053,14 +2053,6 @@ cssstyle@^2.3.0:
dependencies:
cssom "~0.3.6"

d@1, d@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==
dependencies:
es5-ext "^0.10.50"
type "^1.0.1"

dashdash@^1.12.0:
version "1.14.1"
resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0"
Expand Down Expand Up @@ -2274,51 +2266,6 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"

es5-ext@^0.10.35, es5-ext@^0.10.50, es5-ext@~0.10.14:
version "0.10.53"
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1"
integrity sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==
dependencies:
es6-iterator "~2.0.3"
es6-symbol "~3.1.3"
next-tick "~1.0.0"

es6-iterator@~2.0.1, es6-iterator@~2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c=
dependencies:
d "1"
es5-ext "^0.10.35"
es6-symbol "^3.1.1"

es6-set@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1"
integrity sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=
dependencies:
d "1"
es5-ext "~0.10.14"
es6-iterator "~2.0.1"
es6-symbol "3.1.1"
event-emitter "~0.3.5"

es6-symbol@3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77"
integrity sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=
dependencies:
d "1"
es5-ext "~0.10.14"

es6-symbol@^3.1.1, es6-symbol@~3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18"
integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==
dependencies:
d "^1.0.1"
ext "^1.1.2"

esbuild@^0.9.6:
version "0.9.6"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.9.6.tgz#2cae519e7ce2328ecf57ae738090d07ce7245850"
Expand Down Expand Up @@ -2518,14 +2465,6 @@ esutils@^2.0.2:
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==

event-emitter@~0.3.5:
version "0.3.5"
resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39"
integrity sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=
dependencies:
d "1"
es5-ext "~0.10.14"

exec-sh@^0.3.2:
version "0.3.4"
resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.3.4.tgz#3a018ceb526cc6f6df2bb504b2bfe8e3a4934ec5"
Expand Down Expand Up @@ -2589,13 +2528,6 @@ expect@^26.6.2:
jest-message-util "^26.6.2"
jest-regex-util "^26.0.0"

ext@^1.1.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/ext/-/ext-1.4.0.tgz#89ae7a07158f79d35517882904324077e4379244"
integrity sha512-Key5NIsUxdqKg3vIsdw9dSuXpPCQ297y6wBjL30edxwPgt2E44WcWBZey/ZvUc6sERLTxKdyCu4gZFmUbk1Q7A==
dependencies:
type "^2.0.0"

extend-shallow@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f"
Expand Down Expand Up @@ -4303,11 +4235,6 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=

next-tick@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw=

nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
Expand Down Expand Up @@ -5711,16 +5638,6 @@ type-fest@^0.8.1:
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d"
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==

type@^1.0.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0"
integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==

type@^2.0.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/type/-/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d"
integrity sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw==

typedarray-to-buffer@^3.1.5:
version "3.1.5"
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
Expand Down

0 comments on commit a55db96

Please sign in to comment.