Giter Club home page Giter Club logo

Comments (12)

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024 1

I'll have a look as soon as I can! Depending on what we change, we might have breaking changes if we modify types.

from pubsub.

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024 1

Oops 🤭 We just moved from CircleCI to Github Actions and it looks like we still have an issue with the publish workflow...

Thank you for letting me know!

from pubsub.

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024 1

Just a dummy issue from my part: forgot to run the TypeScript build before publishing it to npm...

Version 4.4.1 should fix this now 😉

from pubsub.

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024 1

Great 😄 You're welcome, and thank you also for your feedback!

from pubsub.

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024

Hi @Shiroh1ge,

Thank you for your positive feedback 😄

Indeed, with the current version, we use topic.subscription:

const [subscription]: GetSubscriptionResponse = await topic
.subscription(subscriptionName, options?.sub)
.get({ autoCreate: true, ...options?.get });

We can only set:

Unfortunately, I don't think there is a workaround in the current version. We cannot provide CreateSubscriptionOptions with the subscription.get method and the autoCreate flag set to true 😕

I've found an opened issue in the official lib: googleapis/nodejs-pubsub#1196

We could apply the workaround suggested just below.

from pubsub.

Shiroh1ge avatar Shiroh1ge commented on September 18, 2024

Hey @ccoeurderoy , thanks for the quick response! I also found the issue and came to the same conclusion, that we'd have to manually check if the subscription exists and create it with the CreateSubscriptionOptions. If you can make this change that would be awesome, I'm also willing to help you with that if you want.

from pubsub.

Shiroh1ge avatar Shiroh1ge commented on September 18, 2024

I don't mind the breaking changes, thanks very much for the help, very much appreciated!

from pubsub.

algoanbot avatar algoanbot commented on September 18, 2024

🎉 This issue has been resolved in version 4.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

from pubsub.

ccoeurderoy avatar ccoeurderoy commented on September 18, 2024

@Shiroh1ge it should be ok now 😉

I hope Google will consider the previous issue! Feel free to re-open this issue if it does not work

from pubsub.

Shiroh1ge avatar Shiroh1ge commented on September 18, 2024

@ccoeurderoy I tried the latest 4.4.0 version, but for some reason I have no dist folder after installing it, I only see the package.json and README.md. Any idea why this can happen? I also tried removing the Nest packages, but it didn't help. 4.3.1 works fine

from pubsub.

Shiroh1ge avatar Shiroh1ge commented on September 18, 2024

No worries! I checked the package.json and it could be because of this:

  "files": [
    "dist/src/"
  ],

Probably has to be just dist/, but I'm not familiar with the project, so just a suggestion :D

from pubsub.

Shiroh1ge avatar Shiroh1ge commented on September 18, 2024

@ccoeurderoy this has also happened to me 😆 , I just tested it and it works perfectly. Thanks again for the quick update!

from pubsub.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.