Skip to content

Commit

Permalink
Move to new linked-list version #1
Browse files Browse the repository at this point in the history
  • Loading branch information
regevbr committed Mar 12, 2019
1 parent f90eb78 commit e803d4c
Show file tree
Hide file tree
Showing 8 changed files with 53 additions and 78 deletions.
36 changes: 0 additions & 36 deletions @types/linked-list.d.ts

This file was deleted.

31 changes: 19 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
# Squiss-TS Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## [v1.2.1]
### Added
- Bug fix: upgraded mocha version to avoid security risks
## [v1.2.2]
### Fixed
- Upgraded linked-list version to avoid redundant typing files

## v1.2.1
### Fixed
- Upgraded mocha version to avoid security risks

## [v1.2.0]
## v1.2.0
### Added
- Feature: Support message deletion resolving with Promise
- Support message deletion resolving with Promise

## [v1.1.0]
## v1.1.0
### Fixed
- After stop, don't pull any more messages
### Added
- Bug fix: After stop, don't pull any more messages
- Feature: Added support for customizing the requested message attributes
- Feature: Stop method now returns promise that will be resolved when queue drains or timeout passes
- Added support for customizing the requested message attributes
- Stop method now returns promise that will be resolved when queue drains or timeout passes

## [v1.0.0]
## v1.0.0
### Added
- Ported from [TomFrost/Squiss](https://www.github.com/TomFrost/Squiss) v2.2.1 (__no backward compatibility__)
- complete rewrite in typescript
- move to the newest AWS sdk (v2.418.0)
- Complete rewrite in typescript
- Move to the newest AWS sdk (v2.418.0)
- Improve the performance by always filling the handled messages and not waiting for an entire batch size to be fetched
- Parse the message attributes into a plain object in send and receive of messages
- Added `purge queue` capability
- Revised the doubly linked list to be used by an external (and lean) library
- Deleting a message now returns a promise that will be fulfilled upon success.
- Batch messaging now supports attribute map per message

[v1.2.2]: https://github.com/PruvoNet/squiss-ts/compare/v1.2.2...v1.2.1
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "squiss-ts",
"version": "1.2.1",
"version": "1.2.2",
"description": "High-volume SQS poller",
"main": "src/index.js",
"engines": {
"node": ">=4.2"
"node": ">=6"
},
"scripts": {
"clean": "rm -rf node_modules build coverage dist",
Expand Down Expand Up @@ -41,7 +41,7 @@
"homepage": "https://github.com/PruvoNet/squiss-ts#readme",
"dependencies": {
"aws-sdk": "^2.418.0",
"linked-list": "^1.0.4",
"linked-list": "^2.0.0",
"ts-type-guards": "^0.6.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--require test/setup.js
--recursive
--require test/setup.ts
--recursive
20 changes: 0 additions & 20 deletions test/setup.js

This file was deleted.

25 changes: 25 additions & 0 deletions test/setup.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
'use strict';

import * as chai from 'chai';
// @ts-ignore
import * as dirtyChai from 'dirty-chai';
import * as chaiAsPromised from 'chai-as-promised';
import * as path from 'path';
// @ts-ignore
import * as mod from 'module';
// @ts-ignore
import * as sinon from 'sinon';
// @ts-ignore
import * as sinonChai from 'sinon-chai';

chai.use(sinonChai);
chai.use(chaiAsPromised);
chai.use(dirtyChai);

(global as any).should = chai.should();
(global as any).sinon = sinon;

// importing files with ../../../../../.. makes my brain hurt
process.env.NODE_PATH = path.join(__dirname, '..') + path.delimiter + (process.env.NODE_PATH || '');
// @ts-ignore
mod._initPaths();
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
]
},
"include": [
"src/**/*.ts",
"@types/**/*.d.ts"
"src/**/*.ts"
],
"exclude": [
"dist"
Expand Down

0 comments on commit e803d4c

Please sign in to comment.