Skip to content

Commit

Permalink
chore: release 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkhogg committed Dec 31, 2023
1 parent 2066ecd commit acb2325
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 62 deletions.
15 changes: 11 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,25 @@ This file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## UNRELEASED
## [2.5.0] - 2023-12-31

### Added:
- Added `mapKey` method to both iterables
- Added `mapValue` method to both iterables
- Added `duplicate` method to both iterables

### Changed:
- Improved types of `toObject` and `toMap` methods
- Improved performance of `PolySyncIterable#map` and `PolySyncIterable#filter`


## [2.4.0] - 2023-07-04

### Added:
- Added `mapKey` method to both iterables
- Added `mapValue` method to both iterables

### Changed:
- Added an `options` argument to `PolyAsyncIterable#complete`
- Added an `options` argument to `PolyAsyncIterable#join`
- Improved performance of `PolySyncIterable#map` and `PolySyncIterable#filter`


## [2.3.0] - 2023-03-16
Expand Down
11 changes: 0 additions & 11 deletions docs/polyethylene.baseimpls.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/polyethylene.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ The entry point for this library is the [Poly](./polyethylene.poly.md) namespace
| --- | --- |
| [Poly](./polyethylene.poly.md) | Main namespace for the creation of [PolySyncIterable](./polyethylene.polysynciterable.md) and [PolyAsyncIterable](./polyethylene.polyasynciterable.md) objects. |

## Variables

| Variable | Description |
| --- | --- |
| [baseImpls](./polyethylene.baseimpls.md) | |

## Type Aliases

| Type Alias | Description |
Expand Down
24 changes: 0 additions & 24 deletions etc/polyethylene.api.json
Original file line number Diff line number Diff line change
Expand Up @@ -693,30 +693,6 @@
}
]
},
{
"kind": "Variable",
"canonicalReference": "polyethylene!baseImpls:var",
"docComment": "",
"excerptTokens": [
{
"kind": "Content",
"text": "baseImpls: "
},
{
"kind": "Reference",
"text": "BaseImpls",
"canonicalReference": "polyethylene!~BaseImpls:interface"
}
],
"fileUrlPath": "src/lib/sync/poly-sync-iterable.ts",
"isReadonly": true,
"releaseTag": "Public",
"name": "baseImpls",
"variableTypeTokenRange": {
"startIndex": 1,
"endIndex": 2
}
},
{
"kind": "TypeAlias",
"canonicalReference": "polyethylene!ChunkingPredicate:type",
Expand Down
14 changes: 0 additions & 14 deletions etc/polyethylene.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ export class AsyncIterableBuilder<T> implements AsyncIterable<T> {
value(obj: T): void;
}

// Warning: (ae-forgotten-export) The symbol "BaseImpls" needs to be exported by the entry point main.d.ts
//
// @public (undocumented)
export const baseImpls: BaseImpls;

// @public
export type ChunkingPredicate<T> = (elem: T, lastElem: T, firstElem: T) => boolean;

Expand Down Expand Up @@ -62,15 +57,6 @@ export type IndexedRunnable<T> = (elem: T, index: number) => void;
// @public
export type IndexedTypePredicate<T, U extends T> = (elem: T, index: number) => elem is U;

// Warning: (ae-internal-missing-underscore) The name "IterablePolySyncIterable" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export class IterablePolySyncIterable<T> extends PolySyncIterable<T> {
// (undocumented)
[Symbol.iterator](): Iterator<T, void, undefined>;
constructor(iterable: Iterable<T>);
}

// @public
namespace Poly {
function asyncFrom<T>(iterableOrFactory: Iterable<T> | IterableFactory<T> | AsyncIterable<T> | AsyncIterableFactory<T>): PolyAsyncIterable<T>;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polyethylene",
"version": "2.4.0",
"version": "2.5.0",
"description": "Functional programming for iterables and async iterables",
"author": "Daniel Escoz <[email protected]>",
"license": "MIT",
Expand Down
1 change: 0 additions & 1 deletion src/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import PolyAsyncIterable from './async/poly-iterable.js'
export default Poly
export {Poly, PolySyncIterable, PolyAsyncIterable, AsyncIterableBuilder}

export type * from './sync/poly-sync-iterable.js'
export type * from './async/poly-iterable.js'

export type * from './types.js'
4 changes: 3 additions & 1 deletion src/lib/sync/poly-sync-iterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ import PolyAsyncIterable from '../async/poly-iterable.js'
import type MapSyncIterable from './map-sync-iterable.js'
import FilterSyncIterable from './filter-sync-iterable.js'

/* default implementatios -- undefined here to prevent circular dependencies */
/* default implementations -- undefined here to prevent circular dependencies */
/** @internal */
interface BaseImpls {
map: typeof MapSyncIterable.create
filter: typeof FilterSyncIterable.create
}
/** @internal */
export const baseImpls = {} as BaseImpls


Expand Down

0 comments on commit acb2325

Please sign in to comment.