From 1a413d1b35b7a7a0c6253d8f5412cadd997f69a6 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Mon, 4 Mar 2024 12:59:15 +0530 Subject: [PATCH 1/6] fix: handled fragment case --- lib/src/model/Option.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/model/Option.dart b/lib/src/model/Option.dart index 6cdd5ee..a6e498c 100644 --- a/lib/src/model/Option.dart +++ b/lib/src/model/Option.dart @@ -145,6 +145,8 @@ class Option { return '
' + inner_html + '
'; case 'ol': return '
    ' + inner_html + '
'; + case 'fragment': + return '' + inner_html + ''; case 'ul': return ''; case 'li': From a0313cc58c09701f82762897d910b6ab42e54e38 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Mon, 4 Mar 2024 13:02:08 +0530 Subject: [PATCH 2/6] fix: bumped version --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 33b9563..46b3ce1 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: contentstack_utils description: Utils package for Contentstack-dart -version: 1.1.0 +version: 1.1.1 homepage: https://www.contentstack.com environment: From 5898be6b9af262ca73e4be697d11893897a56d80 Mon Sep 17 00:00:00 2001 From: Aravind Kumar Date: Mon, 4 Mar 2024 17:07:26 +0530 Subject: [PATCH 3/6] Update sca-scan.yml --- .github/workflows/sca-scan.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sca-scan.yml b/.github/workflows/sca-scan.yml index bf9c1eb..c70a55a 100644 --- a/.github/workflows/sca-scan.yml +++ b/.github/workflows/sca-scan.yml @@ -7,9 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master + - uses: snyk/actions/setup@master - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/node@master + run: snyk test --all-projects --fail-on=all env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - with: - args: --all-projects --fail-on=all From b2540ea63de4478eddd82d8b3b0cfe55310ba5ae Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Mon, 4 Mar 2024 17:23:00 +0530 Subject: [PATCH 4/6] fix: removed sca, sast and secrets scan workflows --- .github/workflows/sast-scan.yml | 11 ----------- .github/workflows/sca-scan.yml | 15 --------------- .github/workflows/secrets-scan.yml | 11 ----------- 3 files changed, 37 deletions(-) delete mode 100644 .github/workflows/sast-scan.yml delete mode 100644 .github/workflows/sca-scan.yml delete mode 100644 .github/workflows/secrets-scan.yml diff --git a/.github/workflows/sast-scan.yml b/.github/workflows/sast-scan.yml deleted file mode 100644 index f931630..0000000 --- a/.github/workflows/sast-scan.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: SAST Scan -on: - pull_request: - types: [opened, synchronize, reopened] -jobs: - security: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Horusec Scan - run: docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/src horuszup/horusec-cli:latest horusec start -p /src -P $(pwd) \ No newline at end of file diff --git a/.github/workflows/sca-scan.yml b/.github/workflows/sca-scan.yml deleted file mode 100644 index bf9c1eb..0000000 --- a/.github/workflows/sca-scan.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Source Composition Analysis Scan -on: - pull_request: - types: [opened, synchronize, reopened] -jobs: - security: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/node@master - env: - SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} - with: - args: --all-projects --fail-on=all diff --git a/.github/workflows/secrets-scan.yml b/.github/workflows/secrets-scan.yml deleted file mode 100644 index 1e8f176..0000000 --- a/.github/workflows/secrets-scan.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Secrets Scan -on: - pull_request: - types: [opened, synchronize, reopened] -jobs: - security: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Gittyleaks - uses: gupy-io/gittyleaks-action@v0.1 \ No newline at end of file From 86b742240c08d8024d2c815edb583bf2ef804b97 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Mon, 4 Mar 2024 17:39:39 +0530 Subject: [PATCH 5/6] fix: updated changelog --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7923521..7bc2b6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## v1.1.1 + +Added support for fragment tag in jsonToHtml +___________________ + ## v1.1.0 Implemented SRTE functions: :tada: From d9deeab8f359dfc0fc3959d9eeaf385a17f8a86e Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 16 Apr 2024 10:15:55 +0530 Subject: [PATCH 6/6] fix: Added publish workflow --- .github/workflows/publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..83204e1 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +# .github/workflows/publish.yml +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' # tag-pattern on pub.dev: 'v{{version}}' + +# Publish using the reusable workflow from dart-lang. +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + working-directory: . \ No newline at end of file