Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
7ecff3c
chore(META): Start the rewrite
jvanbruegge Feb 9, 2020
648a072
chore(HTTP): Set up http build tooling
jvanbruegge Feb 9, 2020
36a8bc9
Add first version of a basic HTTP driver
jvanbruegge Feb 13, 2020
1664ed7
Clean up first implementation of the http driver
jvanbruegge Feb 18, 2020
c531e55
Split http driver in multiple files
jvanbruegge Feb 18, 2020
5ba29ab
Move common tools to the workspace root
jvanbruegge Feb 18, 2020
a5cd678
Improve types of the http driver
jvanbruegge Feb 19, 2020
45e94aa
Update callbags to the newest version
jvanbruegge Feb 20, 2020
9064eee
Update to @cycle/callbags 2.0.0
jvanbruegge Feb 23, 2020
f1e19cf
Add aborting of requests on unsubscribe
jvanbruegge Mar 14, 2020
49b47e0
Add first implementation of the run function
jvanbruegge Mar 22, 2020
79f4279
Fix imitation of master sinks
jvanbruegge Mar 22, 2020
3c157bf
Buffer synchronous emissions of API subjects
jvanbruegge Apr 21, 2020
5d76049
Make the HttpApi methods lazy
jvanbruegge Apr 23, 2020
6777e0a
Let the first test of the HTTP driver pass
jvanbruegge May 9, 2020
72be95c
Port over the node tests that still make sense
jvanbruegge May 10, 2020
c9f3b42
Add more tests about error handling
jvanbruegge May 10, 2020
d262426
Port over most of the common testHTTP Drivers
jvanbruegge May 10, 2020
67a76af
Fix test about ordering of sinks
jvanbruegge May 11, 2020
97d0745
Remove unnecessary files
jvanbruegge May 11, 2020
f15f670
Run tests also in the browser
jvanbruegge May 11, 2020
c214539
Implement progress events in the driver
jvanbruegge May 13, 2020
a66620e
Finish porting over all the tests
jvanbruegge May 14, 2020
7d8109b
Fix race conditions caused by cycle/run
jvanbruegge May 14, 2020
96fbe9e
Use new multicast operator for the race conditions
jvanbruegge May 16, 2020
6b73257
Port over the first @cycle/run tests
jvanbruegge May 18, 2020
40eee3b
Move multicastNow to new file
jvanbruegge May 19, 2020
32e213b
Move error handling to run
jvanbruegge May 23, 2020
2bb0970
Add a setupReusable function
jvanbruegge Jul 29, 2020
6c65c6d
Fix cleanup of setupReusable
jvanbruegge Jul 30, 2020
0d810d1
Add cleanup function to driver interface
jvanbruegge Aug 3, 2020
6cc032a
Port over last setupReusable test
jvanbruegge Aug 3, 2020
e89b346
Assert that drivers don't terminate before dispose
jvanbruegge Aug 7, 2020
0298399
Apply prettier formatting with trailing commas
jvanbruegge Aug 7, 2020
a94dfc6
Improve error messages
jvanbruegge Aug 7, 2020
f8a744e
Port over setup tests
jvanbruegge Aug 7, 2020
4f603dd
Run build and tests in CI
jvanbruegge Aug 7, 2020
dbb4a2b
Add pre-commit hook that formats code
jvanbruegge Aug 7, 2020
2672261
Add Engine type
jvanbruegge Aug 8, 2020
5a47d28
Add the new `run` function and the new HTTP plugin (#930)
jvanbruegge Aug 11, 2020
01085e2
Allow to manually unwrap APIs (#953)
jvanbruegge Sep 10, 2020
b804c7a
Make sure that the tests actually assert something
jvanbruegge Sep 10, 2020
e4d8619
Update dependencies
jvanbruegge Sep 20, 2020
c72e563
Add first basic implementation of isolate
jvanbruegge Sep 20, 2020
c5b0251
Port over the isolate tests
jvanbruegge Sep 20, 2020
df0310c
Move isolate() to a new utils package
jvanbruegge Sep 20, 2020
c9bdd03
Add isolation to the HTTP driver
jvanbruegge Sep 21, 2020
a2ca2fe
Test the interaction of isolate and applyApis
jvanbruegge Sep 21, 2020
a917946
Add wrapSubject helper function to @cycle/run
jvanbruegge Sep 21, 2020
79e29ce
Keep isolate package for backwards compatibility
jvanbruegge Oct 8, 2020
459a2cc
The new isolate function (#957)
jvanbruegge Oct 8, 2020
7f45d5b
Add source maps to the bundled code
jvanbruegge Sep 22, 2020
a669c55
Add basic implementation of withState
jvanbruegge Sep 23, 2020
8e401d4
Start porting over the state tests
jvanbruegge Oct 14, 2020
4435dd9
Fix the state source returning the same data twice
jvanbruegge Oct 14, 2020
19eccba
Finish porting over state tests
jvanbruegge Oct 14, 2020
cf6de5f
Add test for @cycle/run applying withState()
jvanbruegge Oct 14, 2020
562b67e
Add makeCollection
jvanbruegge Jan 12, 2021
4fbbd17
Reimplement pickMerge to avoid resubscribing
jvanbruegge Jan 12, 2021
ff1330a
Throw an error when not receiving an array
jvanbruegge Jan 12, 2021
6c2575f
Prevent pickMerge from throwing on unused channel
jvanbruegge Jan 12, 2021
26af4a5
Update @cycle/callbags
jvanbruegge Jan 13, 2021
12d3054
Update minireq
jvanbruegge Jan 13, 2021
eac7252
Update dependencies
jvanbruegge Jan 13, 2021
e2bfb83
Generalize pickMerge to write pickCombine
jvanbruegge Jan 13, 2021
5050b45
Add tests for the pick functions
jvanbruegge Jan 13, 2021
81d2658
The new state master wrapper (#959)
jvanbruegge Jan 13, 2021
9e2a995
chore(META): Update dependencies
jvanbruegge Apr 13, 2021
8268f4e
chore(META): Update commit hook location
jvanbruegge Apr 13, 2021
b8269ee
chore(META): add commithelper to replace commitizen
jvanbruegge Apr 13, 2021
baf0cac
chore(META): add release-it
jvanbruegge Apr 27, 2021
5b95bfc
chore(META): use full path instead of npm exec
jvanbruegge Apr 27, 2021
81b3871
Add release tooling (#968)
jvanbruegge Apr 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions configs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions configs/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/commithelper check --file $1 --fix
4 changes: 4 additions & 0 deletions configs/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/lint-staged
4 changes: 4 additions & 0 deletions configs/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

exec < /dev/tty && ./node_modules/.bin/commithelper prompt --file $1
32 changes: 32 additions & 0 deletions configs/release-it.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
const { basename } = require('path');
const {
whatBump,
} = require('conventional-changelog-angular/conventional-recommended-bump');

const scope = basename(process.cwd());

module.exports = {
git: {
commitMessage: `release(${scope}): \${version}`,
tagName: `${scope}-v\${version}`,
},
github: {
release: true,
releaseName: `@cycle/${scope} \${version}`,
},
plugins: {
'@release-it/conventional-changelog': {
preset: 'angular',
infile: 'CHANGELOG.md',
transform: (commit, cb) => {
if (commit.scope === scope) {
cb(null, {
...commit,
scope: null,
});
} else cb();
},
whatBump: commits => whatBump(commits.filter(c => c.scope === scope)),
},
},
};
17 changes: 9 additions & 8 deletions http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,24 +33,24 @@
"@cycle/run": "workspace:^6.0.0",
"@cycle/utils": "workspace:^6.0.0",
"@minireq/node": "^2.0.0",
"@types/assert": "^1.5.3",
"@types/assert": "^1.5.4",
"@types/body-parser": "^1.19.0",
"@types/cookie-parser": "^1.4.2",
"@types/express": "^4.17.11",
"@types/mocha": "^8.2.0",
"@types/node": "^14.14.20",
"@types/mocha": "^8.2.2",
"@types/node": "^14.14.37",
"assert": "^2.0.0",
"body-parser": "^1.19.0",
"callbag-delay": "^0.1.0",
"cookie-parser": "^1.4.5",
"express": "^4.17.1",
"karma": "^5.2.3",
"karma": "^6.3.2",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-mocha": "^2.0.1",
"karma-typescript": "^5.2.0",
"mocha": "^8.2.1",
"start-server-and-test": "^1.11.7",
"karma-typescript": "^5.5.1",
"mocha": "^8.3.2",
"start-server-and-test": "^1.12.1",
"ts-node": "^9.1.1"
},
"funding": {
Expand All @@ -68,7 +68,8 @@
"test:browser": "karma start",
"debug:browser": "DEBUG=1 karma start",
"start-server": "ts-node --project tsconfig.json test/support/server.ts",
"format": "prettier --write './{src,test}/**/*'"
"format": "prettier --write './{src,test}/**/*'",
"release": "release-it --config ../configs/release-it.js"
},
"prettier": "../configs/.prettierrc.json"
}
3 changes: 2 additions & 1 deletion isolate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"scripts": {
"build": "tsc --build tsconfig.build.json && pnpm run build:cjs",
"build:cjs": "BUNDLE_FORMAT=cjs rollup -c ../configs/rollup.config.ts --exports default",
"format": "prettier --write './{src,test}/**/*'"
"format": "prettier --write './{src,test}/**/*'",
"release": "release-it --config ../configs/release-it.js"
},
"publishConfig": {
"access": "public"
Expand Down
58 changes: 48 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,59 @@
"private": true,
"license": "MIT",
"devDependencies": {
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"@release-it/conventional-changelog": "^2.0.1",
"commithelper": "^1.1.1",
"conventional-changelog-angular": "^5.0.12",
"husky": "^6.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"rollup": "^2.36.1",
"release-it": "^14.6.1",
"rollup": "^2.45.2",
"rollup-plugin-sourcemaps": "^0.6.3",
"typescript": "^4.1.3"
"typescript": "^4.2.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
"scripts": {
"prepare": "husky install configs"
},
"lint-staged": {
"*.js": "prettier --write",
"*.ts": "prettier --write"
"*.(js|jsx|ts|tsx)": "prettier --write"
},
"commithelper": {
"scopes": [
"http",
"isolate",
"run",
"state",
"utils"
],
"types": [
{
"name": "feat",
"message": "Add a new feature"
},
{
"name": "fix",
"message": "Submit a bug fix"
},
{
"name": "docs",
"message": "Documentation only changes"
},
{
"name": "release",
"message": "Publish a new version of a package"
},
{
"name": "chore",
"message": "Any internal changes that do not affect the users of packages. Includes refactoring"
}
],
"scopeOverrides": {
"chore": [
"META",
"examples"
]
}
},
"prettier": "./configs/.prettierrc.json"
}
Loading