Skip to content

Commit

Permalink
fix: remove es6-map ponyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Mar 23, 2021
1 parent 426b326 commit 66ad021
Show file tree
Hide file tree
Showing 30 changed files with 2 additions and 59 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-map": "^0.1.5",
"es6-set": "^0.1.5",
"fengari": "^0.1.4",
"fengari-interop": "^0.1.2",
Expand Down
1 change: 0 additions & 1 deletion src/commands/set.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { expire } from './index';

function createGroupedArray(arr, groupSize) {
Expand Down
2 changes: 0 additions & 2 deletions src/commands/zadd.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Map from 'es6-map';

export function zadd(key, ...vals) {
// consume options
const options = [];
Expand Down
2 changes: 0 additions & 2 deletions src/commands/zcard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Map from 'es6-map';

export function zcard(key) {
const map = this.data.get(key);
if (!map) {
Expand Down
1 change: 0 additions & 1 deletion src/commands/zcount.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { filter } from 'lodash';
import { parseLimit, filterPredicate } from './zrange-command.common';

Expand Down
2 changes: 0 additions & 2 deletions src/commands/zincrby.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Map from 'es6-map';

export function zincrby(key, increment, value) {
if (!this.data.has(key)) {
this.data.set(key, new Map());
Expand Down
1 change: 0 additions & 1 deletion src/commands/zinterstore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { intersectionBy } from 'lodash';

export function zinterstore(destKey, numKeys, ...keys) {
Expand Down
1 change: 0 additions & 1 deletion src/commands/zpopmax.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { flatMap, orderBy, forEach, reverse } from 'lodash';
import { slice } from './zrange-command.common';

Expand Down
1 change: 0 additions & 1 deletion src/commands/zpopmin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { flatMap, orderBy, forEach } from 'lodash';
import { slice } from './zrange-command.common';

Expand Down
1 change: 0 additions & 1 deletion src/commands/zrange.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { flatMap, orderBy } from 'lodash';
import { slice } from './zrange-command.common';

Expand Down
1 change: 0 additions & 1 deletion src/commands/zrangebyscore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { orderBy, filter, flatMap } from 'lodash';
import {
parseLimit,
Expand Down
1 change: 0 additions & 1 deletion src/commands/zrevrange.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { orderBy, flatten } from 'lodash';
import { slice } from './zrange-command.common';

Expand Down
1 change: 0 additions & 1 deletion src/commands/zrevrangebyscore.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Map from 'es6-map';
import { orderBy, filter, flatMap } from 'lodash';
import {
parseLimit,
Expand Down
2 changes: 0 additions & 2 deletions src/commands/zscore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import Map from 'es6-map';

export function zscore(key, member) {
const map = this.data.get(key);

Expand Down
1 change: 0 additions & 1 deletion src/data.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import Set from 'es6-set';
import Map from 'es6-map';
import { assign } from 'lodash';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

import MockRedis from 'ioredis';

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

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

import MockRedis from 'ioredis';

describe('zscore', () => {
Expand Down
16 changes: 2 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2292,19 +2292,7 @@ es6-iterator@~2.0.1, es6-iterator@~2.0.3:
es5-ext "^0.10.35"
es6-symbol "^3.1.1"

es6-map@^0.1.5:
version "0.1.5"
resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0"
integrity sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=
dependencies:
d "1"
es5-ext "~0.10.14"
es6-iterator "~2.0.1"
es6-set "~0.1.5"
es6-symbol "~3.1.1"
event-emitter "~0.3.5"

es6-set@^0.1.5, es6-set@~0.1.5:
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=
Expand All @@ -2323,7 +2311,7 @@ es6-symbol@3.1.1:
d "1"
es5-ext "~0.10.14"

es6-symbol@^3.1.1, es6-symbol@~3.1.1, es6-symbol@~3.1.3:
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==
Expand Down

0 comments on commit 66ad021

Please sign in to comment.