subscribable-things 2.1.57 → 2.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Observer } from 'rxjs-interop';
1
+ import type { Observer } from 'rxjs-interop';
2
2
  import { TUnsubscribeFunction } from './unsubscribe-function';
3
3
  export type TEmitNotSupportedErrorFunction = (observer: Observer<any>) => TUnsubscribeFunction;
4
4
  //# sourceMappingURL=emit-not-supported-error-function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emit-not-supported-error-function.d.ts","sourceRoot":"","sources":["../../../src/types/emit-not-supported-error-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,MAAM,8BAA8B,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,oBAAoB,CAAC"}
1
+ {"version":3,"file":"emit-not-supported-error-function.d.ts","sourceRoot":"","sources":["../../../src/types/emit-not-supported-error-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,MAAM,8BAA8B,GAAG,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,KAAK,oBAAoB,CAAC"}
@@ -1,3 +1,3 @@
1
- import { Observer, Subscribable } from 'rxjs-interop';
1
+ import type { Observer, Subscribable } from 'rxjs-interop';
2
2
  export type TObserverParameters<T> = Parameters<Subscribable<T>['subscribe']> | [Observer<T>['next']];
3
3
  //# sourceMappingURL=observer-parameters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observer-parameters.d.ts","sourceRoot":"","sources":["../../../src/types/observer-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEtD,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"observer-parameters.d.ts","sourceRoot":"","sources":["../../../src/types/observer-parameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE3D,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { InteropObservable } from 'rxjs-interop';
1
+ import type { InteropObservable } from 'rxjs-interop';
2
2
  import { TFlexibleSubscribeFunction } from './flexible-subscribe-function';
3
3
  export type TSubscribableThing<T> = InteropObservable<T> & TFlexibleSubscribeFunction<T>;
4
4
  //# sourceMappingURL=subscribable-thing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribable-thing.d.ts","sourceRoot":"","sources":["../../../src/types/subscribable-thing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"subscribable-thing.d.ts","sourceRoot":"","sources":["../../../src/types/subscribable-thing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAE3E,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC,CAAC,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Observer } from 'rxjs-interop';
1
+ import type { Observer } from 'rxjs-interop';
2
2
  import { TOptionalUnsubscribeFunction } from './optional-unsubscribe-function';
3
3
  export type TSubscribeFunction<T> = (observer: Observer<T>) => TOptionalUnsubscribeFunction;
4
4
  //# sourceMappingURL=subscribe-function.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscribe-function.d.ts","sourceRoot":"","sources":["../../../src/types/subscribe-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,4BAA4B,CAAC"}
1
+ {"version":3,"file":"subscribe-function.d.ts","sourceRoot":"","sources":["../../../src/types/subscribe-function.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,iCAAiC,CAAC;AAE/E,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,4BAA4B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { patch as patchFunction, toObserver as toObserverFunction } from 'rxjs-interop';
1
+ import type { patch as patchFunction, toObserver as toObserverFunction } from 'rxjs-interop';
2
2
  import { TWrapSubscribeFunctionFunction } from './wrap-subscribe-function-function';
3
3
  export type TWrapSubscribeFunctionFactory = (patch: typeof patchFunction, toObserver: typeof toObserverFunction) => TWrapSubscribeFunctionFunction;
4
4
  //# sourceMappingURL=wrap-subscribe-function-factory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wrap-subscribe-function-factory.d.ts","sourceRoot":"","sources":["../../../src/types/wrap-subscribe-function-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,aAAa,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,6BAA6B,GAAG,CACxC,KAAK,EAAE,OAAO,aAAa,EAC3B,UAAU,EAAE,OAAO,kBAAkB,KACpC,8BAA8B,CAAC"}
1
+ {"version":3,"file":"wrap-subscribe-function-factory.d.ts","sourceRoot":"","sources":["../../../src/types/wrap-subscribe-function-factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,oCAAoC,CAAC;AAEpF,MAAM,MAAM,6BAA6B,GAAG,CACxC,KAAK,EAAE,OAAO,aAAa,EAC3B,UAAU,EAAE,OAAO,kBAAkB,KACpC,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -15,19 +15,20 @@
15
15
  }
16
16
  ],
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.28.6",
18
+ "@babel/runtime": "^7.29.2",
19
19
  "rxjs-interop": "^2.0.0",
20
20
  "tslib": "^2.8.1"
21
21
  },
22
22
  "description": "A collection of reactive wrappers for various browser APIs.",
23
23
  "devDependencies": {
24
- "@babel/core": "^7.28.6",
24
+ "@babel/core": "^7.29.0",
25
25
  "@babel/plugin-external-helpers": "^7.27.1",
26
- "@babel/plugin-transform-runtime": "^7.28.5",
27
- "@babel/preset-env": "^7.28.6",
28
- "@commitlint/cli": "^20.3.1",
29
- "@commitlint/config-angular": "^20.3.1",
30
- "@rollup/plugin-babel": "^6.1.0",
26
+ "@babel/plugin-transform-runtime": "^7.29.0",
27
+ "@babel/preset-env": "^7.29.2",
28
+ "@commitlint/cli": "^20.5.0",
29
+ "@commitlint/config-angular": "^20.5.0",
30
+ "@rollup/plugin-babel": "^7.0.0",
31
+ "@vitest/browser-webdriverio": "^4.1.0",
31
32
  "baconjs": "^3.0.23",
32
33
  "body-parser": "^2.2.2",
33
34
  "callbag-basics": "^4.0.0",
@@ -35,7 +36,7 @@
35
36
  "commitizen": "^4.3.1",
36
37
  "cz-conventional-changelog": "^3.3.0",
37
38
  "eslint": "^8.57.0",
38
- "eslint-config-holy-grail": "^61.0.5",
39
+ "eslint-config-holy-grail": "^61.0.10",
39
40
  "husky": "^9.1.7",
40
41
  "hyperf": "~1.6.2",
41
42
  "karma": "^6.4.4",
@@ -47,12 +48,12 @@
47
48
  "karma-webkit-launcher": "^2.6.0",
48
49
  "karma-webpack": "^5.0.1",
49
50
  "kefir": "^3.8.8",
50
- "lint-staged": "^16.2.7",
51
+ "lint-staged": "^16.4.0",
51
52
  "midi-test": "^1.3.2",
52
53
  "mocha": "^11.7.5",
53
- "prettier": "^3.8.0",
54
- "rimraf": "^6.1.2",
55
- "rollup": "^4.55.1",
54
+ "prettier": "^3.8.1",
55
+ "rimraf": "^6.1.3",
56
+ "rollup": "^4.59.0",
56
57
  "rxjs": "^7.8.2",
57
58
  "rxjs-for-await": "^1.0.0",
58
59
  "sinon": "^17.0.2",
@@ -62,7 +63,8 @@
62
63
  "tslint": "^6.1.3",
63
64
  "tslint-config-holy-grail": "^56.0.7",
64
65
  "typescript": "^5.9.3",
65
- "webpack": "^5.104.1",
66
+ "vitest": "^4.1.0",
67
+ "webpack": "^5.105.4",
66
68
  "xstream": "^11.14.0"
67
69
  },
68
70
  "files": [
@@ -94,9 +96,14 @@
94
96
  "prepare": "husky",
95
97
  "prepublishOnly": "npm run build",
96
98
  "test": "npm run lint && npm run build && npm run test:integration && npm run test:unit",
97
- "test:integration": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ]; then karma start config/karma/config-integration.js --single-run; fi",
98
- "test:unit": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ]; then karma start config/karma/config-unit.js --single-run; fi"
99
+ "test:integration": "npm run test:integration-chrome && npm run test:integration-chrome-canary && npm run test:integration-firefox && npm run test:integration-firefox-developer && npm run test:integration-safari",
100
+ "test:integration-chrome": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" ]; then npx vitest --config config/vitest/integration-chrome-current.ts; fi",
101
+ "test:integration-chrome-canary": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome-canary\" ]; then npx vitest --config config/vitest/integration-chrome-canary.ts; fi",
102
+ "test:integration-firefox": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"firefox\" ]; then npx vitest --config config/vitest/integration-firefox-current.ts; fi",
103
+ "test:integration-firefox-developer": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"firefox-developer\" ]; then npx vitest --config config/vitest/integration-firefox-developer.ts; fi",
104
+ "test:integration-safari": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"safari\" ]; then npx vitest --config config/vitest/integration-safari-current.ts; fi",
105
+ "test:unit": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"unit\" ]; then npx vitest --config config/vitest/unit.ts; fi"
99
106
  },
100
107
  "types": "build/es2019/module.d.ts",
101
- "version": "2.1.57"
108
+ "version": "2.1.59"
102
109
  }
@@ -1,4 +1,4 @@
1
- import { Observer, Subscribable } from 'rxjs-interop';
1
+ import type { Observer, Subscribable } from 'rxjs-interop';
2
2
  import { TObserverParameters, TSubscribableThing, TSubscribeFunction, TWrapSubscribeFunctionFactory } from '../types';
3
3
 
4
4
  export const createWrapSubscribeFunction: TWrapSubscribeFunctionFactory = (patch, toObserver) => {
@@ -1,4 +1,4 @@
1
- import { Observer } from 'rxjs-interop';
1
+ import type { Observer } from 'rxjs-interop';
2
2
  import { TUnsubscribeFunction } from './unsubscribe-function';
3
3
 
4
4
  export type TEmitNotSupportedErrorFunction = (observer: Observer<any>) => TUnsubscribeFunction;
@@ -1,3 +1,3 @@
1
- import { Observer, Subscribable } from 'rxjs-interop';
1
+ import type { Observer, Subscribable } from 'rxjs-interop';
2
2
 
3
3
  export type TObserverParameters<T> = Parameters<Subscribable<T>['subscribe']> | [Observer<T>['next']];
@@ -1,4 +1,4 @@
1
- import { InteropObservable } from 'rxjs-interop';
1
+ import type { InteropObservable } from 'rxjs-interop';
2
2
  import { TFlexibleSubscribeFunction } from './flexible-subscribe-function';
3
3
 
4
4
  export type TSubscribableThing<T> = InteropObservable<T> & TFlexibleSubscribeFunction<T>;
@@ -1,4 +1,4 @@
1
- import { Observer } from 'rxjs-interop';
1
+ import type { Observer } from 'rxjs-interop';
2
2
  import { TOptionalUnsubscribeFunction } from './optional-unsubscribe-function';
3
3
 
4
4
  export type TSubscribeFunction<T> = (observer: Observer<T>) => TOptionalUnsubscribeFunction;
@@ -1,4 +1,4 @@
1
- import { patch as patchFunction, toObserver as toObserverFunction } from 'rxjs-interop';
1
+ import type { patch as patchFunction, toObserver as toObserverFunction } from 'rxjs-interop';
2
2
  import { TWrapSubscribeFunctionFunction } from './wrap-subscribe-function-function';
3
3
 
4
4
  export type TWrapSubscribeFunctionFactory = (