Skip to content

Commit

Permalink
fix: review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
erights committed Jan 13, 2024
1 parent 431812c commit ed04f05
Show file tree
Hide file tree
Showing 21 changed files with 19 additions and 19 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions packages/common/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './src/common.js';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@endo/utils",
"name": "@endo/common",
"version": "1.0.1",
"private": true,
"description": null,
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/src/utils.js → packages/common/src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const { ownKeys } = Reflect;

const { details: X, quote: q, Fail } = assert;

// TODO Complete migration of Checker type from @endo/pass-style to @endo/utils
// TODO Complete migration of Checker type from @endo/pass-style to @endo/common
// by having @endo/pass-style, and everyone else who needs it, import it from
// @endo/utils.
// @endo/common.
/**
* @callback Checker
* Internal to a useful pattern for writing checking logic
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions packages/common/test/test-index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { test } from './prepare-test-env-ava.js';

test('placeholder', async t => {
t.fail('TODO: add tests');
});
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/exo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@endo/far": "^1.0.1",
"@endo/pass-style": "^1.0.1",
"@endo/patterns": "^1.0.1",
"@endo/utils": "^1.0.1"
"@endo/common": "^1.0.1"
},
"devDependencies": {
"@endo/init": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/exo/src/exo-makers.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="ses"/>
import { environmentOptionsListHas } from '@endo/env-options';
import { objectMap } from '@endo/utils';
import { objectMap } from '@endo/common';

import { defendPrototype, defendPrototypeKit } from './exo-tools.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/exo/src/exo-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
getInterfaceGuardPayload,
getCopyMapEntries,
} from '@endo/patterns';
import { listDifference, objectMap } from '@endo/utils';
import { listDifference, objectMap } from '@endo/common';
import { GET_INTERFACE_GUARD } from './get-interface.js';

/** @typedef {import('@endo/patterns').Method} Method */
Expand Down
6 changes: 3 additions & 3 deletions packages/patterns/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ export * from './src/types.js';
export {
/**
* @deprecated
* Import directly from `@endo/utils` instead.
* Import directly from `@endo/common` instead.
*/
listDifference,

/**
* @deprecated
* Import directly from `@endo/utils` instead.
* Import directly from `@endo/common` instead.
*/
objectMap,
} from '@endo/utils';
} from '@endo/common';
2 changes: 1 addition & 1 deletion packages/patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@endo/eventual-send": "^1.0.1",
"@endo/marshal": "^1.0.1",
"@endo/promise-kit": "^1.0.1",
"@endo/utils": "^1.0.1"
"@endo/common": "^1.0.1"
},
"devDependencies": {
"@endo/init": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/patterns/src/keys/checkKey.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
makeFullOrderComparatorKit,
sortByRank,
} from '@endo/marshal';
import { identChecker } from '@endo/utils';
import { identChecker } from '@endo/common';

import { checkElements, makeSetOfElements } from './copySet.js';
import { checkBagEntries, makeBagOfEntries } from './copyBag.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/patterns/src/keys/keycollection-operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
makeFullOrderComparatorKit,
sortByRank,
} from '@endo/marshal';
import { makeIterator, makeArrayIterator } from '@endo/utils';
import { makeIterator, makeArrayIterator } from '@endo/common';

/** @typedef {import('@endo/marshal').RankCompare} RankCompare */
/** @typedef {import('../types').KeyComparison} KeyComparison */
Expand Down
2 changes: 1 addition & 1 deletion packages/patterns/src/patterns/patternMatchers.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
applyLabelingError,
fromUniqueEntries,
listDifference,
} from '@endo/utils';
} from '@endo/common';

import { keyEQ, keyGT, keyGTE, keyLT, keyLTE } from '../keys/compareKeys.js';
import {
Expand Down
1 change: 0 additions & 1 deletion packages/utils/index.js

This file was deleted.

5 changes: 0 additions & 5 deletions packages/utils/test/test-index.js

This file was deleted.

0 comments on commit ed04f05

Please sign in to comment.