Skip to content

Commit

Permalink
chore: bump version to 0.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
abuaboud committed Mar 27, 2023
1 parent 44f3933 commit 17729cd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FlowItemDetails } from '../page/flow-builder/flow-right-sidebar/step-ty
import {
ActionType,
ApEdition,
ApEnvironment,
compareSemVer,
PieceMetadata,
PieceMetadataSummary,
Expand All @@ -22,6 +23,7 @@ type TriggersMetadata = Record<string, TriggerBase>;
type FilterUnSupportedPiecesParams = {
piecesManifest: PieceMetadataSummary[];
release: string;
environment: string;
};

@Injectable({
Expand Down Expand Up @@ -74,12 +76,15 @@ export class ActionMetaService {
},
];

constructor(private http: HttpClient, private flagsService: FlagService) {}
constructor(private http: HttpClient, private flagsService: FlagService) { }

private filterUnSupportedPieces = (params: FilterUnSupportedPiecesParams) => {
const { piecesManifest, release } = params;

return piecesManifest.filter((piece) => {
if (params.environment === ApEnvironment.DEVELOPMENT) {
return true;
}
const minRelease = piece.minimumSupportedRelease;
const maxRelease = piece.maximumSupportedRelease;
if (minRelease && compareSemVer(release, minRelease) === -1) {
Expand Down Expand Up @@ -125,6 +130,7 @@ export class ActionMetaService {
getPiecesManifest(): Observable<PieceMetadataSummary[]> {
return forkJoin({
piecesManifest: this.piecesManifest$,
environment: this.flagsService.getEnvironment(),
release: this.release$,
}).pipe(map(this.filterUnSupportedPieces), shareReplay(1));
}
Expand Down
2 changes: 1 addition & 1 deletion packages/pieces/shopify/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const shopify = createPiece({
authors: [
"abuaboud"
],
minimumSupportedRelease: '0.3.8',
minimumSupportedRelease: '0.3.9',
actions: [
],
triggers: [
Expand Down

0 comments on commit 17729cd

Please sign in to comment.