Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compressing removed from sdk on v7, replaced with uint8array method #395

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

FedericoAmura
Copy link
Contributor

@FedericoAmura FedericoAmura commented Jan 6, 2025

Description

This PR is a demo on how SDK consumers can [de]compress the data they encrypted with Lit
Compression using JsZip was removed from the SDK on v7 PR#621 so it now requires this extra code outside the SDK, but also allows customer to use their custom compression strategy

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  "scripts": {
    "run:zipAndEncryptString": "tsx ./src/zipAndEncryptString.ts",
    "run:zipAndEncryptMultipleFiles": "tsx ./src/zipAndEncryptMultipleFiles.ts",
    "run:zipFileAndBundleWithMetadata": "tsx ./src/zipFileAndBundleWithMetadata.ts"
  },

Screenshot from 2025-01-06 13-23-34

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation in PR#395
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 6, 2025 0:24am

Copy link

netlify bot commented Jan 6, 2025

Deploy Preview for lit-dev-docs ready!

Name Link
🔨 Latest commit fa61714
🔍 Latest deploy log https://app.netlify.com/sites/lit-dev-docs/deploys/677bcb6c055fc500085b8ac2
😎 Deploy Preview https://deploy-preview-395--lit-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant