@adonis-agora/filter 0.8.0 → 0.8.1

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @adonis-agora/filter
2
2
 
3
+ ## 0.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#32](https://github.com/DavideCarvalho/adonis-agora-filter/pull/32) [`1fe94ce`](https://github.com/DavideCarvalho/adonis-agora-filter/commit/1fe94cee8ef847c25b163b68f3eaba9eb4c1c7ac) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Declare `@adonisjs/core` as a required peer, not an optional one.
8
+
9
+ The package's main entry point reads the ambient `HttpContext` (the Lucid macros and the
10
+ `Filterable` mixin both resolve the request context from AsyncLocalStorage when no `ctx` is
11
+ passed), so importing `@adonis-agora/filter` without `@adonisjs/core` installed failed at load
12
+ with `ERR_MODULE_NOT_FOUND` rather than warning at install. The peer now says what the code does.
13
+
14
+ `@adonisjs/lucid` stays optional and structural — the library talks to any `QueryBuilderLike`. A
15
+ new test walks the barrel's import graph and fails on any value import of `@adonisjs/lucid`, which
16
+ is the promise that _is_ kept.
17
+
3
18
  ## 0.8.0
4
19
 
5
20
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  /** Keep in sync with this package's `version` in package.json. */
2
- export declare const VERSION = "0.8.0";
2
+ export declare const VERSION = "0.8.1";
3
3
  export type { ColumnFilter, FilterOperator, FilterOperatorAlias, FilterOperatorInput, } from './operators.js';
4
4
  export { FILTER_OPERATORS, OPERATOR_ALIASES } from './operators.js';
5
5
  export { InvalidColumnFilterError, MAX_FILTER_DEPTH, normalizeOperator, validateColumnFilter, validateColumnFilters, } from './validate-column-filter.js';
package/dist/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /** Keep in sync with this package's `version` in package.json. */
2
- export const VERSION = '0.8.0';
2
+ export const VERSION = '0.8.1';
3
3
  export { FILTER_OPERATORS, OPERATOR_ALIASES } from './operators.js';
4
4
  export { InvalidColumnFilterError, MAX_FILTER_DEPTH, normalizeOperator, validateColumnFilter, validateColumnFilters, } from './validate-column-filter.js';
5
5
  export { isOperatorObject, valueToColumnFilters } from './value-shape.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonis-agora/filter",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Server-side query filtering/sorting/pagination for AdonisJS — Spatie-style input, a Lucid adapter, and field allow-listing. Part of the Agora ecosystem.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,9 +52,6 @@
52
52
  "@adonisjs/lucid": "^22.0.0"
53
53
  },
54
54
  "peerDependenciesMeta": {
55
- "@adonisjs/core": {
56
- "optional": true
57
- },
58
55
  "@adonisjs/lucid": {
59
56
  "optional": true
60
57
  }